Support Wikilinks when generating Pelican sites
Project description
Support Wikilinks when generating Pelican sites.
Wikilinks is a plugin for Pelican, a static site generator written in Python.
Installation
The easiest way to install Wikilinks is through the use of pip. This will also install the required dependencies automatically.
pip install minchin.pelican.plugins.wikilinks
Further configuration will depend on the version of Pelican you are running. On version 4.5 or newer and you haven’t defined PLUGINS in your pelicanconf.py, nothing more in needed. On earlier versions of Pelican, or if you’ve defined PLUGINS, you’ll need to add the autoloader to your list of plugins in your pelicanconf.py file:
# pelicanconf.py
PLUGINS = [
# ...
'minchin.pelican.plugins.wikilinks',
# ...
]
Usage Notes
In basic usage, this allow links of the form [[ my work ]] or [[ my work | is finished ]]. Both of these will create a link to a file named my work (e.g. my work.md). By default, the name displayed for the link will be the filename; alternately add a title to the link by using a bar and anything after the bar will be used as the displayed name (e.g. | is finished).
Known Issues
The plugin relies on each link target having a unique filename; non-unique filenames may result in links not going where you were expecting.
Perhaps this should be added as token of a Markdown reader, but the link target list is only available after all sources have been rendered. Because the plugin is run after Markdown (or ReStructured) is rendered, there currently isn’t a way to make sure that this isn’t run on links within code blocks, etc.
Future To Dos
support link anchors (e.g. my work#heading)
Prior Art
This plugin relies on much work that has gone before, both explicitly for code and implicitely for the encouragement of this even being possible. This list is sadly incomplete, but in particlar:
Johnathan Sundqvist’s Obisidian Plugin for Pelican (and forks) – in particular, for providing inspiration on how to deal with Wiki-style links
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 minchin_pelican_plugins_wikilinks-1.0.1.tar.gz.
File metadata
- Download URL: minchin_pelican_plugins_wikilinks-1.0.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f71749462971e24b0047d0981ff441b6e53fa8fd606c2ed36829608dae25bd3
|
|
| MD5 |
f213567e65db390516488cef15aaa0f7
|
|
| BLAKE2b-256 |
b6c2b44a347e9a3691ba8634a794584f087de9776673303a953e4e8dffd95bf4
|
File details
Details for the file minchin_pelican_plugins_wikilinks-1.0.1-py3-none-any.whl.
File metadata
- Download URL: minchin_pelican_plugins_wikilinks-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa31afefe7bd4acc13695d1664f57ed08c4f8ab7e990cbdf0f067b87481cfcb6
|
|
| MD5 |
fc0e6391954de739e27f1a745c554258
|
|
| BLAKE2b-256 |
5ad134c67ceeb88f724a021d5678d5053c80f4706936b6f1626e7f53629502eb
|