Permalink
Browse files

Improved changelog rendering

--HG--
branch : trunk
  • Loading branch information...
1 parent 604b846 commit f49f8f7532cd7ef144f6ef8b663ccf313e041776 @mitsuhiko mitsuhiko committed Apr 28, 2009
Showing with 2 additions and 17 deletions.
  1. +2 −3 docs/changelog.rst
  2. +0 −14 docs/jinjaext.py
View
@@ -1,4 +1,3 @@
-Changelog
-=========
+.. module:: jinja2
-.. jinjachangelog::
+.. include:: ../CHANGES
View
@@ -139,19 +139,6 @@ def directive(dirname, arguments, options, content, lineno,
return directive
-def jinja_changelog(dirname, arguments, options, content, lineno,
- content_offset, block_text, state, state_machine):
- doc = ViewList()
- changelog = file(os.path.join(os.path.dirname(jinja2.__file__), '..',
- 'CHANGES'))
- try:
- for line in islice(changelog, 3, None):
- doc.append(line.rstrip().decode('utf-8'), '<jinjaext>')
- finally:
- changelog.close()
- return parse_rst(state, content_offset, doc)
-
-
from jinja2.defaults import DEFAULT_FILTERS, DEFAULT_TESTS
jinja_filters = dump_functions(DEFAULT_FILTERS)
jinja_tests = dump_functions(DEFAULT_TESTS)
@@ -210,7 +197,6 @@ def inject_toc(app, doctree, docname):
def setup(app):
app.add_directive('jinjafilters', jinja_filters, 0, (0, 0, 0))
app.add_directive('jinjatests', jinja_tests, 0, (0, 0, 0))
- app.add_directive('jinjachangelog', jinja_changelog, 0, (0, 0, 0))
app.add_directive('jinjanodes', jinja_nodes, 0, (0, 0, 0))
# uncomment for inline toc. links are broken unfortunately
##app.connect('doctree-resolved', inject_toc)

0 comments on commit f49f8f7

Please sign in to comment.