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 looks like Quarto, and also builds a Quarto project from its _quarto.yml, with no change. It 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 package
  • listings of posts, with categories and a feed

The site can use any Bootswatch theme, in a light version and a dark version.

smalldocs makes websites only. It does not make PDF files, Word files, slides or books, and it runs no code. It is one package from PyPI, and it needs no Pandoc, Deno, Sass or TeX.

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               # what smalldocs ignores, broken links, Markdown that only Pandoc reads
smalldocs api build --dir docs     # the API reference, from docstrings, types and docments
smalldocs publish gh-pages docs    # push the site to the branch gh-pages

The documentation is at rahuldave.com/smalldocs. smalldocs builds it from docs/.

What smalldocs reads

  • The options. smalldocs reads _smalldocs.yml, _metadata.yml and front matter, and merges them as Quarto does. In a _quarto.yml, it reads the sections project, website, format.html and smalldocs.
  • The Markdown. smalldocs reads CommonMark, tables, footnotes, attributes, divs, callouts, tabsets, maths, diagrams, raw HTML and shortcodes. It makes the ids of headings by the rules of Pandoc. So links that were written for Quarto keep working.
  • Notebooks. smalldocs shows the outputs that were saved in a notebook. It obeys the #| options of Quarto in each cell.
  • Listings. smalldocs makes listings as rows, cards or a table, with sorting, a filter, categories, pages and an RSS feed.

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.1.3

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.1.3
File Size Uploaded
smalldocs-0.1.3.tar.gz 1.3 MB Details

Built distribution (wheel)

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

Total release size: 2.6 MB

Release files / smalldocs-0.1.3.tar.gz

Download URL smalldocs-0.1.3.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
9176b53a2372351d21499938ecfd50a34e77d78c07daad96956dbc317d76e5ef
BLAKE2b-256 checksum
How to use checksums
5c04fd6f0ca540f254b734d15803d6ac1cf2c112e3a65d05cd60806680d4b6a9
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.1.3-py3-none-any.whl

Download URL smalldocs-0.1.3-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
edf2c9bef1d402be50f74532159df7739efb97ce20fae307fa172b5f45c123ec
BLAKE2b-256 checksum
How to use checksums
9d1df7eac8f991c0b6dc484fa3db00f97a02b76b27d0254ff83699b69f177105
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 history Release notifications | RSS feed

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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