Skip to content

Commit

Permalink
DOC: Clarifying doc/make.py --single parameter (#25482)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxVanDeursen authored and datapythonista committed Mar 1, 2019
1 parent 9bb98b8 commit 011f0a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions doc/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,14 +294,16 @@ def main():
help='number of jobs used by sphinx-build')
argparser.add_argument('--no-api',
default=False,
help='ommit api and autosummary',
help='omit api and autosummary',
action='store_true')
argparser.add_argument('--single',
metavar='FILENAME',
type=str,
default=None,
help=('filename of section or method name to '
'compile, e.g. "indexing", "DataFrame.join"'))
help=('filename (relative to the "source" folder)'
' of section or method name to compile, e.g. '
'"development/contributing.rst",'
' "ecosystem.rst", "pandas.DataFrame.join"'))
argparser.add_argument('--python-path',
type=str,
default=os.path.dirname(DOC_PATH),
Expand Down
6 changes: 3 additions & 3 deletions doc/source/development/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,10 @@ reducing the turn-around time for checking your changes.
python make.py clean
python make.py --no-api

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

# compile the reference docs for a single function
python make.py clean
Expand Down

0 comments on commit 011f0a6

Please sign in to comment.