Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
mkdocs-strings-replacement
Advanced tools
Mkdocs Markdown strings replacement plugin.
pip install mkdocs-strings-replacement
Enable the plugin in your mkdocs.yml
:
plugins:
- mkdocs-strings-replacement:
strings_replacements:
- old_value: "This string will be replaced"
new_value: "with this string"
Note:
strings_replacements
is an array of pairs of the old_value
's of the strings you want to replace with new_value
's of the strings you want to put there in exchange.old_value
and new_value
pairs then the replacement will occur from the top to the bottom of the pairs you have passed.plugins:
- mkdocs-strings-replacement:
strings_replacements:
- old_value: "[[_TOSP_]]"
new_value: ""
- old_value: "[[_TOC_]]"
new_value: ""
In the given example:
[[_TOSP_]]
will be replaced with nothing, which will results in erasing [[_TOSP_]]
from your pages.[[_TOC_]]
will be replaced with empty string as well.To install the dependencies for the plugin, run:
pip install .
To set up the development environment, including dependencies for running tests, run:
pip install -e .[dev]
To run the tests, use:
pytest
FAQs
Mkdocs strings replacement.
We found that mkdocs-strings-replacement demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.