Adds a backlinks section that lists every page linking to the current page.
Project description
MkDocs Backlinks Section Plugin
Adds a backlinks section that lists every page linking to the current page.
Installation
You can install it with pip:
pip install mkdocs-backlinks-section-plugin
Usage
Add the plugin to your mkdocs.yml:
plugins:
- search
- backlinks_section
Configuration
Text
You can customize the text inserted by the plugin with the configuration values below:
| Option | Type | Default value |
|---|---|---|
title |
string | Backlinks |
description |
string | The following pages link to this page: |
description_no_links |
string | No other pages link to this page. |
So for example if you would want the text to be in German, you could do this in your mkdocs.yml:
plugins:
- search
- backlinks_section:
title: Rückverweise
description: "Die folgenden Seiten referenzieren die aktuelle Seite:"
description_no_links: Es gibt keine Verweise auf diese Seite.
Ignore pages
You can ignore source and destination pages for the backlink section. The values are interpreted as glob-like patterns, wich are matched against the paths of the Markdown source files.
| Option | Type | Default value |
|---|---|---|
ignore_links_from |
list of strings | [] |
ignore_links_to |
list of strings | [] |
For example you may have a page listing all tags (and thus linking to almost all pages) and want to prevent every page having a backlink to it:
plugins:
- search
- backlinks_section:
ignore_links_from:
- path/with/globs/**/to/tags.md
If you do not want a backlinks section on some pages, you can disable it with the ignore_links_to option:
plugins:
- search
- backlinks_section:
ignore_links_to:
- path/with/globs/**/to/files-without-backlink-section-*.md
- index.md
Notable changes
Version 0.0.2
- Added
ignore_links_fromandignore_links_toconfiguration options
Version 0.0.1
- Initial version
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_backlinks_section_plugin-0.0.2.tar.gz.
File metadata
- Download URL: mkdocs_backlinks_section_plugin-0.0.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97eb4abea8d98c677d8ec85a5ef4195acfdc081fc4a5dfdb3c805593c2f09e28
|
|
| MD5 |
3a101ff63a687538ddc668c9f954b468
|
|
| BLAKE2b-256 |
2f9410796808bc37c3340eab0321f8f1a8374ee746bb8c7f19a76866274aeeaf
|
File details
Details for the file mkdocs_backlinks_section_plugin-0.0.2-py3-none-any.whl.
File metadata
- Download URL: mkdocs_backlinks_section_plugin-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64e761f37d74832acfcacd90be766fa6a36de2602c6f22099071e7bf68e1330e
|
|
| MD5 |
990ac3074e46635e9bbe8f6f6ec4b498
|
|
| BLAKE2b-256 |
ff4ecf0ae6dd32983d3ba78d01e7654f8565473b67527835148414ba64aca4db
|