chore: Make HtmlProofer happy by shutting up flake8 with # noqa
This commit is contained in:
parent
1b621ea13f
commit
072a57503b
@ -1,6 +1,6 @@
|
||||
# MkDocs semiliterate Plugin
|
||||
|
||||
This plugin for [MkDocs](https://mkdocs.org) is an extension of Allison Thackston's excellent [mkdocs-simple-plugin](https://athackst.github.io/mkdocs-simple-plugin). It allows you to include content from one file into another (via `{! ... !}` syntax), using exactly the same extraction specification that the `simple` plugin already uses for identifying documentation in source files.
|
||||
This plugin for [MkDocs](http://mkdocs.org) is an extension of Allison Thackston's excellent [mkdocs-simple-plugin](https://athackst.github.io/mkdocs-simple-plugin). It allows you to include content from one file into another (via `{! ... !}` syntax), using exactly the same extraction specification that the `simple` plugin already uses for identifying documentation in source files.
|
||||
<!-- repo: --><!-- site: The current version of mkdocs-semiliterate is {! setup.cfg { extract: {start: name}, terminate: '(\d*\.\d*\.\d*)'} !}. -->
|
||||
|
||||
## Rationale
|
||||
|
@ -36,8 +36,7 @@ enclosed in single or double quotes. Note that FILENAME is interpreted relative
|
||||
to the directory in which the file containing the `{! .. !}` expression
|
||||
resides. The YAML is interpreted exactly as the extraction options to a
|
||||
`semiliterate` item as
|
||||
[documented](https://athackst.github.io/mkdocs-simple-plugin/
|
||||
mkdocs_simple_plugin/plugin/index.html#semiliterate)
|
||||
[documented](https://athackst.github.io/mkdocs-simple-plugin/mkdocs_simple_plugin/plugin/index.html#semiliterate)
|
||||
for the `simple` extension. The text extracted from FILENAME
|
||||
is interpolated at the current location in the file currently being written.
|
||||
Recursive inclusion is supported.
|
||||
@ -62,8 +61,7 @@ to take advantage of the beginning of the `setup.cfg` file:
|
||||
|
||||
(and of course both of the code snippets just above are extracted into this
|
||||
page with `{! ... !}`, as you can see in the
|
||||
[source code](https://code.studioinfinity.org/glen/mkdocs-semiliterate/src/
|
||||
branch/main/mkdocs_semiliterate/plugin.py)
|
||||
[source code](https://code.studioinfinity.org/glen/mkdocs-semiliterate/src/branch/main/mkdocs_semiliterate/plugin.py)
|
||||
for the plugin.)
|
||||
|
||||
Note that a `{! ... !}` directive must be in a line that semiliterate would
|
||||
@ -74,7 +72,7 @@ special expressions, including `start` and `stop`.
|
||||
Moreover, on such normally-transcribed lines,
|
||||
it's the text **after** the application of any semiliterate `replace`ments that
|
||||
is checked for `{! ... !}`.
|
||||
"""
|
||||
""" # noqa: E501
|
||||
|
||||
include_open = re.compile(r'''(?<![`\\])(\{\!\s*)([\s'"])''')
|
||||
include_quoted_file = re.compile(
|
||||
|
Loading…
Reference in New Issue
Block a user