Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update script and global gallery path docs
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
- Loading branch information
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
#!/usr/bin/env python | ||
|
||
from __future__ import print_function, unicode_literals | ||
from nikola import nikola | ||
n=nikola.Nikola() | ||
n = nikola.Nikola() | ||
n.init_plugins() | ||
|
||
print """.. title: Path Handlers for Nikola | ||
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. | ||
""" | ||
""") | ||
|
||
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(k) | ||
print('\n'.join(' '+l.strip() for l in v.__doc__.splitlines())) | ||
print() |