smalldocs
smalldocs builds a website from a Quarto project, in pure Python. It reads the same
_quarto.yml and the same Markdown, and writes the same kind of site into _site: pages with a navbar, a
sidebar and a table of contents, notebooks with their saved outputs, reference pages made from your code,
and listings of posts with categories and a feed. The site takes any Bootswatch
theme, in light and dark.
It makes websites only: no PDF, Word, slides or books, and it runs no code. In return it is one package from PyPI, with 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, rebuild and reload on each change
smalldocs check docs # what smalldocs ignores, broken links, Markdown 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 gh-pages branch
The documentation is in docs/, built with smalldocs.
What it reads
_quarto.yml,_metadata.ymland front matter, merged as Quarto merges them:project(output-dir,render,resources,pre-render,post-render),website(navbar, sidebar, page navigation, footer, search, site URL, repository links) andformat.html(theme, CSS, table of contents, numbered sections, includes).- Markdown: CommonMark, tables, footnotes, definition lists, task lists,
{#id .class}attributes, fenced divs, callouts, tabsets,$maths (KaTeX), mermaid, raw HTML, and the shortcodesinclude,meta,varandenv. Heading ids follow Pandoc's rules, so links written for Quarto keep working. - Notebooks, with the outputs they were saved with, and Quarto's
#|cell options. - Listings:
default,gridandtable, with sorting, filtering, categories, pages and RSS.
Licence
MIT. smalldocs ships Bootstrap, Bootswatch and Bootstrap Icons (MIT) and Fuse.js (Apache-2.0), each with
its licence in src/smalldocs/assets/vendor/.
Metadata
Release files for smalldocs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smalldocs-0.1.0.tar.gz | 1.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smalldocs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.6 MB
Release files / smalldocs-0.1.0.tar.gz
| Download URL | smalldocs-0.1.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
652c85d1553bd3e25a2d780bf29a878e2fa492bedbf3315ea451376ac932aa14
|
|
BLAKE2b-256 checksum How to use checksums |
c63cf5ea3bc475d4d1ffeb03695d3dc304e5e40310a8868f5514b411a3013a11
|
| 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.0-py3-none-any.whl
| Download URL | smalldocs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0f7a7a2e09e6dfc7e09313a47f4ceb2cf44b1a69cd7846d7447c39749c38149
|
|
BLAKE2b-256 checksum How to use checksums |
36c12ec951c4e7b5ec6fede9aa9cd0be4a94f75e6eefac1b489cea4edc984df0
|
| 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}
|