diff options
| author | Cristián Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2023-01-04 09:48:17 +0100 |
|---|---|---|
| committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2023-01-04 11:26:11 +0000 |
| commit | ecacc357ce2c545ef2384b340975b42f5064508a (patch) | |
| tree | 870bf1c327505479c0713c44fa54790cb09633e9 /sources/pyside6/doc/gettingstarted | |
| parent | b96b672b208c6717c3362e08e42247912423fea1 (diff) | |
build: split requirement.txt for docs
Removing the documentation packages from the main requirements.txt
file, and adding a mention on the documentation to install
the modules from the new requirements-doc.txt file.
Additionally, dataclasses was removed from the requirements
because it's a feature included in Python 3.7+
[ChangeLog][PySide6] To build the documentation, you need to install also the
new requirements-doc.txt file
Pick-to: 6.4
Change-Id: I2f6a5cc2f05a7a2e89d3aa06d18791a13a8127b4
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/doc/gettingstarted')
| -rw-r--r-- | sources/pyside6/doc/gettingstarted/index.rst | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/sources/pyside6/doc/gettingstarted/index.rst b/sources/pyside6/doc/gettingstarted/index.rst index 1c2cc821a..75b7bbca2 100644 --- a/sources/pyside6/doc/gettingstarted/index.rst +++ b/sources/pyside6/doc/gettingstarted/index.rst @@ -381,6 +381,13 @@ Starting from 6.3, the documentation is not being built by default. When using the second option described in this section, make sure to use the ``--build-docs`` option. +Install the specific documentation requirements in your Python virtual +environment:: + + pip install -r requirements-doc.txt + +You can find the ``requirements-doc.txt`` file in the root of the repository. + Starting from 5.15, there are two options to build the documentation: 1. Building rst-only documentation (no API) @@ -422,13 +429,9 @@ The documentation is being generated using **qdoc** to get the API information, for the local Python related notes. The system requires the ``libxml2`` and ``libxslt`` libraries. -In the Python environment, ``graphviz`` needs to be installed on top -of the modules listed in ``requirements.txt`` before running the -installation process:: - - pip install graphviz -After installing ``graphviz``, the ``dot`` command needs to be in PATH, otherwise, +After installing ``graphviz`` (included in the ``requirements-doc.txt`` file), +the ``dot`` command needs to be in PATH, otherwise, the process will fail. Installing ``graphviz`` system-wide is also an option. Since the process relies on a Qt installation, you need to specify where the |
