Converts documentation sites to a single Markdown file.
Supported site types:
- GitBook
- Mintlify
- Postman (API documentation)
- Waku
The site type is detected automatically.
go run main.go <docs-url>The output file is written to output/ and named after the site hostname:
go run main.go https://docs.slash.com/introduction
# → output/slash_docs.md
go run main.go https://docs.tempo.xyz/
# → output/tempo_docs.md- Fetches the base URL and detects the site type
- Extracts all page URLs (from navigation, sitemap, or API depending on the site type)
- Renders each page in a headless browser, extracts the article content, and converts it to Markdown
- Concatenates all pages into a single
.mdfile
- go-rod — headless browser automation
- go-readability — article content extraction
- html-to-markdown — HTML to Markdown conversion