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 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 other programs.
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 rahuldave.com/smalldocs. smalldocs builds it from docs/.
What smalldocs reads
- The options. smalldocs reads
_smalldocs.yml, a_metadata.ymlfile in each folder, and the front matter of each page. The front matter wins over a_metadata.yml, and a_metadata.ymlwins 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
.qmdpage 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. - 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.4
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.4.tar.gz | 1.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smalldocs-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.6 MB
Release files / smalldocs-0.1.4.tar.gz
| Download URL | smalldocs-0.1.4.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45abfd9bba6c21a0dc78d3856d44c75c73008f9ae0cba76b60c94fd6a9146dcd
|
|
BLAKE2b-256 checksum How to use checksums |
4c4729d468a51ed36cf9fdcec46032bc44c6021842c9bcc1d4012c6054f67143
|
| 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.4-py3-none-any.whl
| Download URL | smalldocs-0.1.4-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0678c9bde41912f0280b5c06b640d5628e51b100b375b8605f31e6a45a160ea
|
|
BLAKE2b-256 checksum How to use checksums |
a3d33d73b4c8dc26da543e0027607ea763bde2f81e48be108fe732fa2f5e4e6b
|
| 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}
|