Skip to content

Commit 011f0a6

Browse files
MaxVanDeursendatapythonista
authored andcommitted
DOC: Clarifying doc/make.py --single parameter (#25482)
1 parent 9bb98b8 commit 011f0a6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

doc/make.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,16 @@ def main():
294294
help='number of jobs used by sphinx-build')
295295
argparser.add_argument('--no-api',
296296
default=False,
297-
help='ommit api and autosummary',
297+
help='omit api and autosummary',
298298
action='store_true')
299299
argparser.add_argument('--single',
300300
metavar='FILENAME',
301301
type=str,
302302
default=None,
303-
help=('filename of section or method name to '
304-
'compile, e.g. "indexing", "DataFrame.join"'))
303+
help=('filename (relative to the "source" folder)'
304+
' of section or method name to compile, e.g. '
305+
'"development/contributing.rst",'
306+
' "ecosystem.rst", "pandas.DataFrame.join"'))
305307
argparser.add_argument('--python-path',
306308
type=str,
307309
default=os.path.dirname(DOC_PATH),

doc/source/development/contributing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@ reducing the turn-around time for checking your changes.
428428
python make.py clean
429429
python make.py --no-api
430430

431-
# compile the docs with only a single
432-
# section, that which is in indexing.rst
431+
# compile the docs with only a single section, relative to the "source" folder.
432+
# For example, compiling only this guide (docs/source/development/contributing.rst)
433433
python make.py clean
434-
python make.py --single indexing
434+
python make.py --single development/contributing.rst
435435

436436
# compile the reference docs for a single function
437437
python make.py clean

0 commit comments

Comments
 (0)