Skip to content

Commit 2caa957

Browse files
ver: bump version 0.15.1
1 parent ca08ddd commit 2caa957

File tree

2 files changed

+48
-3
lines changed

2 files changed

+48
-3
lines changed

doc/source/getting_started/index.rst

+43-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,37 @@
33
===============
44
Getting started
55
===============
6-
`Sphinx <https://www.sphinx-doc.org/en/master/>`_ is a Python documentation
6+
`Sphinx <Sphinx_>`_ is a Python documentation
77
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_>`_.
99

1010
This section explains how to install the Ansys Sphinx theme and then set up your
1111
Sphinx ``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+
1337
Install the theme
1438
-----------------
1539
Install 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
---------------------------
2353
To 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/

pyproject.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
55
[project]
66
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
77
name = "ansys-sphinx-theme"
8-
version = "0.15.0"
8+
version = "0.15.1"
99
description = "A theme devised by ANSYS, Inc. for Sphinx documentation."
1010
readme = "README.rst"
1111
requires-python = ">=3.9,<4"
@@ -32,6 +32,10 @@ dependencies = [
3232
]
3333

3434
[project.optional-dependencies]
35+
autoapi = [
36+
"sphinx-autoapi==3.0.0a4",
37+
"sphinx-design==0.5.0",
38+
]
3539
doc = [
3640
"numpydoc==1.7.0",
3741
"Sphinx==7.2.6",

0 commit comments

Comments
 (0)