diff options
| author | 2016-11-15 14:18:53 -0300 | |
|---|---|---|
| committer | 2016-11-15 14:18:53 -0300 | |
| commit | 1ad5102b7ddd181bb9c632b124d3ea4c7db28be6 (patch) | |
| tree | 73dda18465d0f4b8eb52d4482282a387c9f67c95 /scripts/document_path_handlers.py | |
| parent | b67294f76809a681ff73f209ed691a3e3f00563d (diff) | |
| parent | ffb671c61a24a9086343b54bad080e145ff33fc5 (diff) | |
Merge tag 'upstream/7.8.1'
Upstream version 7.8.1
# gpg: Firmado el mar 15 nov 2016 14:18:48 ART
# gpg: usando RSA clave A6C7B88B9583046A11C5403E0B00FB6CEBE2D002
# gpg: Firma correcta de "Ulises Vitulli <dererk@debian.org>" [absoluta]
# gpg: alias "Dererk <dererk@torproject.org>" [absoluta]
# gpg: alias "Ulises Vitulli <uvitulli@fi.uba.ar>" [absoluta]
# gpg: alias "Ulises Vitulli <dererk@satellogic.com>" [absoluta]
Diffstat (limited to 'scripts/document_path_handlers.py')
| -rwxr-xr-x | scripts/document_path_handlers.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/document_path_handlers.py b/scripts/document_path_handlers.py new file mode 100755 index 0000000..4c2e378 --- /dev/null +++ b/scripts/document_path_handlers.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +from __future__ import print_function, unicode_literals +from nikola import nikola +n = nikola.Nikola() +n.init_plugins() + +print(""".. title: Path Handlers for Nikola +.. slug: path-handlers +.. author: The Nikola Team + +Nikola supports special links with the syntax ``link://kind/name``. In the templates you can also +use ``_link(kind, name)`` Here is the description 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() |
