Skip to content

Commit e855bea

Browse files
committed
Update the readme to describe documentation generation
1 parent 64aa3f6 commit e855bea

File tree

4 files changed

+46
-1
lines changed

4 files changed

+46
-1
lines changed

.github/workflows/github-pages.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
run: sudo apt-get install doxygen
1515

1616
- name: Install sphinx and plugins
17-
run: sudo pip3 install sphinx breathe exhale sphinx-rtd-theme
17+
run: sudo pip3 install -r doc/requirements.txt
1818

1919
- name: run doxygen
2020
run: doxygen reactor-cpp.doxyfile

README.md

+40
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,46 @@ make examples
3131

3232
reactor-cpp can be build with [tracing support](https://github.com/tud-ccc/reactor-cpp/tree/master/tracing). This provides a powerful tool for analyzing and debugging reactor applications.
3333

34+
## Documentaion
35+
36+
A live version of the latest commit on master is automatically deployed and
37+
available [online](https://tud-ccc.github.io/reactor-cpp/index.html). For tests
38+
and other purposes, you can also build the documentation locally.
39+
40+
First doxygen needs to be installed. On Ubuntu or Debian, run:
41+
```sh
42+
sudo apt-get install doxygen
43+
```
44+
45+
Further we need several python packages. Assuming that both python3 and pip3
46+
are set up, run
47+
```sh
48+
pip3 --user install -r doc/requirements.txt
49+
```
50+
If python3 is the default on your system, run:
51+
```sh
52+
pip --user install -r doc/requirements.txt
53+
```
54+
55+
Now we can run doxygen:
56+
```sh
57+
cd doc
58+
doxygen reactor-cpp.doxyfile
59+
```
60+
61+
This already produces a decent html documentation in
62+
`doc/doxygen/html`. However, we want to use some of the features that sphinx
63+
provides and benefit from the more modern look and feel.
64+
65+
Running
66+
```
67+
make html
68+
```
69+
in the `doc` directory will generate the sphinx based project documentaion in
70+
`doc/build/html`. Note that doxygen needs to be run first in order for this
71+
step to work properly.
72+
73+
3474
## Publications
3575

3676
* **DATE'20:** Christian Menard, Andrés Goens, Marten Lohstroh, Jeronimo Castrillon, [Achieving Determinism in Adaptive AUTOSAR](https://arxiv.org/pdf/1912.01367), Proceedings of the 2020 Design, Automation and Test in Europe Conference (DATE), EDA Consortium, Mar 2020.

doc/requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sphinx
2+
breathe
3+
exhale
4+
sphinx-rtd-theme

doc/source/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
api

0 commit comments

Comments
 (0)