Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ venv:

.PHONY: ensure-venv
ensure-venv:
set -e;
@if [ ! -d $(VENVDIR) ] ; then \
echo "Creating venv in $(VENVDIR)"; \
if $(UV) --version >/dev/null 2>&1; then \
Expand Down
20 changes: 16 additions & 4 deletions documentation/start-documenting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,24 @@ To build the documentation, follow the steps in one of the sections below.
You can view the documentation after building the HTML
by opening the file :file:`Doc/build/html/index.html` in a web browser.

.. note::
.. _doc-initial-requirements:

Initial requirements
--------------------


Ensure your current working dir is the ``Doc`` subdirectory in your
:ref:`CPython repository clone <checkout>`.

.. code-block:: shell

cd Doc

Ensure your Python version is at least 3.11 (Sphinx requirement).

The following instructions all assume your current working dir is
the ``Doc`` subdirectory in your :ref:`CPython repository clone <checkout>`.
Make sure to switch to it with ``cd Doc`` if necessary.
.. code-block:: shell

python --version

.. _doc-create-venv:

Expand Down