Skip to content

Commit be613a4

Browse files
committed
sphinx build: drop special members [ci skip]
Opinion time - when special members are included in the docs, the output isn't really readable, it's too cluttered. Don't seem to be able to get the autoclasstoc stuff working, which was supposed to help with that. Signed-off-by: Mats Wichmann <[email protected]>
1 parent 7ea6667 commit be613a4

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

SCons/Environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ def Dump(self, key=None, format='pretty'):
15271527
15281528
Args:
15291529
key: if None, format the whole dict of variables.
1530-
Else format just the value for key (Default value = None)
1530+
Else format just the value for key (Default value = None)
15311531
format: specify the format of the variables to be serialized:
15321532
- pretty: pretty-printed string.
15331533
- json: JSON-formatted string.

doc/sphinx/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@
4444

4545
autodoc_default_options = {
4646
"members": True,
47-
"special-members": True,
47+
#"special-members": True,
4848
"private-members": True,
4949
"inherited-members": True,
5050
"undoc-members": True,
5151
"exclude-members": '__weakref__',
5252
}
5353
autodoc_exclude_members = ['*Tests']
54-
napoleon_include_special_with_doc = True
54+
napoleon_include_special_with_doc = False
5555
napoleon_include_private_with_doc = True
5656

5757
# Add any paths that contain templates here, relative to this directory.

doc/sphinx/index.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
SCons Project API Documentation
77
===============================
88

9+
This is the internal API Documentation for SCons.
10+
The Documentation is generated using the Sphinx tool.
11+
The target audience is developers working on SCons itself,
12+
so it does not clearly delineate what is "Public API" -
13+
interfaces for use in your SCons configuration scripts
14+
which have a consistency guarantee, and what is internal,
15+
so always keep the SCons manual page around for helping
16+
with such determinations.
17+
918
.. toctree::
1019
:maxdepth: 2
1120
:caption: Contents:

0 commit comments

Comments
 (0)