Generate API documentation with Quarto.
Low maintenance activity. Last release 18 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install quartodocOverview
quartodoc lets you quickly generate Python package API reference documentation using Markdown and Quarto. quartodoc is designed as an alternative to Sphinx.
Check out the below screencast for a walkthrough of creating a documentation site, or read on for instructions.
Installation
python -m pip install quartodoc
or from GitHub
python -m pip install git+https://github.com/machow/quartodoc.git
[!IMPORTANT]
Install Quarto
If you haven’t already, you’ll need to install Quarto before you can use quartodoc.
Basic use
Getting started with quartodoc takes two steps: configuring quartodoc, then generating documentation pages for your library.
You can configure quartodoc alongside the rest of your Quarto site in
the
_quarto.yml
file you are already using for Quarto. To configure
quartodoc,
you need to add a quartodoc section to the top level your
_quarto.yml file. Below is a minimal example of a configuration that
documents the quartodoc package:
project:
type: website
# tell quarto to read the generated sidebar
metadata-files:
- reference/_sidebar.yml
# tell quarto to read the generated styles
format:
html:
css:
- reference/_styles-quartodoc.css
quartodoc:
# the name used to import the package you want to create reference docs for
package: quartodoc
# write sidebar and style data
sidebar: reference/_sidebar.yml
css: reference/_styles-quartodoc.css
sections:
- title: Some functions
desc: Functions to inspect docstrings.
contents:
# the functions being documented in the package.
# you can refer to anything: class methods, modules, etc..
- get_object
- preview