Skip to main content

smalldocs

smalldocs builds a website from a folder of Markdown pages and notebooks, in Python. A file _smalldocs.yml in the folder holds the options of the site. smalldocs writes the site into the folder _site. The site has these parts:

  • pages with a navbar, a sidebar and a table of contents
  • notebooks, with the outputs that were saved in them
  • reference pages, made from the code of a Python package, a Rust crate or a TypeScript package, or from the OpenAPI document of an HTTP API
  • listings of posts, with categories and a feed

The site can use any Bootswatch theme, in a light version and a dark version, or a theme from a git repository.

smalldocs makes websites only. It does not make PDF files, Word files, slides or books, and it runs no code in the pages. It is one package from PyPI, and it needs no other programs. Only a reference of Rust, TypeScript or an HTTP API needs the tools of that code.

smalldocs takes its conventions from Quarto. They are the .qmd pages, the Markdown of Pandoc and the options of a site. So a Quarto website builds with smalldocs, from its _quarto.yml, with no change.

pip install smalldocs

smalldocs render docs              # build docs/_site
smalldocs preview docs             # serve it at http://127.0.0.1:4200, and build it again on each change
smalldocs check docs               # options that smalldocs ignores, broken links, Markdown it does not read
smalldocs api build --dir docs     # the API reference, from docstrings, types and comments
smalldocs publish gh-pages docs    # push the site to the branch gh-pages

The documentation is at docs.smallish.dev. smalldocs builds it from docs/.

What smalldocs reads

  • The options. smalldocs reads _smalldocs.yml, a _metadata.yml file in each folder, and the front matter of each page. The front matter wins over a _metadata.yml, and a _metadata.yml wins over _smalldocs.yml.
  • The Markdown. smalldocs reads CommonMark. It also reads front matter, tables, footnotes, attributes, divs, callouts, tabs, maths, diagrams, raw HTML and shortcodes. A .qmd page is Markdown that uses them. Writing pages describes each one.
  • Notebooks. smalldocs shows the outputs that were saved in a notebook. The #| option lines at the top of a cell can hide its code or its output. Optional browser notebooks add run and download buttons with JupyterLite and Pyodide.
  • Listings. smalldocs makes listings as rows, cards or a table, with sorting, a filter, categories, pages and an RSS feed.
  • Pages for agents. With llms-txt: true under website, smalldocs writes a Markdown copy of each page and an index, llms.txt, as Quarto does. See Pages for agents.

Licence

smalldocs has the MIT licence. It includes Bootstrap, Bootswatch and Bootstrap Icons, with the MIT licence, and Fuse.js, with the Apache-2.0 licence. The licence of each is in src/smalldocs/assets/vendor/.

The documentation follows the nossaifd writing guide, https://github.com/rahuldave/nossaifd. See style/README.md.

Metadata

Release files for smalldocs 0.5.9

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

Source distribution (sdist)

Source distribution for smalldocs 0.5.9
File Size Uploaded Provenance Actions
smalldocs-0.5.9.tar.gz 3.1 MB Without provenance Details for smalldocs-0.5.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for smalldocs 0.5.9
File Interpreter ABI Platform Actions
smalldocs-0.5.9-py3-none-any.whl Python 3 none any Details for smalldocs-0.5.9-py3-none-any.whl

Total release size: 4.5 MB

Release files / smalldocs-0.5.9.tar.gz

Download URL smalldocs-0.5.9.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
c04e8f68443ff34fa0f4e451dfa616f18d17805e0d07de1d7414d48c455e8443
BLAKE2b-256 checksum
How to use checksums
5c3c5f90d00aa266acf35de22803ae5f3fb295da04c1d70f76ebe8d7f6459c88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / smalldocs-0.5.9-py3-none-any.whl

Download URL smalldocs-0.5.9-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4897f9d41faf8f91ef2c61e898158eff3c9d2fc9ab44211082ee7268c8f78397
BLAKE2b-256 checksum
How to use checksums
9a9f3889a042ee1d665ae2daa93bd39154198fe39afbbdd37925e8cf314078e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for smalldocs 0.5.9

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.

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