2024-03-08
PAMREIN's daily Open Notebook (COMMONS Lab)
Check Github
Todo --[] try to get in touch with mkdocs
Meetings
None
Daily report (What did I learn?)
Mkdocs
Tool for documentation.
- Installation:
pipx install mkdocs
- Create mkdocs in the projectfolder
mkdocs new <project_directory>
- Configurate the mkdocs.yml. In this file will be set all the settings and links.
vim mkdocs.yml
The file can look like this (https://www.mkdocs.org/user-guide/configuration/):
The file can look like this:
site_name: "Dataset Extractor for LOTUS"
repo_url: "https://github.com/commons-research/dataset-extractor-lotus"
site_author: "Pascal Amrein"
site_description: "Python script to extract data from the LOTUS Database"
copyright: "commons-lab"
repo_name: "GitHub"
nav:
- Home: "index.md"
- About: "about.md"
not_in_nav:
theme: "readthedocs"
- test your documentation
mkdocs serve
- publish it to github (the output will show you the link for the documentation)
mkdocs gh-deploy
It is recommended to ignore (.ignore file) the folder /site which will be the outputfile from mkdocs. It will inclute the .html file, .css and others.
With the gh-deploy the following webpage went online https://commons-research.github.io/dataset-extractor-lotus/#information.
Future perspective
how can it automatically include the functiondoc.