
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
mkdocs-frontmatter-url
Advanced tools
A MKDocs plugin that generates a button for a URL defined in the frontmatter
This MkDocs plugin generates a button or tag from a URL specified in the frontmatter of a markdown document.
Install the package with pip:
pip install mkdocs-frontmatter-url
mkdocs.yml
:plugins:
- frontmatter-url
url
field to the frontmatter:---
title: My Page
gitlab: https://example.com
---
# Welcome to My Page
Content goes here...
The plugin will automatically generate a button with the specified URL after the frontmatter.
To verify if the on_page_markdown
function is triggering, run MkDocs with the verbose flag:
mkdocs build -v
or for serving:
mkdocs serve -v
This will display detailed logs, including messages from the plugin showing when the on_page_markdown
function is triggered for each page.
You can customize the button text in your mkdocs.yml
:
plugins:
- frontmatter-url:
button-text: 'My external button'
frontmatter-url-name: 'github'
button-text
is the text that is shown on the button.
The default is Visit link
.
frontmatter-url-name
is the name of the url-field in your frontmatter.
The default is url
.
The interaction with other plugins has not been tested
This project is licensed under the MIT License.
FAQs
A MKDocs plugin that generates a button for a URL defined in the frontmatter
We found that mkdocs-frontmatter-url 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.