File: README.md

package info (click to toggle)
knot-resolver 6.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,392 kB
  • sloc: javascript: 42,732; ansic: 40,312; python: 12,616; cpp: 2,121; sh: 1,997; xml: 193; makefile: 181
file content (39 lines) | stat: -rw-r--r-- 1,392 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
## Documentation

Each directory contains a README.md with the basic information, examples and usage.
It does not however contain API documentation, which is built separately in this directory.

### Requirements

To generate documentation you need to install [meson][meson] and [ninja][ninja].

The code is documented with [Doxygen][doxygen] JavaDoc style, a prettified documentation
also requires [breathe][breathe], [Sphinx][sphinx], [Sphinx tabs][sphinx-tabs] and [Sphinx Read the Docs theme][sphinx_rtd_theme] for building sane documentation pages.

[meson]: https://mesonbuild.com/
[ninja]: https://ninja-build.org/
[doxygen]:https://www.stack.nl/~dimitri/doxygen/manual/index.html
[breathe]: https://github.com/michaeljones/breathe
[sphinx]: http://sphinx-doc.org/
[sphinx-tabs]: https://sphinx-tabs.readthedocs.io/
[sphinx_rtd_theme]: https://sphinx-rtd-theme.readthedocs.io/en/stable/

You can install dependencies with pip:

```sh
pip install -U Sphinx sphinx-tabs sphinx_rtd_theme breathe
# Alternatively
pip install -r doc/requirements.txt
```

### Building documentation

If you satisfy the requirements, the documentation will be generated to `doc/html` directory.
You must be in the root directory of the project.

It may be needed to initialize git submodules `git submodule update --init --recursive`.

```sh
$ meson setup build_dir -Ddoc=enabled
$ ninja -C build_dir doc
```