Skip to content

Commit 1c81c89

Browse files
Start using Doxyfile for the docs build
1 parent 49840cf commit 1c81c89

5 files changed

Lines changed: 58 additions & 43 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- 1165-migrate-to-nodejs-24
78

89
jobs:
910
call_with_gcc:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ test/build
2020
test/bin
2121
output.txt
2222
Doxyfile
23+
!docs/Doxyfile
2324
apidoc_warning_logfile.txt
2425
third-party/distros/gmp-6.1.1
2526
third-party/distros/gmp-6.1.2

docs/Doxyfile

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
PROJECT_NAME = "OpenFHE"
2+
PROJECT_BRIEF = "OpenFHE Library API"
3+
OUTPUT_DIRECTORY = doxyoutput
4+
CREATE_SUBDIRS = NO
5+
ALLOW_UNICODE_NAMES = NO
6+
BRIEF_MEMBER_DESC = YES
7+
REPEAT_BRIEF = YES
8+
ALWAYS_DETAILED_SEC = NO
9+
INLINE_INHERITED_MEMB = NO
10+
FULL_PATH_NAMES = YES
11+
STRIP_FROM_PATH = ../src
12+
TAB_SIZE = 4
13+
14+
INPUT = ../src/binfhe/include \
15+
../src/binfhe/lib \
16+
../src/core/extras \
17+
../src/core/include \
18+
../src/core/lib \
19+
../src/pke/extras \
20+
../src/pke/include \
21+
../src/pke/lib
22+
FILE_PATTERNS = *.h \
23+
*.cpp
24+
RECURSIVE = YES
25+
EXCLUDE_PATTERNS = *.md
26+
27+
GENERATE_HTML = NO
28+
GENERATE_LATEX = NO
29+
GENERATE_XML = YES
30+
XML_OUTPUT = xml
31+
XML_PROGRAMLISTING = NO
32+
33+
QUIET = YES
34+
WARNINGS = NO
35+
WARN_IF_UNDOCUMENTED = NO
36+
WARN_IF_DOC_ERROR = NO
37+
WARN_IF_INCOMPLETE_DOC = NO
38+
WARN_NO_PARAMDOC = NO
39+
40+
EXTRACT_ALL = NO
41+
EXTRACT_PRIVATE = NO
42+
EXTRACT_PRIV_VIRTUAL = NO
43+
EXTRACT_STATIC = YES
44+
EXTRACT_LOCAL_CLASSES = YES
45+
EXTRACT_ANON_NSPACES = NO
46+
HIDE_UNDOC_MEMBERS = NO
47+
HIDE_UNDOC_CLASSES = NO
48+
49+
ENABLE_PREPROCESSING = YES
50+
MACRO_EXPANSION = YES
51+
EXPAND_ONLY_PREDEF = YES
52+
PREDEFINED += NAMESPACE_BEGIN(arbitrary)="namespace arbitrary {"
53+
PREDEFINED += NAMESPACE_END(arbitrary)="}"

docs/conf.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@
5353
breathe_default_project = "OpenFHE"
5454

5555
# Setup the `exhale` extension
56-
import textwrap
57-
5856
__exhale_base = "../src"
5957
__exhale_path = {
6058
# Binfhe
@@ -70,10 +68,6 @@
7068
f"{__exhale_base}/pke/lib",
7169
}
7270

73-
container = "INPUT = "
74-
for path in __exhale_path:
75-
container += f"{path} "
76-
7771

7872
def specificationsForKind(kind):
7973
'''
@@ -110,20 +104,7 @@ def specificationsForKind(kind):
110104
############################################################################
111105
"createTreeView": True,
112106
"exhaleExecutesDoxygen": True,
113-
"exhaleDoxygenStdin": textwrap.dedent(container + '''
114-
# For this code-base, the following helps Doxygen get past a macro
115-
# that it has trouble with. It is only meaningful for this code,
116-
# not for yours.
117-
PREDEFINED += NAMESPACE_BEGIN(arbitrary)="namespace arbitrary {"
118-
PREDEFINED += NAMESPACE_END(arbitrary)="}"
119-
EXCLUDE_PATTERNS += *.md
120-
121-
WARN_IF_UNDOCUMENTED = NO,
122-
WARNINGS" = NO,
123-
WARN_IF_DOC_ERROR: NO,
124-
WARN_IF_INCOMPLETE_DOC: NO,
125-
WARN_NO_PARAMDOC: NO
126-
'''),
107+
"exhaleUseDoxyfile": True,
127108
############################################################################
128109
# HTML Theme specific configurations. #
129110
############################################################################
@@ -510,4 +491,3 @@ def setup(app):
510491
the_req.write(".. code-block:: nginx\n\n")
511492
the_req.write(prefix(" ", "".join(l for l in requirements)))
512493
the_req.write("\n")
513-

docs/conf_extensions.rst

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
breathe_default_project = "OpenFHE"
2222
2323
# Setup the `exhale` extension
24-
import textwrap
25-
2624
__exhale_base = "../src"
2725
__exhale_path = {
2826
# Binfhe
@@ -38,11 +36,7 @@
3836
f"{__exhale_base}/pke/lib",
3937
}
4038
41-
container = "INPUT = "
42-
for path in __exhale_path:
43-
container += f"{path} "
44-
45-
39+
4640
def specificationsForKind(kind):
4741
'''
4842
For a given input ``kind``, return the list of reStructuredText specifications
@@ -78,20 +72,7 @@
7872
############################################################################
7973
"createTreeView": True,
8074
"exhaleExecutesDoxygen": True,
81-
"exhaleDoxygenStdin": textwrap.dedent(container + '''
82-
# For this code-base, the following helps Doxygen get past a macro
83-
# that it has trouble with. It is only meaningful for this code,
84-
# not for yours.
85-
PREDEFINED += NAMESPACE_BEGIN(arbitrary)="namespace arbitrary {"
86-
PREDEFINED += NAMESPACE_END(arbitrary)="}"
87-
EXCLUDE_PATTERNS += *.md
88-
89-
WARN_IF_UNDOCUMENTED = NO,
90-
WARNINGS" = NO,
91-
WARN_IF_DOC_ERROR: NO,
92-
WARN_IF_INCOMPLETE_DOC: NO,
93-
WARN_NO_PARAMDOC: NO
94-
'''),
75+
"exhaleUseDoxyfile": True,
9576
############################################################################
9677
# HTML Theme specific configurations. #
9778
############################################################################
@@ -131,4 +112,3 @@
131112
132113
# Tell sphinx what the pygments highlight language should be.
133114
highlight_language = 'cpp'
134-

0 commit comments

Comments
 (0)