X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=README.md;h=cbe951ba41d424f3d66462283cd4d735e48635b7;hb=17f087412b104b8ff96814066b54597ff6082649;hp=fb44d5696a34b54a963dda02e30e63251dde42c6;hpb=0c6eb1813b46c6324396964093bd04ac0050c0c4;p=apps%2Fagl-service-can-low-level.git diff --git a/README.md b/README.md index fb44d569..cbe951ba 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,53 @@ # Low level CAN signaling binder -Low level CAN bus binder. Based upon OpenXC vi-firmware project. +Low level CAN bus binder, based upon OpenXC vi-firmware project. -# Prerequirements +Full document can be found under `docs` directory. +# Generate documentation + +## Prerequisites + +You can use gitbook to serve documentation. To do so, please install it using *npm* as well as *calibre* package from your package distribution manager: + +```bash +sudo npm install -g gitbook-cli +sudo apt-get install calibre +``` + +To generate Doxygen documentation, you'll need doxygen and graphviz: + +```bash +sudo apt-get install doxygen graphviz +``` + +Prepare your build environment: + +```bash +mkdir build && cd build +cmake .. +``` + +## Generation + +Generate a PDF version : + +```bash +gendocs.sh pdf +``` + +Serve an HTML version, this will run a web server that will serve you locally documentation : + +```bash +gendocs.sh serve +``` + +Generate doxygen documentation: + +```bash +gendocs.sh doxygen +``` +or +```bash +cd build && make doxygen +```