summaryrefslogtreecommitdiffstats
path: root/scripts/document_path_handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/document_path_handlers.py')
-rwxr-xr-xscripts/document_path_handlers.py22
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..692c8e0
--- /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``. 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()