Skip to content

Commit

Permalink
Fix syntax error in python code block
Browse files Browse the repository at this point in the history
  • Loading branch information
vsalvino authored and lb- committed Aug 18, 2022
1 parent 775e600 commit d83dfdd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions USAGE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@
Usage
=====

Select the "Sphinx Wagtail theme" in the `conf.py` file of a Sphinx project::
Select the "Sphinx Wagtail theme" in the ``conf.py`` file of a Sphinx project:

.. code-block:: python
# include the theme in the list of extensions to be loaded
extensions = ['sphinx_wagtail_theme', ]
extensions = ['sphinx_wagtail_theme', ...]
# select the theme
html_theme = 'sphinx_wagtail_theme'
For developers:

The following snippet should always work if appended at the end of `conf.py`::
The following snippet should always work if appended at the end of ``conf.py``:

.. code-block:: python
try:
extensions
Expand Down

0 comments on commit d83dfdd

Please sign in to comment.