Skip to content

Commit 2d093e3

Browse files
Update RST files scan
1 parent 10981f6 commit 2d093e3

File tree

6 files changed

+171
-3
lines changed

6 files changed

+171
-3
lines changed

.github/workflows/reusable_checks.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@ 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 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 -r third_party/requirements.txt
3233
python3 -m pip install bandit codespell
3334
35+
3436
- name: Configure CMake
3537
run: >
3638
cmake
@@ -60,6 +62,12 @@ jobs:
6062
- name: Run codespell
6163
run: python3 ./.github/scripts/run-codespell.py
6264

65+
- name: Check spelling in docs
66+
run: |
67+
cmake -B build
68+
cmake --build build --target docs
69+
sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
70+
6371
# Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
6472
- name: Run Bandit
6573
run: python3 -m bandit -r . -x '/_deps/,/.venv/'

docs/config/Doxyfile

Lines changed: 1 addition & 1 deletion
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

docs/config/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
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 = "spelling_exceptions.txt"
3437

3538
# List of patterns, relative to source directory, that match files and
3639
# directories to ignore when looking for source files.

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

docs/config/spelling_exceptions.txt

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

third_party/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ black==24.3.0
77
packaging==24.2
88
# Generating HTML documentation
99
pygments==2.18.0
10+
pyenchant==3.2.2
1011
sphinxcontrib_applehelp==2.0.0
1112
sphinxcontrib_devhelp==2.0.0
1213
sphinxcontrib_htmlhelp==2.1.0
1314
sphinxcontrib_serializinghtml==2.0.0
1415
sphinxcontrib_qthelp==2.0.0
1516
breathe==4.35.0
17+
sphinxcontrib-spelling==8.0.0
1618
sphinx==8.1.3
1719
sphinx_book_theme==1.1.3

0 commit comments

Comments
 (0)