diff options
| author | 2021-02-03 19:17:00 -0500 | |
|---|---|---|
| committer | 2021-02-03 19:17:00 -0500 | |
| commit | 3a0d66f07b112b6d2bdc2b57bbf717a89a351ce6 (patch) | |
| tree | a7cf56282e54f05785243bc1e903d6594f2c06ba /scripts/document_path_handlers.py | |
| parent | 787b97a4cb24330b36f11297c6d3a7a473a907d0 (diff) | |
New upstream version 8.1.2.upstream/8.1.2
Diffstat (limited to 'scripts/document_path_handlers.py')
| -rwxr-xr-x | scripts/document_path_handlers.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/scripts/document_path_handlers.py b/scripts/document_path_handlers.py new file mode 100755 index 0000000..d86309a --- /dev/null +++ b/scripts/document_path_handlers.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python3 + +from nikola import nikola +n = nikola.Nikola() +n.init_plugins() + +print(""".. title: Path Handlers for Nikola +.. slug: path-handlers +.. author: The Nikola Team + +.. DO NOT EDIT, this file is auto-generated by scripts/document_path_handlers.py + +Nikola supports special links with the syntax ``link://kind/name``. In +templates you can also use ``_link(kind, name)``. You can add query strings +(``?key=value``) for extra arguments, or pass keyword arguments to ``_link`` in +templates (support and behavior depends on path handlers themselves). Fragments +(``#anchor``) will be appended to the transformed link. + +Here are the descriptions for all the supported kinds. + +.. class:: dl-horizontal +""") + +for k in sorted(n.path_handlers.keys()): + v = n.path_handlers[k] + print(k) + print('\n'.join(' ' + l.strip() for l in v.__doc__.splitlines())) + print() |
