This repository contains the sources for the (new) hMRI Toolbox website.
This website is based on MkDocs with the
mkdocs-material theme, and it is built and deployed automatically
on every push or commit to the main branch using GitHub's actions.
Therefore, the normal workflow should be to create a branch from main when you work on adding or fixing content.
Make a pull request, where you can then check if the site builds without errors before merging your changes.
However, it's highly recommended to preview the site locally because it's faster and setting up the environment for
preview is easy.
The easiest way to edit the website is to preview your changes locally before making a commit. With MkDocs this is convenient because you only need a virtual Python environment with necessary packages to run the whole website preview.
MkDocs uses Python to build a static website from Markdown files. Therefore,
ensure you have Python 3 and the venv package.
First, clone this repository and inside the repository directory, create a new environment by using
git clone git@github.com:hMRI-group/hMRI-toolbox-docs.git
cd hMRI-toolbox-docs
python3 -m venv venvActivate the virtual environment with
source venv/bin/activateInstall all required packages
pip install -r requirements.txtNext time, you only need to activate the virtual environment again.
After activating the Python environment, run from within the repository directory
mkdocs serveThis will serve the site on http://127.0.0.1:8000 and you can preview it in your browser.
- If you need to insert a link to the GitHub repository of the Toolbox, don't use
../blob/master/CHANGELOG.mdlike in the Wiki before! Instead, use{{config.repo_url}}/blob/master/CHANGELOG.mdwhich injects the right repo URL automatically. - If you write
R2*in Markdown, remember that star means cursive. You have to useR2\*instead! - In every kind of title or section heading, we use "Title Case" consistently
- Gitter invite link for socials at the bottom
- Add missing reference to Ashburner 2007 in docs/processing.md (look for the TODO item)
- Convert bullet points of references in tutorials/references into subsubsections so that we can link to specific papers.
- Is the "Future Features" in Development > Contributing still up-to-date?