hf-doc-builder
Doc building utility
What it is and what it does
hf-doc-builder is a documentation generation tool built and maintained by Hugging Face for their own repositories. It takes markdown source files (and optionally Jupyter notebooks) and converts them into MDX and HTML documentation, with built-in support for multilingual docs, code examples, API autodoc, and GitHub Actions workflows.
The package is designed for teams building documentation at scale. It handles notebook-to-markdown conversion, generates searchable HTML output, manages redirects for old links, and provides ready-to-use GitHub Actions templates for automated documentation builds on pull requests and releases. Its runtime dependencies (black, GitPython, tqdm, pyyaml, packaging, nbformat, huggingface-hub) reflect its focus on code formatting, version control integration, progress reporting, and Hugging Face Hub uploads.
Use it for:
- Build and preview documentation locally for a Python library before pushing to production.
- Convert Jupyter notebooks into documentation pages for tutorials and courses.
- Set up automated documentation builds in GitHub Actions that run on every PR and release.
- Maintain documentation in multiple languages with separate table-of-contents files per language.
- Generate HTML documentation with code examples, API references, and cross-references.
- Manage documentation redirects when restructuring or renaming doc pages.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Builds and previews documentation for Hugging Face repositories, converting markdown and notebooks into MDX and HTML with support for multilingual docs and GitHub Actions integration.
Yes, if you are building documentation for a Hugging Face library or similar Python project and want a turnkey solution with GitHub Actions templates and notebook support. The package is actively maintained, has no security vulnerabilities, and low install friction. Not necessary if you use Sphinx, MkDocs, or other established doc tools for your own projects.
Install
hf-doc-builder on PyPI
pip
pip install hf-doc-builderuv
uv add hf-doc-builderpoetry
poetry add hf-doc-builderInstalling hf-doc-builder
Before you install
Low install friction with a pure Python wheel. Actively maintained with recent commits and no known vulnerabilities. Seven runtime dependencies are all well-established packages (black, GitPython, tqdm, pyyaml, packaging, nbformat, huggingface-hub).
License in practice
Licensed under Apache (permissive), so you can use, modify, and distribute this package freely in both open-source and commercial projects without significant legal restrictions.
Quickstart
pip install hf-doc-builder
doc-builder preview datasets ~/path/to/docs/source/
# or build to HTML
doc-builder build datasets ~/path/to/docs/source --build_dir ~/output --html
Preview command does not work on Windows; HTML output requires Node.js version 14 or higher.
Verify before relying
- Whether the package works with all modern Python versions or has undocumented version constraints.
- Performance characteristics when building large documentation sets with many files or languages.
Package facts
| License | Apache (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — black, GitPython, tqdm, pyyaml, packaging, nbformat, huggingface-hub |
| Maintenance | actively maintained — 886 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 191,439/month — #9,882 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: hf_doc_builder-0.5.0-py3-none-any.whl
Keywords: doc, documentation, doc-builder, huggingface, hugging, face
Tags
More Documentation packages
Docutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
griffeGriffe extracts the complete structure and…
permissive · top 1,000 on PyPI
sphinxcontrib-serializinghtmlA Sphinx extension that outputs documentation…
permissive · top 1,000 on PyPI
alabasterAlabaster is a clean, responsive Sphinx theme…
permissive · top 1,000 on PyPI
sphinxcontrib-htmlhelpA Sphinx extension that generates HTML help…
permissive · top 1,000 on PyPI
hfA command-line interface for interacting with…
permissive · top 15,000 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
mkdocs-jupyterConverts Jupyter notebooks and Python scripts…
permissive · top 15,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
langchain-huggingfaceConnects Hugging Face models and embeddings to…
permissive · top 5,000 on PyPI
spacesProvides utilities for working with Hugging…
permissive · top 15,000 on PyPI
pyspark-huggingfaceRegisters a Spark data source that reads…
permissive · top 5,000 on PyPI
myst-nbSphinx extension that parses and converts…
unclear · top 5,000 on PyPI
mdxpyBuilds MDX queries programmatically for TM1 and…
permissive · top 15,000 on PyPI
datasetsLoads and preprocesses datasets from the…
permissive · top 1,000 on PyPI