Skip to content

Commit

Permalink
Add docs about sphinx-autobuild (#13011)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
  • Loading branch information
jdillard and AA-Turner authored Oct 12, 2024
1 parent 05679ef commit 5a4859a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/internals/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,14 @@ you to preview in :file:`build/sphinx/html`.

You can also build a **live version of the documentation** that you can preview
in the browser. It will detect changes and reload the page any time you make
edits. To do so, run the following command:
edits.
To do so, use `sphinx-autobuild`_ to run the following command:

.. code-block:: shell
sphinx-autobuild ./doc ./build/sphinx/
.. _sphinx-autobuild: https://github.com/sphinx-doc/sphinx-autobuild

Translations
~~~~~~~~~~~~
Expand Down
11 changes: 11 additions & 0 deletions doc/usage/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,17 @@ Sphinx will build HTML files.
Refer to the :doc:`sphinx-build man page </man/sphinx-build>`
for all options that :program:`sphinx-build` supports.

You can also build a **live version of the documentation** that you can preview
in the browser.
It will detect changes and reload the page any time you make edits.
To do so, use `sphinx-autobuild`_ to run the following command:

.. code-block:: console
$ sphinx-autobuild source-dir output-dir
.. _sphinx-autobuild: https://github.com/sphinx-doc/sphinx-autobuild

However, :program:`sphinx-quickstart` script creates a :file:`Makefile` and a
:file:`make.bat` which make life even easier for you. These can be executed by
running :command:`make` with the name of the builder. For example.
Expand Down

0 comments on commit 5a4859a

Please sign in to comment.