Documentation Guide
Adding a website page
- Add a
doc/pagename.doxfile, copy up-to-date license header. - Add a
@pagedefinition and title to your page - If the page is top-level, list it in
doc/00-page-order.doxto ensure it gets listed at a proper place - If the page is not top-level, list it using
@subpagein its parent page - Leverage
@sectionand@subsectionto separate the page
Math / Latex Equations
- More details on how to format your documentation can be found here:
- Use the inline commands for latex
\f $ <formula_here> \f $(no space between f and $) - Use block to have equation centered on page
\f [ <big_formula_here> \f ](no space between f and [])
Building the documentation site
- Clone the m.css repository which has scripts to build
- Ensure that it is not in the same folder as your open_vins
git clone https:// github.com/ mosra/ m.css - This repository contains the script that will generate our documentation
- You will need to install python3.6
sudo add-apt-repository ppa:deadsnakes/ppasudo apt-get updatesudo apt-get install python3.6curl https:// bootstrap.pypa.io/ get-pip.py | sudo python3.6 sudo -H pip3.6 install jinja2 Pygmentssudo apt install texlive-base texlive-latex-extra texlive-fonts-extra texlive-fonts-recommended
- To use the bibtex citing you need to have
- bibtex executable in search path
- perl executable in search path
- http:/
/ www.doxygen.nl/ manual/ commands.html#cmdcite
- Go into the documentation folder and build
cd m.css/documentation/python3.6 doxygen.py <path_to_Doxyfile-mcss>
- If you run into errors, ensure your python path is set to use the 3.6 libraries
export PYTHONPATH=/usr/local/lib/python3.6/dist-packages/
- You might need to comment out the
enable_async=Trueflag in the doxygen.py file - This should then build the documentation website
- Open the html page
/open_vins/doxgen_generated/html/index.htmlto view documentation
Creating Figures
- One of the editors we use is IPE which is avalible of different platforms
- We use the ubuntu 16.04 version 7.1.10
- Create your figure in IPE then save it to disk (i.e. should have a
file.ipe) - Use the command line utility
iperenderto convert into a svg iperender -svg -transparent file.ipe file.svg