Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md instructions for running doxygen #4807

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,8 @@ use them, but YMMV.

- Python 3 for scripting and running tests

- Optional: Documentation generation (enabled when configuring with
--enable-doxygen-doc) requires Doxygen (1.8.10 or higher) and Graphviz
(2.38.0 or higher).
- Optional: Documentation generation requires Doxygen (1.8.10 or
higher) and Graphviz (2.38.0 or higher).

Backends may have additional dependencies. The dependencies for the backends
included with `P4C` are documented here:
Expand All @@ -290,7 +289,7 @@ pip3 install --user -r requirements.txt

**Tools**
```bash
sudo apt-get install -y doxygen graphviz texlive-full
sudo apt-get install -y doxygen graphviz
```
**Theme**
```bash
Expand Down Expand Up @@ -330,7 +329,7 @@ sudo pip3 install -r requirements.txt

**Tools**
```bash
sudo dnf install -y doxygen graphviz texlive-scheme-full
sudo dnf install -y doxygen graphviz
```
**Theme**
```bash
Expand Down Expand Up @@ -434,10 +433,16 @@ etags` generate tags for vi and Emacs respectively. (Make sure that you are
using the correct version of ctags; there are several competing programs with
the same name in existence.)

To enable building code documentation, please run `cmake
.. -DENABLE_DOCS=ON`. This enables the `make docs` rule to generate
documentation. The HTML output is available in
`build/doxygen-out/html/index.html`.
To build code documentation, after installing Doxygen and the other
required packages:

```bash
# Starting from root directory of your copy of p4c repo
cd docs/doxygen
doxygen doxygen.cfg
```
The HTML output is available in
`docs/doxygen/build/html/index.html`.

### Git setup

Expand Down
Loading