In the docs directory each facility is added as top level and an index.md is included to describe the facility. Subdirectories can be added and markdown-files in each subdirectory is included in the navigation automatically if parent directory is included in the mkdocs.yml file.
docs
│ ├── natmeg
│ │ ├── index.md
│ │ ├── stimulus-equipment
│ │ │ ├── audio
│ │ │ │ ├── Audio-mixer.md
│ │ │ │ ├── ...
│ ├── resources
│ │ └── wiki_images
│ │ ├── ADA8200_P0ATL_Front_XL.png
│ │ ├── ...
└── mkdocs.ymlTo make the navigation look nicer add title in the header parameters of the markdown file. This will be used in the menu instead of the filename. Files are sorted alphabetically so for a specific order add a number in the beginning of the filename.
---
title: Audio mixer specifications
---Navigation of the mkdocs.yml
nav:
- Home: index.md
- NatMEG:
- natmeg/index.md
- Stimulus Equipment:
- Audio: natmeg/stimulus-equipment/audioSee mkdocs-material for more options on navigation and theme
You can contribute in two ways:
Through Pull Requests
If you have edits or new content to add, follow these steps:
- Fork the repository on GitHub.
- Create a new branch for your edits.
- Make your changes and commit them.
- Push your branch to your forked repository.
- Open a pull request against the dev branch of this repository.
- Request at least one reviewer from the main contributors of the CIR repository.
- Assign the pull request to yourself and/or others who need to work on it.
Through Issues
If you have suggestions, corrections, or requests but can't make the changes yourself, open an issue to bring it to our attention.
To set up the project locally, follow these steps:
git clone <repository_url>
cd <repository_directory>You can install the necessary dependencies using either pip or conda:
Using pip:
pip install mkdocs mkdocs-material pymdown-extensions mkdocs-include-dir-to-nav mkdocs-macros-pluginUsing conda:
conda create -n mkdocs_env --channel=conda-forge mkdocs mkdocs-material pymdown-extensions mkdocs-macros-plugin
conda activate mkdocs_env
pip install mkdocs-include-dir-to-nav # not available in condaTo preview the documentation locally, use:
mkdocs serveThen open the provided local URL in your browser to view the documentation.