Isso default language is current
This commit is contained in:
parent
eb6df19281
commit
3e385cd16c
5 changed files with 9 additions and 4 deletions
5
CHANGES
5
CHANGES
|
@ -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*)
|
||||||
====================
|
====================
|
||||||
|
|
||||||
|
|
|
@ -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",
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -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",
|
||||||
|
|
|
@ -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):
|
||||||
|
|
|
@ -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'] }}"
|
||||||
|
|
Loading…
Reference in a new issue