smalldocs
smalldocs builds a website from a Quarto project, in Python. A Quarto project is a
folder with a _quarto.yml file. smalldocs reads the same _quarto.yml and the same Markdown, and 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
_quarto.yml,_metadata.ymland front matter, and merges them as Quarto does. It reads the sectionsproject,websiteandformat.html. - 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.1
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.1.tar.gz | 1.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smalldocs-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.6 MB
Release files / smalldocs-0.1.1.tar.gz
| Download URL | smalldocs-0.1.1.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
322a0ac40c6ed68438f5d167d6bb8c84ed9080bbac4df6792d4df72a5ef5a4fe
|
|
BLAKE2b-256 checksum How to use checksums |
f52f849cb49cf25bc735723afe09816c6afaeb060d3411bcf67354d582956fc6
|
| 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.1-py3-none-any.whl
| Download URL | smalldocs-0.1.1-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9582e00c1e1d4609c2f3af6ceababd3e7826c8d16e65d85fbb63a0671a0149d5
|
|
BLAKE2b-256 checksum How to use checksums |
54051ea93e632131584f2b46d461227d9de7ae22fba148c18b6afbcc19e950e4
|
| 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}
|