-
-
Notifications
You must be signed in to change notification settings - Fork 851
gh-1309: Document how to selectively build RST pages #1562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -153,6 +153,25 @@ To build the docs as HTML, run: | |||||||||
start a local server, and automatically reload the page in your | ||||||||||
browser when you make changes to reST files (Unix only). | ||||||||||
|
||||||||||
It is also possible to build only certain pages of the documentation in order | ||||||||||
to save time during the build process. Following is an example for building two | ||||||||||
pages: | ||||||||||
Comment on lines
+156
to
+158
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
It can be simpler, like the previous introduction. |
||||||||||
|
||||||||||
.. tab:: Unix/macOS | ||||||||||
|
||||||||||
.. code-block:: shell | ||||||||||
|
||||||||||
make html SOURCES="tutorial/classes.rst tutorial/inputoutput.rst" | ||||||||||
|
||||||||||
.. tab:: Windows | ||||||||||
|
||||||||||
See :ref:`using-sphinx-build`. When invoking ``sphinx-build``, pass the | ||||||||||
desired pages as the final parameter, like so: | ||||||||||
Comment on lines
+168
to
+169
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Do we need the reference here, if we really do IMO it is more natural to have it after i.e.
|
||||||||||
|
||||||||||
.. code-block:: dosbatch | ||||||||||
|
||||||||||
python -m sphinx -b html . build/html tutorial/classes.rst tutorial/inputoutput.rst | ||||||||||
|
||||||||||
To check the docs for common errors with `Sphinx Lint`_ | ||||||||||
(which is run on all :ref:`pull requests <pullrequest>`), use: | ||||||||||
|
||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just add it as a note here?