Isso default language is current

This commit is contained in:
Kujiu 2020-06-03 13:11:50 +02:00
parent eb6df19281
commit 3e385cd16c
Signed by: kujiu
GPG key ID: ABBB2CAC6855599F
5 changed files with 9 additions and 4 deletions

View file

@ -2,6 +2,11 @@
Changes Changes
======= =======
1.0.5 (*2020-06-03*)
====================
- Isso uses current language if not provided in conf.
1.0.4 (*2020-06-03*) 1.0.4 (*2020-06-03*)
==================== ====================

View file

@ -72,7 +72,7 @@ If provided, creates external links (e.g. Github) in the top right corner:
'prefix': '/isso', 'prefix': '/isso',
'url': baseurl + '/isso', 'url': baseurl + '/isso',
'require_author': "true", 'require_author': "true",
'lang': 'fr', 'lang': 'fr', # optional, use current language by default
'reply_to_self': "true", 'reply_to_self': "true",
'require_author': "true", 'require_author': "true",
'require_email': "false", 'require_email': "false",

View file

@ -27,7 +27,7 @@ with open("README.rst", "r") as fh:
setup( setup(
name="sphinx_nervproject_theme", name="sphinx_nervproject_theme",
version="1.0.4", version="1.0.5",
url="https://procrastinator.nerv-project.eu/nerv-project/communication/sphinx_nervproject_theme", url="https://procrastinator.nerv-project.eu/nerv-project/communication/sphinx_nervproject_theme",
license="EUPL 1.2", license="EUPL 1.2",
author="Kujiu", author="Kujiu",

View file

@ -5,7 +5,7 @@ from sphinx.environment.collectors import EnvironmentCollector
from sphinx import addnodes from sphinx import addnodes
from sphinx.util.osutil import relative_uri from sphinx.util.osutil import relative_uri
__version__ = (1, 0, 4) __version__ = (1, 0, 5)
class SimpleTocTreeCollector(EnvironmentCollector): class SimpleTocTreeCollector(EnvironmentCollector):

View file

@ -17,7 +17,7 @@
<script data-isso="{{ theme_isso['prefix'] }}" <script data-isso="{{ theme_isso['prefix'] }}"
data-isso-id="{{ pagename }}" data-isso-id="{{ pagename }}"
data-isso-css="false" data-isso-css="false"
data-isso-lang="{{ theme_isso['lang'] }}" data-isso-lang="{{ theme_isso.get('lang', language) }}"
data-isso-reply-to-self="{{ theme_isso['reply_to_self'] }}" data-isso-reply-to-self="{{ theme_isso['reply_to_self'] }}"
data-isso-require-author="{{ theme_isso['require_author'] }}" data-isso-require-author="{{ theme_isso['require_author'] }}"
data-isso-require-email="{{ theme_isso['require_email'] }}" data-isso-require-email="{{ theme_isso['require_email'] }}"