Skip to main content

Folio

Modern Python documentation generator. Sphinx alternative powered by Nextra + shadcn/ui.

Documentation · GitHub

CI PyPI Python License

Quickstart

Folio is a Python CLI that uses a bundled Nextra/Next.js template at build time. Install it as a uv tool:

uv tool install folio-docs
folio init
folio serve

For scripted installs, download and inspect the standalone installer before running it:

curl -LsSf https://raw.githubusercontent.com/pguijas/folio/main/install.sh | less
curl -LsSf -o install-folio.sh https://raw.githubusercontent.com/pguijas/folio/main/install.sh
sh install-folio.sh

Build and serve commands require Node.js 20.19+ and pnpm 10.

Three commands. You get a full docs site with API reference, dark mode, search, and a modern component library — all generated from your Python source code and a single docs.yaml.

How it works

Folio reads your Python modules and Markdown guides, converts them into an intermediate representation, writes MDX pages into a bundled Nextra/Next.js template, installs the template's pnpm dependencies when needed, and exports a static site. The generated output includes guides, API reference pages, search data, and optional LLM files.

See it in action

Folio documents itself. The live site was generated by the tool you're looking at, from the same Markdown guides and Python source published in this repository.

What you get

  • Auto API reference — Classes, functions, types, and parameters extracted via AST
  • Single YAML config — one docs.yaml replaces conf.py + extensions; minimal configs are ~30 lines
  • Modern UI — Dark mode, Pagefind search, responsive layout, theme configurator
  • Incremental builds — SHA-256 manifest skips unchanged pages
  • Rich components — Mermaid diagrams, KaTeX math, tabs, accordion, timeline, file tree
  • LLM-friendly output — Generates llms.txt alongside your docs
  • Static deployment — Export plain files for GitHub Pages, Vercel, Netlify, or Docker
  • Sphinx migration — step-by-step migration guide from Sphinx projects

Contributing

See CONTRIBUTING.md.

License

AGPL-3.0-only — see LICENSE. Bundled third-party materials (shadcn/ui components, service logos) are covered in THIRD-PARTY-NOTICES.md.

Metadata

Release files for folio-docs 0.1.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 folio-docs 0.1.0
File Size Uploaded Provenance Actions
folio_docs-0.1.0.tar.gz 660.3 kB Without provenance Details for folio_docs-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for folio-docs 0.1.0
File Interpreter ABI Platform Actions
folio_docs-0.1.0-py3-none-any.whl Python 3 none any Details for folio_docs-0.1.0-py3-none-any.whl

Total release size: 988.4 kB

Release files / folio_docs-0.1.0.tar.gz

Download URL folio_docs-0.1.0.tar.gz
Size 660.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8d855570bdb282dafd5200fdeef64cdf4dc40835f8404c30bf3b4cf8358e19a6
BLAKE2b-256 checksum
How to use checksums
eb44c70d9e1c7820bc3194d63c72158a0933fcc236a78df9baf357500b6b080d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / folio_docs-0.1.0-py3-none-any.whl

Download URL folio_docs-0.1.0-py3-none-any.whl
Size 328.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3880e3d14511d78705c95535468e9e36dddd172a5def4f95c00fd76a9cf4f20c
BLAKE2b-256 checksum
How to use checksums
ba50c77dec1a81588165d913b8a4a22b6bbc674a990571e12c3c04339d3d9144
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for folio-docs 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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