Skip to content

Commit

Permalink
Merge pull request #57 from TYPO3-Documentation/task-update-module
Browse files Browse the repository at this point in the history
Task update module
  • Loading branch information
marble authored Feb 25, 2020
2 parents 1630d8c + 1d4add6 commit c24b1a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Next release
============

* Update documentation
* Have {{ theme_version }} in page context

4.1.2 (2020-02-25)
==================
Expand Down
6 changes: 1 addition & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
pygments_style = 'sphinx'
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
today_fmt = '%Y-%m-%d %H:%M'

# -- Options for HTML output -------------------------------------------
html_theme = 'alabaster'
Expand Down Expand Up @@ -61,11 +62,6 @@
version = sphinx_typo3_theme.__version__
release = sphinx_typo3_theme.__version__
html_theme = 'sphinx_typo3_theme'
try:
html_theme_options
except NameError:
html_theme_options = {}
html_theme_options['version'] = sphinx_typo3_theme.__version__



Expand Down
1 change: 1 addition & 0 deletions sphinx_typo3_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def update_context(app, pagename, templatename, context, doctree):
`page.html`.
"""
context['theme_version'] = __version__
return app.builder.env.metadata.get(pagename, {}).get('template')


Expand Down

0 comments on commit c24b1a7

Please sign in to comment.