User documentation for the Human Intracerebral EEG Platform, written with Sphinx.
The dedicated website hip-infrastructure.github.io is automatically built and deployed when a pull-request is merged into the master branch (this takes a few minutes).
Please repect the following heading convention when making changes
===============
Level 1 Heading
===============
Level 2 Heading
---------------
Level 3 Heading
:::::::::::::::
Level 4 Heading
...............
- Read Getting started with dev containers.
- Open the command palette (Ctrl+Shift+P on Windows, Command+Shift+P on MacOS)
- Click on "Dev Containers: Open Folder in Container"
- Select the current folder
- Start typing "Ubuntu"
- Select "Ubuntu" container
- Accept the default release
- Select "Create Dev Container"
- Wait, this can take a while the first time you create a container
- Make sure that you are now in the dev container by looking at the bottom left of the VS Code window
You need Python3, GIT and Sphinx installed on the computer you plan to use. Preferably, a computer running Ubuntu 20.04+ as it will make things easier.
sudo apt-get update
sudo apt-get install -y python3
sudo apt-get install -y python3-pip
sudo apt-get install -y python3-sphinx
pip3 install -r ./requirements.txt
sudo apt-get install -y gitThe docs directory can contain two important folders
- The
sourcefolder contains the source files used to build the html pages. You want to edit those files. Source files have an.rstextension. - The
buildfolder contains the html pages used for the website. Those files are generated by the command described below. Do not edit those files directly.
Sphinx uses reStructuredText (reST) markup language and you may take a look at the documentation to learn how to edit .rst files. You can also take the existing .rst files as examples. You can use any text editor to edit those files, but do not change the extension.
Once you have edited or created new .rst files, you need to build the project using the following command:
make htmlYou can then check the result by opening the HIP-infrastructure.github.io/docs/build/html/index.html file in any web browser.
open index.htmlYou will be able to navigate a local version of the website. If you are making several builds, don't forget to refresh the webpage you are viewing so the changes are taken into account. If this does not work, you may try to re-build the html pages from scratch using the commands:
make clean
make htmlSimply push your changes to the remote repository. Your new source files will be automatically built and deployed once merge into the master branch.
This research was supported by the EBRAINS research infrastructure, funded from the European Union’s Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 945539 (Human Brain Project SGA3).
This platform received funding from the Swiss State Secretariat for Education, Research and Innovation (SERI) as part of the Horizon Europe project “EBRAINS 2.0”, contract number 23.00638.