calliope-project / calliope

A multi-scale energy systems modelling framework
https://www.callio.pe
Apache License 2.0
287 stars 93 forks source link

Move documentation to markdown and mkdocs #509

Closed brynpickering closed 8 months ago

brynpickering commented 11 months ago

Problem description

We rely on Sphinx and ReStructuredText (.rst) at the moment, which is fine but we would do better to move to markdown, for the following reasons:

  1. It is not as easy to write as markdown. E.g., there is very little clarity over how headings/subheadings should be defined relative to each other (these headings also confuse the git merge helper in VSCode as they look like the merge conflict lines).
  2. We use a custom flavour of the old flask theme for our docs theme. These files are our oldest, untouched ones (10 years old!) in the repo. At some point this is going to fail entirely, so we would do better to rely on a maintained (and possibly sleeker) theme, like material for mkdocs.
  3. mkdocs has arguably a broader plugin/extension library available, including mkdocs-jupyter which would allow us to render jupyter notebooks as pages in our docs.

Calliope version

v0.7.0.dev

brynpickering commented 11 months ago

For an example mkdocs config file, see: https://github.com/arup-group/pam/blob/main/mkdocs.yml For example hooks and custom CSS, see: https://github.com/arup-group/pam/tree/main/docs/static

sjpfenninger commented 8 months ago

Done as of merging #538