3
3
===============
4
4
Getting started
5
5
===============
6
- `Sphinx <https://www.sphinx-doc.org/en/master/ >`_ is a Python documentation
6
+ `Sphinx <Sphinx _ >`_ is a Python documentation
7
7
generator 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 _ >`_.
9
9
10
10
This section explains how to install the Ansys Sphinx theme and then set up your
11
11
Sphinx ``conf.py `` file to use this theme to generate your documentation.
12
12
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
+
13
37
Install the theme
14
38
-----------------
15
39
Install the Ansys Sphinx theme with:
@@ -18,6 +42,12 @@ Install the Ansys Sphinx theme with:
18
42
19
43
pip install ansys-sphinx-theme
20
44
45
+ For installing the optional dependencies, use:
46
+
47
+ .. code ::
48
+
49
+ pip install ansys-sphinx-theme[autoapi]
50
+
21
51
Modify the ``conf.py `` file
22
52
---------------------------
23
53
To use this theme, modify your Sphinx ``conf.py `` file::
@@ -33,3 +63,14 @@ Consider using the ``conf.py`` for this repository:
33
63
.. toctree ::
34
64
:hidden:
35
65
: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