| 1 |
# |
| 2 |
# Sphinx Documentation Configuration |
| 3 |
# |
| 4 |
|
| 5 |
import re |
| 6 |
import os |
| 7 |
import sys |
| 8 |
|
| 9 |
import capidocs.kerneldoc |
| 10 |
import hawkmoth |
| 11 |
|
| 12 |
# Global Setup |
| 13 |
|
| 14 |
project = 'c-rbtree' |
| 15 |
|
| 16 |
author = 'C-Util Community' |
| 17 |
copyright = '2015-2022, C-Util Community' |
| 18 |
|
| 19 |
# Hawkmoth C-Audodoc Setup |
| 20 |
|
| 21 |
capidocs.kerneldoc.hawkmoth_conf() |
| 22 |
|
| 23 |
# Extensions |
| 24 |
|
| 25 |
exclude_patterns = [] |
| 26 |
|
| 27 |
extensions = [ |
| 28 |
'hawkmoth', |
| 29 |
'hawkmoth.ext.transformations', |
| 30 |
] |
| 31 |
|
| 32 |
# Hawkmoth Options |
| 33 |
|
| 34 |
hawkmoth_clang = capidocs.kerneldoc.hawkmoth_include_args() |
| 35 |
hawkmoth_clang += ["-I" + os.path.abspath("..")] |
| 36 |
hawkmoth_clang += capidocs.kerneldoc.hawkmoth_glob_includes("../../subprojects", "libc*/src") |
| 37 |
|
| 38 |
hawkmoth_root = os.path.abspath('..') |
| 39 |
|
| 40 |
cautodoc_transformations = { |
| 41 |
'kerneldoc': capidocs.kerneldoc.hawkmoth_converter, |
| 42 |
} |
| 43 |
|
| 44 |
# HTML Options |
| 45 |
|
| 46 |
html_theme = 'sphinx_rtd_theme' |