-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up doc for Ansys Sphinx theme like PyAnsys libraries (#103)
* Set up doc for Ansys Sphinx theme like PyAnsys libraries * Fix missing config file and clean up based on rendering * Apply suggestions from code review Incorporate Roberto's feedback Co-authored-by: Roberto Pastor Muela <roberto.pastormuela@ansys.com> * Update doc/source/User_guide/options.rst Incorporate missed change. Co-authored-by: Roberto Pastor Muela <roberto.pastormuela@ansys.com> * Add "boolean" to accept.txt Google style guide: When referring to the abstract data type, use lowercase. (In the unlikely event that you refer to Boolean mathematics or Boolean logic, use uppercase.) * Renaming folders Co-authored-by: RobPasMue <roberto.pastormuela@ansys.com>
- Loading branch information
Showing
12 changed files
with
256 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.. _ref_getting_started: | ||
|
||
=============== | ||
Getting started | ||
=============== | ||
`Sphinx <https://www.sphinx-doc.org/en/master/>`_ is a Python documentation | ||
generator for creating documentation. If you are new to using Sphinx, see | ||
`Sphinx Getting Started <https://www.sphinx-doc.org/en/master/usage/quickstart.html>`_. | ||
|
||
This section explains how to install the Ansys Sphinx theme and then set up your | ||
Sphinx ``conf.py`` file to use this theme to generate your documentation. | ||
|
||
Install the theme | ||
----------------- | ||
Install the Ansys Sphinx theme with: | ||
|
||
.. code:: | ||
pip install ansys-sphinx-theme | ||
Modify the ``conf.py`` file | ||
--------------------------- | ||
To use this theme, modify your Sphinx ``conf.py`` file:: | ||
|
||
html_theme ='ansys_sphinx_theme' | ||
|
||
Consider using the ``conf.py`` for this repository: | ||
|
||
.. literalinclude:: ../conf.py | ||
:language: python | ||
|
||
.. toctree:: | ||
:hidden: | ||
:maxdepth: 2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. _ref_user_guide: | ||
|
||
========== | ||
User guide | ||
========== | ||
The Ansys Sphinx theme is based on the `PyData Sphinx theme <https://github.com/pydata/pydata-sphinx-theme>`_. | ||
For more information on its configuration, see | ||
`Configuration <https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/configuring.html>`_. | ||
|
||
While the Ansys Sphinx theme is often used as is, you can customize the following: | ||
|
||
- :ref:`ref_user_guide_css` | ||
- :ref:`ref_user_guide_html_theme` | ||
- :ref:`ref_user_guide_pdf_cover` | ||
- :ref:`ref_user_guide_404_page` | ||
|
||
.. toctree:: | ||
:hidden: | ||
:maxdepth: 2 | ||
|
||
css | ||
options | ||
404_page | ||
|
Oops, something went wrong.