Made tags' and categories' path configuration more flexible.
Making sure there are no collisions between tags and categories.
Supporting PRETTY_URLS also for categories.
Fixed a problem with Python2.
Deprecation warning for WRITE_TAG_CLOUD.
Added/extended change documentation.
Using kw[] instead of self.site.config[] where possible.
fix handling of WRITE_TAG_CLOUD

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
add category to 1.rst

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Merge pull request #1535 from getnikola/more_flexible_tags

Made tags' and categories' path configuration more flexible.
add NikolaPygmentsHTML

This is a Nikola-specific Pygments HTML formatter, which produces code
identical to that of reST, but with `table` line numbers (if desired).
Code produced by the formatter is therefore compatible with existing
code.css files, and it also removes the need to write regexps to fix
things that didn’t comply.

The Markdown compiler still uses a regexp, another patch is needed for that.

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
fix #1285 -- Add a modernized CodeBlock directive.

This is a saner and more modern rewrite of the CodeBlock directive
from reStructuredText.  This version defers the generation of all the
HTML to NikolaPygmentsHTML instead of a mix of a Pygments Lexer and a
custom hack.  As such, we can now use the `table` line numbers instead
of the broken `inline` mess that makes copy-pasting impossible.

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
update changelog

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
Merge pull request #1540 from getnikola/sanitize-codeblock

fix #1285 -- sanitize code blocks.
Refactored index generation code so that similarities and differences between tags.py and indexes.py are more obvious.
Added new option INDEXES_PAGES_STARTING_WITH_LAST.
Continued refactoring indexes.py and tags.py so that most of the code is quite identical, and can be moved into a common utility function soon.
Moved index generation code into Nikola class.
Renamed option to INDEXES_PAGES_STATIC.
Created utility function to adjust path/link names for indices.
Added option to inject more uptodate dependencies.
Improved documentation.