Skip to content

Commit 50fd490

Browse files
committed
fix: examples indentation (#339)
1 parent 05ad8a0 commit 50fd490

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

doc/source/examples/index.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ This show how the different extensions get rendered in ansys-sphinx-theme. This
1010
:link: sphinx-design
1111
:link-type: ref
1212

13-
Examples of the sphinx design rendered using the `ansys-sphinx-theme`.
13+
Examples of the sphinx design rendered using the `ansys-sphinx-theme`.
1414

1515
.. grid-item::
1616
.. card:: Table
1717
:link: table
1818
:link-type: ref
1919

20-
Examples of tables with JavaScript and RST rendered using the `ansys-sphinx-theme`.
21-
It also recommends improving documentation with RST.
20+
Examples of tables with JavaScript and RST rendered using the `ansys-sphinx-theme`.
21+
It also recommends improving documentation with RST.
2222

2323

2424
.. toctree::
2525
:hidden:
2626
:maxdepth: 2
2727

2828
sphinx-design
29-
table
29+
table

doc/source/examples/sphinx-design.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ please refer `sphinx design <https://sphinx-design.readthedocs.io/en/latest/inde
1414
{{ title[0].upper() }}{{ title[1:] }}
1515
{{ '~' * (title | length) }}
1616

17-
.. literalinclude:: sphinx_examples/{{ filename }}
18-
:language: rst
17+
.. literalinclude:: sphinx_examples/{{ filename }}
18+
:language: rst
1919

2020
This directive renders as follows:
2121

22-
.. include:: sphinx_examples/{{ filename }}
22+
.. include:: sphinx_examples/{{ filename }}
2323

2424
{% endfor %}

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ commands =
4343
description = Check if documentation generates properly
4444
extras = doc
4545
commands =
46-
sphinx-build -d "{toxworkdir}/doc_doctree" doc/source "{toxworkdir}/doc_out" --color -vW -bhtml
46+
sphinx-build doc/source "{toxinidir}/doc/_build/html" --color -vW -bhtml

0 commit comments

Comments
 (0)