Skip to main content

docs-site

PyPI CI Python versions License: MIT

Turn a folder of Markdown, HTML, and PDF files into a clean, searchable, dark-mode-ready local documentation site with built-in LLM support.

Features

  • Static & Offline: Generates a self-contained static site with zero runtime server required. Works out of the box with file:/// URLs or any static host.
  • Multi-Format Processing:
    • Markdown (.md, .markdown): Rendered with syntax highlighting, tables, and admonitions.
    • HTML (.html, .htm): Formatted with isolated reader styling and link rewriting.
    • PDF (.pdf): Integrated directly with bookmark outlines and portable file bundling.
  • Fast Client-Side Search: Full-text MiniSearch indexing across all documents with instant in-page term highlighting, auto-scroll to matches, and keyboard navigation (↑/↓/Enter/Esc).
  • LLM-Ready Workflows:
    • Copy Page: One-click button in the header toolbar copies the active page's clean, structured Markdown to your clipboard.
    • Standardized llms.txt: Automatically creates llms.txt index and llms-full.txt corpus following the llmstxt.org standard.
    • CLI Pipe: Dump clean Markdown directly to stdout for CLI piping (e.g. docs-site docs/ --dump | llm).
  • Automatic Table of Contents: Extracts headings (<h1>–<h6>) and PDF outline bookmarks into a sidebar.
  • Dark Mode: Built-in dark/light theme toggle, synchronized across framed documents and welcome screen.
  • Zero Configuration: Recursively scans folders while automatically ignoring .git, .venv, node_modules, and hidden directories.

Installation

Install globally as a CLI tool using uv:

uv tool install docs-site

Alternatively, install with pipx:

pipx install docs-site

Or with plain pip, ideally inside a virtual environment:

pip install docs-site

Usage

Build and Browse

# Build and open the site in your default browser
docs-site ~/notes/linux-learning

# Specify a custom output directory (default is <folder>/_site)
docs-site ~/notes/linux-learning -o ~/public_html/docs

# Build without automatically opening the browser
docs-site ~/notes/linux-learning --no-open

# Skip generating llms.txt and llms-full.txt
docs-site ~/notes/linux-learning --no-llms-txt

# Display version
docs-site --version

# View all options
docs-site --help

CLI Pipe Workflow (LLMs & Tooling)

You can pipe clean Markdown straight to tools like llm without creating a site directory or launching a browser:

# Dump entire corpus as consolidated Markdown
docs-site ~/notes/linux-learning --dump | llm "summarize these notes"

# Dump a specific file
docs-site ~/notes/linux-learning --dump --file guide.md | llm "explain section 2"

# Dump a single file directly
docs-site ~/notes/linux-learning/guide.pdf --dump | llm "extract key concepts"

Project Scope & Constraints

  • Supported Formats: .md, .markdown, .html, .htm, and .pdf files.
  • Portable Output: All generated pages, markdown artifacts, and referenced PDFs are copied into the output directory, making -o <custom-dir> self-contained.
  • Clean Rebuilds: Output pages/ directory is cleanly recreated on rebuilds to eliminate stale files from deleted sources.
  • Indexing Cap: Indexed full text is capped at 400,000 characters per file in the manifest to keep client-side memory lightweight.

Contributing

Looking to work on docs-site itself? See CONTRIBUTING.md for the development setup, testing, and architecture overview.

License

This project is licensed under the MIT License.

Metadata

Release files for docs-site 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docs-site 0.2.0
File Size Uploaded Provenance
docs_site-0.2.0.tar.gz 36.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for docs-site 0.2.0
File Interpreter ABI Platform
docs_site-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 74.4 kB

Release files / docs_site-0.2.0.tar.gz

Download URL docs_site-0.2.0.tar.gz
Size 36.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f94c93731236fc3785d2d079959c9d51a10ded4ea338f8a2fd8cf9a030da1aa7
BLAKE2b-256 checksum
How to use checksums
3eaf58bd113edef1639bee260b437be2fef5179bde1eb3093dbd9aa5b22b1614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / docs_site-0.2.0-py3-none-any.whl

Download URL docs_site-0.2.0-py3-none-any.whl
Size 37.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46d9270083d32e88f98167d9c16a6b3576792221946a17f320a063446e06edaa
BLAKE2b-256 checksum
How to use checksums
a81f5f2796c0f45672e90869a0cc9e605ac49f0da18a9b24a03b8d82b00c64fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Security for docs-site 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for docs_site-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page