33===============
44Getting started
55===============
6- `Sphinx <https://www.sphinx-doc.org/en/master/ >`_ is a Python documentation
6+ `Sphinx <Sphinx _ >`_ is a Python documentation
77generator for creating documentation. If you are new to using Sphinx, see
8- `Sphinx Getting Started <https://www.sphinx-doc.org/en/master/usage/quickstart.html >`_.
8+ `Sphinx Getting Started <Sphinx_Getting_Started _ >`_.
99
1010This section explains how to install the Ansys Sphinx theme and then set up your
1111Sphinx ``conf.py `` file to use this theme to generate your documentation.
1212
13+ Dependencies
14+ ------------
15+
16+ Ansys sphinx theme build on top of ``pydata sphinx theme ``.
17+ The theme requires the following dependencies:
18+
19+ - `Sphinx <Sphinx_PyPI _>`_
20+ - `pydata-sphinx-theme <PyData_PyPI _>`_
21+ - `Jinja2 <Jinja2_PyPI _>`_
22+
23+ Optional dependencies
24+ ---------------------
25+
26+ Ansys Sphinx theme includes optional dependencies for autoapi documentation.
27+ To utilize `sphinx-autoapi ` with custom templates provided by the theme,
28+ you need to install the following dependencies:
29+
30+ - `sphinx-autoapi <Sphinx_AutoAPI_PyPI _>`_
31+ - `sphinx-design <Sphinx_Design_PyPI _>`_
32+
33+ An example page demonstrating autoapi rendering with the Ansys sphinx theme template can
34+ be found found on the ``API Reference `` page of the
35+ `PyAnsys Geometry documentation <PyAnsys_Geometry_Docs _>`_.
36+
1337Install the theme
1438-----------------
1539Install the Ansys Sphinx theme with:
@@ -18,6 +42,12 @@ Install the Ansys Sphinx theme with:
1842
1943 pip install ansys-sphinx-theme
2044
45+ For installing the optional dependencies, use:
46+
47+ .. code ::
48+
49+ pip install ansys-sphinx-theme[autoapi]
50+
2151 Modify the ``conf.py `` file
2252---------------------------
2353To use this theme, modify your Sphinx ``conf.py `` file::
@@ -33,3 +63,14 @@ Consider using the ``conf.py`` for this repository:
3363.. toctree ::
3464 :hidden:
3565 :maxdepth: 2
66+
67+ .. LINKS and References
68+
69+ .. _Sphinx : https://www.sphinx-doc.org/en/master/
70+ .. _Sphinx_Getting_Started : https://www.sphinx-doc.org/en/master/usage/quickstart.html
71+ .. _Sphinx_PyPI : https://pypi.org/project/Sphinx/
72+ .. _PyData_PyPI : https://pypi.org/project/pydata-sphinx-theme/
73+ .. _Jinja2_PyPI : https://pypi.org/project/Jinja2/
74+ .. _Sphinx_AutoAPI_PyPI : https://pypi.org/project/sphinx-autoapi/
75+ .. _Sphinx_Design_PyPI : https://pypi.org/project/sphinx-design/
76+ .. _PyAnsys_Geometry_Docs : https://geometry.docs.pyansys.com/
0 commit comments