Skip to content

Commit

Permalink
restructure pyreverse documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Julfried committed Nov 3, 2024
1 parent 15a5ac0 commit 49be51e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/additional_tools/pyreverse/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Pyreverse Configuration
^^^^^^^^^^^^^^^^^^^^^^^
Pyreverse Configuration Options
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Filtering and Scope
Expand Down
22 changes: 19 additions & 3 deletions doc/additional_tools/pyreverse/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,34 @@ If Graphviz (or the ``dot`` command) is installed, all `output formats supported
can be used as well. In this case, ``pyreverse`` first generates a temporary ``.gv`` file, which is then
fed to Graphviz to generate the final image.

Running Pyreverse
Using Pyreverse
'''''''''''''''''

To run ``pyreverse``, use::

pyreverse [options] <packages>

<packages> can also be a single Python module.
To see a full list of the available options, run::
[options] can be specified to modify the behavior of pyreverse, and
<packages> can either be a package or a list of modules separated by spaces.

Configuration Options
.....................

To see a full list of the available [options], run::

pyreverse -h

For detailed descriptions of the command-line options available for Pyreverse, refer to the dedicated `Pyreverse Configuration Options <configuration.html>`_ page. This page includes sections on:

* `Filtering and Scope <configuration.html#filtering-and-scope>`_ - Options for filtering classes and limiting the scope of the generated diagrams.
* `Display Options <configuration.html#display-options>`_ - Customize how diagrams are rendered, including colors and module names.
* `Output Control <configuration.html#output-control>`_ - Specify output formats and directory locations for generated files.
* `Project Configuration <configuration.html#project-configuration>`_ - Configure project-specific settings such as ignored files and source roots.

.. toctree::
:maxdepth: 1
:hidden:

Example Output
''''''''''''''

Expand Down
2 changes: 1 addition & 1 deletion doc/exts/pyreverse_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _write_config_page(run: Run) -> None:
sections: list[str] = [
".. This file is auto-generated. Make any changes to the associated\n"
".. docs extension in 'doc/exts/pyreverse_configuration.py'.\n\n",
get_rst_title("Pyreverse Configuration", "^"),
get_rst_title("Pyreverse Configuration Options", "^"),
]

options: list[OptionsData] = [OptionsData(name, info) for name, info in run.options]
Expand Down

0 comments on commit 49be51e

Please sign in to comment.