Skip to content

Commit ff57c32

Browse files
committed
A bit more sphinx docbuild tweaking [ci skip]
Signed-off-by: Mats Wichmann <[email protected]>
1 parent 19bc152 commit ff57c32

File tree

6 files changed

+15
-28
lines changed

6 files changed

+15
-28
lines changed

SCons/Environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ def Detect(self, progs):
15001500

15011501

15021502
def Dictionary(self, *args):
1503-
"""Return construction variables from an environment.
1503+
r"""Return construction variables from an environment.
15041504
15051505
:param args: (optional) variable names to look up
15061506
:returns: if args omitted, the dictionary of all constr. vars.

SCons/Platform/__init__.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656

5757

5858
def platform_default():
59-
"""Return the platform string for our execution environment.
59+
r"""Return the platform string for our execution environment.
6060
61-
The returned value should map to one of the SCons/Platform/\*.py
61+
The returned value should map to one of the SCons/Platform/*.py
6262
files. Since scons is architecture independent, though, we don't
6363
care about the machine architecture.
6464
"""
@@ -131,29 +131,30 @@ def __str__(self):
131131

132132

133133
class TempFileMunge:
134-
"""A callable class. You can set an Environment variable to this,
134+
"""A callable class to enable temp files for long command lines.
135+
136+
You can set an Environment variable to this,
135137
then call it with a string argument, then it will perform temporary
136138
file substitution on it. This is used to circumvent the long command
137-
line limitation.
138-
139-
Example:
139+
line limitation. Example::
140140
141141
env["TEMPFILE"] = TempFileMunge
142142
env["LINKCOM"] = "${TEMPFILE('$LINK $TARGET $SOURCES','$LINKCOMSTR')}"
143143
144144
By default, the name of the temporary file used begins with a
145145
prefix of '@'. This may be configured for other tool chains by
146-
setting '$TEMPFILEPREFIX'. Example:
146+
setting '$TEMPFILEPREFIX'. Example::
147147
148148
env["TEMPFILEPREFIX"] = '-@' # diab compiler
149149
env["TEMPFILEPREFIX"] = '-via' # arm tool chain
150150
env["TEMPFILEPREFIX"] = '' # (the empty string) PC Lint
151151
152152
You can configure the extension of the temporary file through the
153153
TEMPFILESUFFIX variable, which defaults to '.lnk' (see comments
154-
in the code below). Example:
154+
in the code below). Example::
155155
156156
env["TEMPFILESUFFIX"] = '.lnt' # PC Lint
157+
157158
"""
158159
def __init__(self, cmd, cmdstr = None):
159160
self.cmd = cmd

SCons/Script/SConsOptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ def reparse_local_options(self):
347347
below. When called from there, we try to reparse the
348348
command-line arguments that:
349349
350-
1. haven't been processed so far (self.largs), but
351-
2. are possibly not added to the list of options yet.
350+
1. haven't been processed so far (self.largs), but
351+
2. are possibly not added to the list of options yet.
352352
353353
So, when we only have a value for "--myargument" yet,
354354
a command-line argument of "--myarg=test" would set it.

SCons/dblite.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class dblite:
3737
3838
See the discussion at:
3939
http://mail.python.org/pipermail/python-bugs-list/2003-March/016877.html
40+
4041
"""
4142

4243
_open = open

doc/sphinx/SCons.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,6 @@ SCons.Environment module
8181
:undoc-members:
8282
:show-inheritance:
8383

84-
SCons.EnvironmentValues module
85-
------------------------------
86-
87-
.. automodule:: SCons.EnvironmentValues
88-
:members:
89-
:undoc-members:
90-
:show-inheritance:
91-
92-
SCons.EnvironmentValuesTest module
93-
----------------------------------
94-
95-
.. automodule:: SCons.EnvironmentValuesTest
96-
:members:
97-
:undoc-members:
98-
:show-inheritance:
99-
10084
SCons.Errors module
10185
-------------------
10286

doc/sphinx/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
'sphinx.ext.viewcode',
4141
]
4242

43-
autodoc_default_flags = [":members:", ":undoc-members:", ":show-inheritance:"]
43+
autosummary_generate = True
44+
4445
autodoc_default_options = {
4546
"members": True,
4647
"special-members": True,

0 commit comments

Comments
 (0)