Download Documentation for Offline Use: 4 Ways Compared
How to download documentation for offline use as clickable HTML: built-in exports, Dash/DevDocs, wget/HTTrack and an online downloader, plus what breaks.
Website Downloader 10 min read
To download documentation for offline use, start by checking whether the project already offers a download. Read the Docs projects and some GitBook sites do. Next, look in Dash or DevDocs, which cover the most popular docs. For anything else, such as an internal library, a niche framework or one specific older version, mirror the docs site itself as clickable HTML with wget, HTTrack or an online downloader. Most docs sites survive this well. Search, version switchers and live code playgrounds are the parts that usually break, and this guide explains how to handle each one.
Why docs sites are easy to take offline
Most documentation is built with a static site generator such as Docusaurus, MkDocs, Sphinx, Hugo or Jekyll. These tools turn Markdown or reStructuredText into plain HTML files at build time. Every page is a real file, and the sidebar is a list of ordinary links to the other pages. A crawler can follow that sidebar page by page and save each one together with its CSS, JavaScript, fonts and images.
Docusaurus is built on React, but it pre-renders the HTML for every page. The text is already in the file before any JavaScript runs, so it copies well. The difficult cases are documentation portals that are single-page apps, and API references that draw themselves in the browser from an OpenAPI file, as Swagger UI and Redoc do. Both are covered further down.
Check first: does the project offer its own offline download?
Read the Docs and Sphinx
Projects hosted on Read the Docs can publish offline formats: a PDF, an ePub and a zipped HTML build. The catch is that maintainers have to enable these formats in the project configuration, and many never do. When they are enabled, you will find them in the version menu at the bottom of the page or on the project's downloads page. If there are no download links, the project has not turned them on, and you need one of the other methods below.
GitBook
GitBook can produce a PDF of a space, and owners can let readers export the public docs as PDF. Look in the page menu for an export option. Many owners leave it off. Many GitBook spaces are also synced to a Git repository, so the Markdown source may be sitting on GitHub. That source is readable, but you lose GitBook's navigation and layout.
Docusaurus, MkDocs and the source repository
Docusaurus and MkDocs have no reader-facing export button. If the docs are open source, you can clone the repository and build them yourself, for example with npm run build for Docusaurus, mkdocs build for MkDocs or make html for Sphinx. This produces the most faithful copy. It also means installing the right toolchain and plugin versions, and sometimes troubleshooting a build that only ever ran in the project's CI. That is often more effort than reading the docs offline is worth.
Should you use Dash, DevDocs or mirror the docs site yourself?
Dash (macOS, by Kapeli) and its Windows and Linux counterpart Zeal download pre-packaged "docsets" for hundreds of languages and frameworks and give you a fast, unified search across all of them. DevDocs runs in the browser and can store selected documentation sets locally so they keep working offline.
Both are excellent for what they include: Python, MDN, React, Django, the usual suspects. Neither helps with documentation outside its catalogue. That includes your company's internal library, a framework with a few thousand users, a vendor SDK, or version 2 of something when the catalogue only carries version 4. DevDocs also reformats pages into its own layout, so the original sidebar, diagrams and site structure are gone. Building your own Dash docset is possible, but it is a small project of its own.
A practical rule: if Dash or DevDocs has the docs you need in the version you need, use it. If not, mirror the docs site itself.
How to download documentation for offline use with an online downloader
An online downloader is the quickest way to copy an arbitrary docs site without installing anything. With Website Downloader the process looks like this:
- Copy the docs' root address, for example
https://docs.example.com/, or the documentation home page if the docs live under a path such as/docs/. - Paste it into the download form on the home page and start the download. Progress is shown live as pages are found. Your computer does not need to stay on while the crawl runs.
- Download the ZIP, unzip it and open
index.htmlin any browser. The sidebar, the previous and next links and the in-page anchors work as normal links between local files. - Spot-check a deep page, such as an API reference entry three levels down. Confirm that code highlighting, diagrams and images are there.
Sizing the plan. Docs for a small library often fit within the free limit of 100 subpages, which needs no account. The free archive is kept for one day, so save the ZIP to your disk promptly. Framework documentation with tutorials, guides and a full API reference easily runs into the hundreds or thousands of pages. Versioned docs multiply that, because every version is a complete copy of the site. A one-time Single Site download (7.99 EUR) covers up to 5,000 subpages. The monthly plans go up to 30,000 subpages per download for very large references. Details are on the pricing page.
Versions. The downloader follows the site's links. If the version switcher links to other versions, those can be included and count towards your page limit. If you only want v2, delete the other version folders from the unzipped copy afterwards.
Honest limits. Pages behind a login are not downloaded. Internal docs behind SSO or a company VPN therefore cannot be copied this way. For those, build from source or ask whoever runs the docs for an export. Some sites refuse automated downloads with a 403 response, and the service reports that instead of handing you an empty archive. The features page and FAQ cover the rest.
Mirroring documentation with wget or HTTrack
If you are comfortable in a terminal, wget does the same job on your own machine:
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent --wait=1 https://docs.example.com/v2/
--mirrorturns on recursion and timestamping, so a later run only fetches changed files.--convert-linksrewrites links so they point to the local files.--page-requisitesfetches the CSS, JS and images each page needs.--no-parentkeeps wget inside/v2/, which is the easiest way to mirror a single version.--wait=1pauses between requests so you do not hammer the docs server.
HTTrack offers the same idea with a GUI on Windows and include and exclude scan rules for paths. Trade-offs to know:
- Both need installing and some tuning.
- Assets served from a separate CDN domain are skipped unless you allow that host. With wget, that means adding
--span-hostsand--domains. - Neither runs JavaScript.
- Rate limits and 403 blocks are common. See HTTrack 403 Forbidden if you hit one.
For a broader comparison, read wget vs HTTrack vs an online website downloader.
What breaks offline: search, version switchers, playgrounds and JavaScript-rendered docs
Reading pages offline works almost everywhere. Interactive features depend on how they were built.
Search
Search is the feature people miss first, and how well it survives depends on the generator:
- Algolia DocSearch, used by many Docusaurus sites, queries Algolia's servers. Offline, the search box does nothing.
- MkDocs search and similar local search plugins build an index file but load it with a request that browsers usually block for pages opened straight from disk.
- Sphinx search loads its index as an ordinary script, so it often keeps working.
Two workarounds help:
- Serve the folder locally. Run
python3 -m http.server 8000inside the unzipped folder and openhttp://localhost:8000. Locally indexed search then usually works. - Search the files directly. Run
grep -ril "keyword" .in the folder to list every page that mentions a term. This works for any docs copy.
Version switchers
A version dropdown links to other versions. Versions you did not download become dead links or send you back to the live site. The Read the Docs version menu is filled in from Read the Docs' own servers, so offline it may be empty or missing.
Playgrounds and "Try it" consoles
Embedded sandboxes, live code editors and API consoles that send real requests all need a server or a third-party service. The surrounding page and its static code samples are kept, but the Run button will not work.
Why is my offline copy of a docs site blank or missing content?
If pages open with a header and sidebar but an empty main area, the content is rendered by JavaScript after load. You can confirm this with View Source: the source shows an empty <div id="root"> instead of the text. Swagger UI and Redoc API references behave the same way, because they read a spec file at runtime. Why JavaScript websites go blank offline explains your options. If the text is there but the layout or images are missing, see downloaded website missing images and CSS.
One more case: if the docs you need have already disappeared, for example an old major version the project took down, the Internet Archive may still have them. The Wayback Machine downloader restores a capture as a clean ZIP. Restores of up to 100 pages are free, and a full restore of up to 5,000 pages is a one-time 14.99 EUR.
One PDF, Markdown for RAG, or clickable HTML: which format?
| Format | Best for | What you lose |
|---|---|---|
| Clickable HTML | Day-to-day reading on a plane, a train or an air-gapped machine | Hosted search and live consoles |
| One PDF | Printing, annotating, e-readers | Sidebar navigation; long references become unwieldy |
| Markdown or plain text | Feeding a local LLM or a RAG index | Layout, navigation and diagrams |
One PDF. Use the project's own PDF if Read the Docs or GitBook offers one. Otherwise, saving an entire website as PDF covers the methods.
Markdown for a local LLM or RAG index. The cleanest source is the project's Markdown in its repository. If you cannot get it, the HTML copy is a good starting point: its headings give natural chunk boundaries. Convert it with a tool such as pandoc, and strip the repeated sidebar and footer before indexing so they do not pollute every chunk.
Clickable HTML remains the best general choice, because it keeps the structure the authors designed.
FAQ
Can I download the whole documentation as one PDF for offline use?
Only if the project publishes one, which Read the Docs and GitBook make possible but do not enforce. Otherwise you can combine the pages of an offline HTML copy into a PDF. For large references, the HTML copy is usually easier to navigate than a document thousands of pages long.
Does search work in an offline copy of documentation?
It depends on the search engine behind the docs. Algolia-based search never works offline. Sphinx's built-in search often does, and MkDocs-style local search usually starts working once you serve the folder with python3 -m http.server. grep across the files works in every case.
How do I keep only one version of the docs, for example v2?
With wget, start at the version's path and add --no-parent. With an online downloader that follows the version switcher, download the site and then delete the other version folders from the unzipped copy. Remember that extra versions count towards your page limit while they are being downloaded.
Am I allowed to mirror a project's documentation?
Keeping a private offline copy for your own reading is generally low-risk, and many open-source docs are published under licences such as CC BY or MIT that permit copying with attribution. Republishing the docs, or putting them into a product, is a different matter that depends on the licence and your country. Internal docs fall under your employer's policies. This is not legal advice, so for commercial reuse ask a lawyer.
How do I keep offline docs up to date?
Download again after each release you care about. A repeated wget --mirror run fetches only the files that changed. Online archives are kept for one day on the free plan and 30 days on paid plans, so always save the ZIP to your own disk and keep dated copies if you need older versions.
- download documentation for offline use
- offline documentation
- docs sites
- wget
- HTTrack