Skip to content

Latest commit

History

History
66 lines (45 loc) 路 1.74 KB

File metadata and controls

66 lines (45 loc) 路 1.74 KB

Documentation

Documentation of Boaviztapi

Content:

  1. ADR - Architecture decision records
  2. assets: static content like images
  3. Explanations: Functional documentation - Equations & key concepts are explained
  4. DEMO - an executable openAPI spec (former swagger)
  5. Getting started: some basic API queries explained.
  6. How to guides - for developers who want to use the API

Work on the documentation

Install the documentation tools

Documentation is generated from markdown using mkdocs with the material theme.

# Install with make
make install_doc

# (preferred) Install mkdocs and its extensions
poetry install --with docs

# (old way) install mkdocs and its extensions
pip install mkdocs mkdocs-render-swagger-plugin mkdocs-material mkdocs-macros-plugin

馃挕 Do not mixup pip and brew installation of mkdocs.

See the "getting started" docs for mkdocs, and material if you run into issues.

Launch a local documentation server

# If mkdocs is installed via poetry (preferred)
make run-doc
# If mkdocs is installed globally
# from the root of the cloned repository
cd docs
mkdocs serve

Open http://localhost:8080

Verify the links

cd docs
# Check the warnings in the output for broken links
poetry run mkdocs build
# Test validity of external links
poetry run poetry run linkcheckMarkdown --recurse --verbose docs

Deploying the doc asw github pages

The documentation is served as github pages attached to this repositoy and deployed using a github action (See .github\workflows\github_page_deploy.yml).

The doc is exposed to https://boavizta.github.io/boaviztapi/ .