- 🌐 Browse our online documentation.
- 📝 Importantly, you can contribute to these docs by fixing typos and proposing new additions (see below).
Check out our CONTRIBUTING guidelines.
This repository is maintained by:
@pattacini |
You can leverage on the following Cloud IDE's to quickly get a testing platform where to try out how the documentation is rendered.
Click to enlarge |
---|
🔘 GitHub Pages on Forks
Warning
When forking the repository, remember to copy out all the branches. Then, work on the default branch.
Follow the steps below where you have to correctly fill up the signature your-fork
:
- Browse to https://github.com/your-fork/documentation/actions and enable the actions if they got disabled.
- Browse to https://github.com/your-fork/documentation/actions/workflows/gh-pages.yml and click on the Run workflow button.
- Browse to https://github.com/your-fork/documentation/settings/pages, select the
gh-pages
branch and wait until the GitHub Pages link becomes green to click on!
If you prefer to work on the documentation on your own computer without using Cloud IDEs as described in the previous section,
you need to install mkdocs
first.
Once installed, just clone this repo, navigate to it and install the required dependencies:
git clone https://github.com/icub-tech-iit/documentation.git
cd documentation
pip install --break-system-packages $(mkdocs get-deps)
Finally, serve the content:
mkdocs serve
In the next sections, we will describe in detail how to install the required dependencies using different package managers.
You can use the conda-forge distribution to install the required dependencies on Linux, macOS or Windows. First of all you need a conda distribution, for example Miniforge3.
If you already have a conda distribution, just create a new environment (for example called mkdocs-env
) and install in it the require dependencies:
git clone https://github.com/icub-tech-iit/documentation.git
cd documentation
conda create -n mkdocs-env
conda activate mkdocs-env
conda install --channel conda-forge mkdocs
conda install --channel conda-forge $(mkdocs get-deps)
After the installation, whenever you need to test the website just activate the mkdocs-env
environment and call mkdocs serve
in the documentation
directory:
cd documentation
conda activate mkdocs-env
mkdocs serve