-
Notifications
You must be signed in to change notification settings - Fork 9
Building Documentation Locally
Jonathan Lifflander edited this page Jun 22, 2021
·
3 revisions
To build the documentation locally, it is best to do it inside a container. However, there are several steps to ensure it viewable outside the container (i.e., the HTML).
- Make sure
docker
is installed properly along withdocker-compose
(on some platformsdocker-compose
needs to be installed separately) - Clone
vt
, thencd vt
. - Configure the build through variables:
export VT_DOCS=1; export COMPILER_TYPE=gnu; export COMPILER=gcc-8
- Set the cache directory so that generated docs are available on host machine:
export CACHE=/tmp/docs
docker-compose pull ubuntu-docs-interactive
docker-compose run ubuntu-docs-interactive
- Once the container builds and it is running:
/vt/ci/build_cpp.sh /vt /build
- After cmake configures, hit
control-c
git clone https://github.com/mosra/m.css; pushd m.css; git checkout 6eefd92c2aa3e0a257503d31b1a469867dfff8b6; popd
cd /build/vt
/m.css/documentation/doxygen.py Doxyfile-mcss
- Wait until all the documentation is generated
- Back on host:
open /tmp/docs/amd64-ubuntu-18.04-gcc-8-cache/vt/docs/html/index.html