Work in Progress
Extracts documentation from DeepWiki.com and builds it into searchable HTML with mdBook.
# Build the Docker image
docker build -t deepwiki-to-mdbook .
# Generate documentation
docker run --rm \
-e REPO="owner/repo" \
-e BOOK_TITLE="My Documentation" \
-v "$(pwd)/output:/output" \
deepwiki-to-mdbook
# Serve locally
cd output && python3 -m http.server --directory book 8000Open http://localhost:8000 in your browser.
Core Settings:
REPO- GitHub repository (owner/repo) - auto-detected from git remoteBOOK_TITLE- Documentation title (default: "Documentation")BOOK_AUTHORS- Author names (default: repo owner)MARKDOWN_ONLY- Set to "true" to skip HTML build
Template Customization:
Customize header/footer content by mounting your own HTML templates:
docker run --rm \
-e REPO="owner/repo" \
-v "$(pwd)/my-templates:/workspace/templates" \
-v "$(pwd)/output:/output" \
deepwiki-to-mdbookTemplates use {{VARIABLE}} syntax. Available variables: REPO, BOOK_TITLE, BOOK_AUTHORS, GIT_REPO_URL, DEEPWIKI_URL, GENERATION_DATE. See templates/README.md for details.
output/book/- Searchable HTML documentation with mermaid diagramsoutput/markdown/- Source markdown filesoutput/raw_markdown/- Pre-enhanced markdown (for debugging)output/book.toml- mdBook configuration
Use in other repositories:
- uses: jzombie/deepwiki-to-mdbook@main
with:
repo: owner/target-repo
book_title: "Target Docs"
output_dir: ./docs-output- Scrapes wiki pages from DeepWiki and converts to markdown
- Extracts and intelligently places mermaid diagrams using fuzzy matching
- Builds searchable HTML documentation with mdBook
Built with Python 3.12, mdBook, and mdbook-mermaid in a multi-stage Docker image.
Run tests: ./scripts/run-tests.sh
Project Structure:
python/- Python scripts and testsscripts/- Shell scriptstemplates/- HTML templates
This project is released into the public domain. Use it however you want, no attribution required. Provided as-is with no warranty or guarantees.