Skip to content

Commit

Permalink
Merge pull request #2373 from digit-google/document-manual-generation
Browse files Browse the repository at this point in the history
README.md: document Manual and Doxygen generation
  • Loading branch information
jhasse authored Feb 13, 2024
2 parents d7a7c3b + ccf2339 commit 9e44a19
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,39 @@ To run the unit tests:
```
./build-cmake/ninja_test
```

## Generating documentation

### Ninja Manual

You must have `asciidoc` and `xsltproc` in your PATH, then do:

```
./configure.py
ninja manual doc/manual.pdf
```

Which will generate `doc/manual.html`.

To generate the PDF version of the manual, you must have `dblatext` in your PATH then do:

```
./configure.py # only if you didn't do it previously.
ninja doc/manual.pdf
```

Which will generate `doc/manual.pdf`.

### Doxygen documentation

If you have `doxygen` installed, you can build documentation extracted from C++
declarations and comments to help you navigate the code. Note that Ninja is a standalone
executable, not a library, so there is no public API, all details exposed here are
internal.

```
./configure.py # if needed
ninja doxygen
```

Then open `doc/doxygen/html/index.html` in a browser to look at it.

0 comments on commit 9e44a19

Please # to comment.