Skip to content

Commit

Permalink
docs: Works with sphinxnotes-strike
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Jan 13, 2024
1 parent f0794eb commit bdeeee2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@
'parsed_literal': (['literal'], True),
'parsed_emphasis': (['emphasis'], True),
'literal_issue': ['literal', 'issue'],
'literal_strike': ['literal', 'strike'],
}

extensions.append('sphinxnotes.strike')

# DOG FOOD CONFIGURATION END
#
19 changes: 19 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,25 @@ then comboroles creates a ``literal_issue`` role based on it:

.. _sphinx.ext.extlinks: https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html

``sphinxnotes.strike``
----------------------

:parsed_literal:`sphinxnotes.strike_` is an extension that adds
:del:`strikethrough text` support to Sphinx.

.. code:: python
comboroles_roles = {
'literal_strike': ['literal', 'strike'],
}
=========================== ======================
``:strike:`text``` :strike:`text`
``:literal_strike:`text```` :literal_strike:`text`
=========================== ======================

.. _sphinxnotes-strike: https://sphinx.silverrainz.me/strike/

.. _limitation:

Limitation
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ docs = [
"sphinx_design",
"sphinx_copybutton",
"sphinxcontrib-gtagjs",
"sphinxnotes-strike",
]

[project.urls]
Expand Down

0 comments on commit bdeeee2

Please sign in to comment.