Skip to content

Commit 89b79ca

Browse files
committed
feat: Add ignore for path-substitutions in include directive
I am the author of [`sphinx-substitution-extensions`](https://github.com/adamtheturtle/sphinx-substitution-extensions). This enables substitutions in existing Sphinx / docutils directives by adding new options. There is already an ignore in this project for `code-block` (just above the added ignore). I wish to add support for `include` to my extension, at adamtheturtle/sphinx-substitution-extensions#1265, but there is a conflict with `doc8`.
1 parent e4d2539 commit 89b79ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc8/checks.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ class CheckValidity(ContentCheck):
118118
r'^Error in \"code-block\" directive\:\nunknown option: "substitutions".',
119119
re.MULTILINE,
120120
),
121+
re.compile(
122+
r'^Error in \"include\" directive\:\nunknown option: "path-substitutions".',
123+
re.MULTILINE,
124+
),
121125
re.compile(
122126
r'^PEP number must be a number from 0 to 9999; "\d{1,4}#[^"]*" is invalid.',
123127
),

0 commit comments

Comments
 (0)