How to change contents of this documentation¶
For Linux-Users¶
Install git and python3¶
Make sure you have a working version of git and python3 installed.
You may use your favourite package manager to install the required packages.
apt-get install git python3 -y #for Debian/Ubuntu
pacman -Sy git python #for ArchLinux
Clone repo¶
Clone the respective repository and enter the main directory.
git clone git@git.noc.ruhr-uni-bochum.de:rub-motorsport/driverless/sphinx.git
cd sphinx/
Setup Sphinx¶
This step utilizes pip3. In some cases you may need to install this package manually.
apt-get install python3-pip -y #for Debian/Ubuntu
pacman -Sy git python-pip #for ArchLinux
Now, you may install all requirements in one command.
pip3 install -r requirements.txt
To verify that everything works so far, you may test your installation with the following command:
sphinx-build --version
If the command returns the current version, you are very likely good to go.
Make your changes¶
Build HTML¶
make clean
make html
Verify your changes¶
Be sure that the preverious step did not prompt any errors. Otherwise fix them before you proceed.
Use your favorite browser to inspect your changes before comitting. You can find the newly generated files in build/html/.
Commit your changes¶
git commit -m "Your commit message"
git push
Attention
DO NOT upload changes that are broken in any way as it may or in most cases will brick automated building.
For Windows-Users¶
Install git and python3¶
In order to generate ssh-keys, clone repositories and build this documentation, it is quiet handy to have a tool that provides Windows-Users with some features of Linux. Meet Git-Bash.
Note
You may use other software, but there is no guarantee, that anything below this point will work.
While installing, Git-Bash shows a lot of options to tweak the install. You probably want to click Next on each page and finally Install.
Secondly you may need to install Python3. Be sure to click Add Python 3.x to PATH on the first shown dialog after starting the setup. You may now use Install now to complete the installation. Additionally you may want to disable the MAX_PATH limitation in the end if prompted.
Note
Again there may be other ways to accomplish this, but no guarantees.
Clone repo¶
Open Git-Bash by right clicking an empty space on your desktop and clicking :guilabel: Git Bash Here in the context menu.
Clone the respective repository and enter the main directory.
git clone git@git.noc.ruhr-uni-bochum.de:rub-motorsport/driverless/sphinx.git
cd sphinx/
Setup Sphinx¶
Note
This step utilizes pip3. In some cases you may need to install this package manually.
Now, you may install all requirements in one command.
pip3 install -r requirements.txt
To verify that everything works so far, you may test your installation with the following command:
sphinx-build --version
If the command returns the current version, you are very likely good to go.
Make your changes¶
Build HTML¶
./make.bat clean
./make.bat html
Verify your changes¶
Be sure that the preverious step did not prompt any errors. Otherwise fix them before you proceed.
Use your favorite browser to inspect your changes before comitting. You can find the newly generated files in build/html/.
Commit your changes¶
git commit -m "Your commit message"
git push
Attention
DO NOT upload changes that are broken in any way as it may or in most cases will brick automated building.
Driverless