-
Notifications
You must be signed in to change notification settings - Fork 0
Documentation
Link: https://uuvsimulator.github.io/
The documentation pages are generated using GitHub Pages. For this the documentation is divided between
- Source Markdown files: https://github.com/uuvsimulator/uuv_simulator_docs
- HTML files: https://github.com/uuvsimulator/uuvsimulator.github.io
It is first necessary to clone the uuv_simulator_docs repository. The generation of the documentation from Markdown to HTML is done by using MkDocs. To run the mkdocs and update the documentation pages, clone the repository as
git clone git@github.com:uuvsimulator/uuv_simulator_docs.gitFirst, install pydoc-markdown in the version 2.0.0 (due to most of the ROS dependencies being only available in Python 2.x, the processing of the Python modules to generate documentation has to be done in Python 2.x).
sudo pip2 install pydoc-markdown==2.0.0Next, the create a Python venv with the necessary tools. Install sudo apt install python3-pip. Then run
sudo python3 -m pip install pip --upgrade # Update pip3
sudo pip3 install venv
# Create the virtual environment
cd uuv_simulator_docs
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txtThis will install mkdocs and other packages that compiles the documentation.
You will also need to install doxygen as
sudo apt install doxygenand the tools to generate Markdown files from the Doxygen output. For that install npm using the instructions from this website.
After the npm installation, run
npm install moxygenIn the next step, it is necessary to clone the uuvsimulator.github.io repository where the HTML files must be pushed to update the pages. To do this, run
cd uuv_simulator_docs
git clone https://github.com/uuvsimulator/uuvsimulator.github.io.git siteThe site folder is ignored in the uuv_simulator_docs repository, so changes in there are going to be only related to the uuvsimualator.github.io repository.
The configuration of the documentation page's structure can be seen in the mkdocs.yml.
Updating any of the Markdown files in the docs folder will lead to changes in the GitHub Page after the documentation is compiled with mkdocs.
The main website structure is:
General information about the project, links to videos and badges to build status for each repository. This section includes information on package installation, quick start, useful bibliography and FAQ.
The documentation of the main uuv_simulator project. It includes user guide, overview of the packages, C++ and Python API documentations.
Documenation of the passive turbulent plume simulator.
RexROV 2 model documentation.
ECA A9 AUV model documentation.
LAUV model documentation.
Desistek SAGA ROV model documentation.
Mainly license information.
To build the page, be sure to have built and sourced the following packages
uuv_simulatorrexrov2desistek_sagaeca_a9lauv_gazebouuv_plume_simulator
or use the vcs file as
cd $HOME/catkin_ws/src
vcs import < uuv_simulator_full.repos
rosdep update
rosdep install --from-paths src --ignore-src -r -ythen build and source the workspace.
To then generate the documentation pages, run
cd PATH/uuv_simulation_docs
./buildYou can check the pages locally before pushing the changes by running
mkdocs serveAfter building the page, the HTML files will be stored in the site folder, which is already assigned as the local copy of the uuv_simulator.github.io.
To push the changes, just run
cd site
git add .
git commit -s -m "Updating documentation"
git push origin master