Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Switches to mkdocs for building and deploying documentation #123

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

ns-rse
Copy link
Contributor

@ns-rse ns-rse commented Dec 19, 2024

Closes #122

  • Switch to mkdocs and copy over existing content.
  • Add mkdocsstrings
  • Add following pages
    • index.md - Overview and what it does
    • installation.md - how to install
    • workflow.md - the need to pre-process using ruffus / cgat pipeline
    • extending.md - how to add a Python module, the necessary wrapper and argparse options to include it in the
      command line programme.
    • api/<module>.md individual Markdown files for include the API of each module.
  • Mermaid support.
  • Material Theme
  • Versioning
  • GitHub Actions to deploy

Useful resources are linked above. Things I couldn't work out...

  • Global configuration of mkdocstrings at the moment these are added under the individual API sections, would be cleaner to have this defined once in mkdocs.yaml but whenever I tried adding global options rendering failed.
  • Mermaid diagram embedding doesn't yet work, see troubleshooting

@ns-rse ns-rse force-pushed the ns-rse/122-mkdocs-how-to-add-functions branch 2 times, most recently from 98e0526 to eb32ef2 Compare December 19, 2024 14:31
Closes #122

- [x] Switch to [mkdocs](https://www.mkdocs.org) and copy over existing content.
- [x] Add [mkdocsstrings](https://mkdocstrings.github.io/)
- [x] Add following pages
  - [x] `index.md` - Overview and what it does
  - [x] `installation.md` - how to install
  - [x] `workflow.md` - the need to pre-process using `ruffus` / `cgat` pipeline
  - [x] `extending.md` - how to add a Python module, the necessary wrapper and argparse options to include it in the
        command line programme.
  - [x] `api/<module>.md` individual Markdown files for include the API of each module.
- [ ] [Mermaid](https://mkdocs-mermaid2.readthedocs.io/en/master/) support.
- [x] [Material Theme](https://squidfunk.github.io/mkdocs-material/)
- [x] [Versioning](https://squidfunk.github.io/mkdocs-material/setup/setting-up-versioning/)

Useful resources are linked above. Things I couldn't work out...

- Global configuration of `mkdocstrings` at the moment these are added under the individual API sections, would be cleaner to have this defined once in `mkdocs.yaml` but whenever I tried adding [global options](https://mkdocstrings.github.io/usage/#global-options) rendering failed.
- Mermaid diagram embedding doesn't yet work, see [troubleshooting](https://mkdocs-mermaid2.readthedocs.io/en/master/troubleshooting/)
@ns-rse ns-rse force-pushed the ns-rse/122-mkdocs-how-to-add-functions branch from 8a5b7a9 to 93bfc3c Compare December 19, 2024 14:32
@ns-rse ns-rse merged commit c2dd5cf into main Dec 19, 2024
7 checks passed
@ns-rse ns-rse deleted the ns-rse/122-mkdocs-how-to-add-functions branch December 19, 2024 14:36
@ns-rse ns-rse added the documentation Improvements or additions to documentation label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mkdocs site and document extending and adding functions
1 participant