How to Convert a GitLab Wiki to PDF (the Forgotten Sibling of GitHub)

Everyone writes "GitHub README to PDF" tutorials.
Half the internet is GitHub README to PDF tutorials.
Nobody writes GitLab tutorials. Until now.
Which is funny, because the people stuck on GitLab tend to need offline docs more than anyone — they're usually on internal networks, behind VPNs, in regulated industries where GitHub is blocked.
Here's the workflow that works.
Table of Contents
- Why GitLab Wikis Get Forgotten
- Public vs Private Wikis
- The Public Wiki Workflow
- The Private Wiki Workflow
- Edge Cases (and What Works)
- A Real Example
- What About
gitlab-wiki-export? - Generate Your GitLab Wiki PDF
Why GitLab Wikis Get Forgotten
GitLab has wikis. They're under-loved.
Most GitLab teams use them for:
- Architecture decision records
- Runbooks
- Internal API documentation
- Onboarding guides
The wiki is great for live editing. It's bad for:
- Reading on a tablet
- Sharing with a non-technical stakeholder
- Existing when GitLab is down for maintenance
- Onboarding someone who hasn't been added to the project yet
A PDF fixes all of those.

Public vs Private Wikis
GitLab wikis come in two flavors:
Public wikis (gitlab.com/group/project/-/wikis): anyone can read. The OfflineDocs /sources/from-url flow handles these directly. Paste the wiki URL. Done.
Private wikis (your-company.gitlab.com): authentication required. You have two options:
- Clone the wiki repo locally (every GitLab wiki is a Git repo) and use
/sources/from-markdown. - Export pages as markdown manually and bundle them.
Both work. Option 1 is faster.

The Public Wiki Workflow
Same shape as the GitHub README to PDF flow:
- Paste
https://gitlab.com/your-group/your-project/-/wikis/homeat OfflineDocs - The crawler walks the wiki tree
- AI structures the pages into chapters
- PDF in your inbox
Two minutes for most projects. Bigger wikis (50+ pages) take longer.

The Private Wiki Workflow
Every GitLab wiki has a clone URL. You can find it under "Wiki → Clone repository":
You get a folder of .md files plus image attachments.
Now feed that folder to /sources/from-markdown. OfflineDocs treats the folder as the book and generates a PDF.
This works for self-hosted GitLab too. Same .wiki.git URL pattern.

Edge Cases (and What Works)
Nested pages. GitLab wiki pages can be nested. The folder structure on clone reflects this. OfflineDocs preserves the hierarchy in the PDF's TOC.
Attachments. Images stored as wiki attachments work fine. Other binary attachments (PDFs, ZIPs) get linked, not embedded.
Code blocks. Fenced code blocks render correctly. Inline code too.
GitLab Flavored Markdown. Tables, task lists, math, mermaid diagrams — most of GFM survives. Mermaid diagrams render as code blocks (not images). Acceptable for most uses.
Page permalinks. Cross-page wiki links ([[Page Name]]) get resolved to in-PDF links. Most of the time.

A Real Example
Last quarter I was helping a friend's team. Their internal architecture docs lived in a GitLab wiki. 80 pages. New hires kept getting lost.
We cloned the wiki. Ran it through OfflineDocs. Got a single 110-page PDF.
We made that PDF the Day 1 reading for new hires.
Within a month, the "where is X documented?" Slack channel got noticeably quieter.
It's the same playbook as building team training materials, just sourced from GitLab instead of Confluence or a folder of Markdown.
What About gitlab-wiki-export?
There's a gitlab-wiki-export CLI tool floating around. It works.
It also requires:
- Ruby installed
- API tokens
- A LaTeX install for PDF output
- Reading 30 pages of README
OfflineDocs is one paste. That's the difference.
Use the CLI if you're scripting nightly exports as part of a CI pipeline. Use OfflineDocs if you just want the PDF.
Generate Your GitLab Wiki PDF
Public wiki? Paste the URL at offlinedocs.ai/new.
Private wiki? Clone it, then point OfflineDocs at the folder via /sources/from-markdown.
Either way: two minutes, one PDF, one less reason to keep the GitLab tab open all day.
The same workflow that's been converting GitHub READMEs into beautiful PDFs all year, finally available for the GitLab crowd.
Ready to Get Started?
Start creating your Offline Docs Now! Reduce screen time and save your eyes.