Skip to content

Commit f0e85e6

Browse files
RST files scan
1 parent 1268583 commit f0e85e6

File tree

5 files changed

+94
-6
lines changed

5 files changed

+94
-6
lines changed

.github/workflows/reusable_checks.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
- name: Install dependencies
2222
run: |
2323
sudo apt-get update
24-
sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev
24+
sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev enchant-2 doxygen
2525
2626
# Latest distros do not allow global pip installation
2727
- name: Install Python requirements in venv
2828
run: |
2929
python3 -m venv .venv
3030
. .venv/bin/activate
3131
echo "$PATH" >> $GITHUB_PATH
32-
python3 -m pip install bandit codespell
32+
python3 -m pip install bandit codespell breathe sphinxcontrib-spelling sphinx_book_theme
3333
3434
- name: Configure CMake
3535
run: >
@@ -60,6 +60,12 @@ jobs:
6060
- name: Run codespell
6161
run: python3 ./.github/scripts/run-codespell.py
6262

63+
- name: Run RST files scan
64+
run: |
65+
cmake -B build
66+
cmake --build build --target docs
67+
sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
68+
6369
# Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
6470
- name: Run Bandit
6571
run: python3 -m bandit -r . -x '/_deps/,/.venv/'

docs/config/Doxyfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ INLINE_SIMPLE_STRUCTS = NO
445445
# types are typedef'ed and only the typedef is referenced, never the tag name.
446446
# The default value is: NO.
447447

448-
TYPEDEF_HIDES_STRUCT = NO
448+
TYPEDEF_HIDES_STRUCT = YES
449449

450450
# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
451451
# cache is used to resolve symbols given their name and scope. Since this can be
@@ -935,7 +935,7 @@ EXCLUDE_PATTERNS =
935935
# Note that the wildcards are matched against the file with absolute path, so to
936936
# exclude all test directories use the pattern */test/*
937937

938-
EXCLUDE_SYMBOLS =
938+
EXCLUDE_SYMBOLS =
939939

940940
# The EXAMPLE_PATH tag can be used to specify one or more files or directories
941941
# that contain example code fragments that are included (see the \include
@@ -2200,7 +2200,7 @@ INCLUDE_PATH =
22002200
# used.
22012201
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
22022202

2203-
INCLUDE_FILE_PATTERNS =
2203+
INCLUDE_FILE_PATTERNS =
22042204

22052205
# The PREDEFINED tag can be used to specify one or more macro names that are
22062206
# defined before the preprocessor is started (similar to the -D option of e.g.

docs/config/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@
3030
# Add any Sphinx extension module names here, as strings. They can be
3131
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3232
# ones.
33-
extensions = ["breathe"]
33+
extensions = ["breathe", "sphinxcontrib.spelling"]
34+
35+
spelling_show_suggestions = True
36+
spelling_word_list_filename = "exclude_words.txt"
3437

3538
# List of patterns, relative to source directory, that match files and
3639
# directories to ignore when looking for source files.
3740
# This pattern also affects html_static_path and html_extra_path.
3841
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
42+
suppress_warnings = ["ref.any"]
3943

4044
primary_domain = "c"
4145

docs/config/exclude_words.txt

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
allocator
2+
allocators
3+
Allocators
4+
oneTBB
5+
stdout
6+
pid
7+
customizable
8+
deallocations
9+
malloc
10+
jemalloc
11+
Jemalloc
12+
umfPoolRealloc
13+
umfPoolCalloc
14+
umfPoolMallocUsableSize
15+
daxX
16+
dev
17+
Memspace
18+
memspaces
19+
Mempolicy
20+
mempolicies
21+
Memtarget
22+
memtargets
23+
umfOsMemoryProviderParamsDestroy
24+
CXL
25+
oneAPI
26+
mem
27+
Globals
28+
umfMemoryProviderGetLastNativeError
29+
deallocating
30+
umfPoolDestroy
31+
umfPool
32+
umf
33+
hPool
34+
ptr
35+
calloc
36+
realloc
37+
hProvider
38+
umfPoolGetTag
39+
poolable
40+
unfreed
41+
tp
42+
deallocating
43+
addr
44+
ipc
45+
providerIpcData
46+
providential
47+
umfMemoryProviderAlloc
48+
preallocated
49+
providerIpcData
50+
umfMemoryProviderOpenIPCHandle
51+
lowPtr
52+
highPtr
53+
pre
54+
params
55+
linux
56+
nodemask
57+
Nodemask
58+
maxnode
59+
deallocation
60+
Devdax
61+
numa
62+
umfMemspaceUserFilter
63+
memspace
64+
hMemtarget
65+
umfMemspaceMemtargetAdd
66+
memtarget
67+
mempolicy
68+
partList
69+
umfGetIPCHandle
70+
interprocess
71+
Tiering
72+
tiering
73+
preallocated
74+
deallocation
75+
io
76+
multithreading
77+
middleware

third_party/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ sphinxcontrib_htmlhelp==2.1.0
1313
sphinxcontrib_serializinghtml==2.0.0
1414
sphinxcontrib_qthelp==2.0.0
1515
breathe==4.35.0
16+
sphinxcontrib-spelling==8.0.0
1617
sphinx==8.1.3
1718
sphinx_book_theme==1.1.3

0 commit comments

Comments
 (0)