Skip to content

Commit 9ed8599

Browse files
committed
Add strikethrough text support
1 parent c024065 commit 9ed8599

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

doc/cabal-project.rst

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ project are:
116116
.. cfg-field:: extra-packages: package list with version bounds (comma separated)
117117
:synopsis: Adds external packages as local
118118

119-
[STRIKEOUT:Specifies a list of external packages from Hackage which
120-
should be considered local packages.] (Not implemented)
119+
:strike:`Specifies a list of external packages from Hackage which
120+
should be considered local packages.` (Not implemented)
121121

122122
There is no command line variant of this field.
123123

@@ -994,7 +994,7 @@ Executable options
994994
--program-prefix=prefix
995995
:synopsis: Prepend prefix to program names.
996996

997-
[STRIKEOUT:Prepend *prefix* to installed program names.] (Currently
997+
:strike:`Prepend *prefix* to installed program names.` (Currently
998998
implemented in a silly and not useful way. If you need this to work
999999
give us a shout.)
10001000

@@ -1008,7 +1008,7 @@ Executable options
10081008
--program-suffix=suffix
10091009
:synopsis: Append refix to program names.
10101010

1011-
[STRIKEOUT:Append *suffix* to installed program names.] (Currently
1011+
:strike:`Append *suffix* to installed program names.` (Currently
10121012
implemented in a silly and not useful way. If you need this to work
10131013
give us a shout.)
10141014

@@ -1078,7 +1078,7 @@ Dynamic linking options
10781078

10791079
:default: False
10801080

1081-
[STRIKEOUT:Build a package which is relocatable.] (TODO: It is not
1081+
:strike:`Build a package which is relocatable.` (TODO: It is not
10821082
clear what this actually does, or if it works at all.)
10831083

10841084
The command line variant of this flag is ``--relocatable``.
@@ -1561,8 +1561,8 @@ Advanced global configuration options
15611561

15621562
:default: ``~/.cabal/packages``
15631563

1564-
[STRIKEOUT:The location where packages downloaded from remote
1565-
repositories will be cached.] Not implemented yet.
1564+
:strike:`The location where packages downloaded from remote
1565+
repositories will be cached.` Not implemented yet.
15661566

15671567
The command line variant of this flag is
15681568
``--remote-repo-cache=DIR``.
@@ -1573,7 +1573,7 @@ Advanced global configuration options
15731573

15741574
:default: ``~/.cabal/logs``
15751575

1576-
[STRIKEOUT:The location where build logs for packages are stored.]
1576+
:strike:`The location where build logs for packages are stored.`
15771577
Not implemented yet.
15781578

15791579
The command line variant of this flag is ``--logs-dir=DIR``.
@@ -1584,9 +1584,10 @@ Advanced global configuration options
15841584

15851585
:default: ``~/.cabal/logs/build.log``
15861586

1587-
[STRIKEOUT:The file to save build summaries. Valid variables which
1588-
can be used in the path are ``$pkgid``, ``$compiler``, ``$os`` and
1589-
``$arch``.] Not implemented yet.
1587+
:strike:`The file to save build summaries.` Not implemented yet.
1588+
1589+
Valid variables which can be used in the path are ``$pkgid``,
1590+
``$compiler``, ``$os`` and ``$arch``.
15901591

15911592
The command line variant of this flag is
15921593
``--build-summary=TEMPLATE``.

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
extensions = [
1919
'sphinx.ext.extlinks',
2020
'sphinx.ext.todo',
21-
'sphinx-jsonschema'
21+
'sphinx-jsonschema',
22+
'sphinxnotes.strike'
2223
]
2324

2425
templates_path = ['_templates']

doc/requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
sphinx >= 5
22
sphinx_rtd_theme >= 1
33
sphinx-jsonschema
4+
sphinxnotes-strike
45
# Pygments>=2.7.4 suggested by CVE-2021-20270 CVE-2021-27291
56
Pygments >= 2.7.4

doc/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ sphinx==5.0.1
5151
# via
5252
# -r requirements.in
5353
# sphinx-rtd-theme
54+
# sphinxnotes-strike
5455
sphinx-jsonschema==1.16.11
5556
# via -r requirements.in
5657
sphinx-rtd-theme==1.0.0
@@ -67,6 +68,8 @@ sphinxcontrib-qthelp==1.0.3
6768
# via sphinx
6869
sphinxcontrib-serializinghtml==1.1.5
6970
# via sphinx
71+
sphinxnotes-strike==1.1
72+
# via -r requirements.in
7073
urllib3==1.26.7
7174
# via requests
7275
zipp==3.8.0

0 commit comments

Comments
 (0)