Update version number
This commit is contained in:
parent
f2e0921a3c
commit
fe2e34776c
10 changed files with 26 additions and 21 deletions
5
CHANGES
5
CHANGES
|
@ -2,6 +2,11 @@
|
||||||
Changes
|
Changes
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
2.0.2 (*2020-07-31*)
|
||||||
|
====================
|
||||||
|
|
||||||
|
- Better support for ePub builder
|
||||||
|
|
||||||
2.0.1 (*2020-07-08*)
|
2.0.1 (*2020-07-08*)
|
||||||
====================
|
====================
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -28,7 +28,7 @@ with open("README.rst", "r") as fh:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="sphinx_nervproject_theme",
|
name="sphinx_nervproject_theme",
|
||||||
version="2.0.1",
|
version="2.0.2",
|
||||||
url="https://procrastinator.nerv-project.eu/nerv-project/sphinx_nervproject_theme",
|
url="https://procrastinator.nerv-project.eu/nerv-project/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__ = (2, 0, 1)
|
__version__ = (2, 0, 2)
|
||||||
|
|
||||||
|
|
||||||
class SimpleTocTreeCollector(EnvironmentCollector):
|
class SimpleTocTreeCollector(EnvironmentCollector):
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
<h1>
|
<h1>
|
||||||
{% if archive_feed %}
|
{% if archive_feed %}
|
||||||
<a href="{{ pathto(collection.path, 1) }}/atom.xml"><svg
|
<a href="{{ pathto(collection.path, 1) }}/atom.xml"><svg role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title=""
|
||||||
class="fasvg"><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#rss"></use></svg></a>{% endif %}
|
class="fasvg"><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#rss"></use></svg></a>{% endif %}
|
||||||
{{ header }}
|
{{ header }}
|
||||||
{% if collection.href %}
|
{% if collection.href %}
|
||||||
|
@ -35,10 +35,10 @@
|
||||||
|
|
||||||
<ul class="ablog-archive">
|
<ul class="ablog-archive">
|
||||||
<li>{% if post.published %}
|
<li>{% if post.published %}
|
||||||
<svg class="fasvg"><use xlink:href="{{ pathto('_static/fa/regular.svg', 1) }}#calendar"></use></svg>
|
<svg class="fasvg" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title=""><use xlink:href="{{ pathto('_static/fa/regular.svg', 1) }}#calendar"></use></svg>
|
||||||
{{ post.date.strftime(ablog.post_date_format) }}
|
{{ post.date.strftime(ablog.post_date_format) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<svg class="fasvg"><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#pencil-alt"></use></svg>
|
<svg class="fasvg" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title=""><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#pencil-alt"></use></svg>
|
||||||
{% if post.date %}{{ post.date.strftime(ablog.post_date_format) }}
|
{% if post.date %}{{ post.date.strftime(ablog.post_date_format) }}
|
||||||
{% else %} Draft {% endif %}
|
{% else %} Draft {% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<dt>{{ gettext('Date') }}</dt>
|
<dt>{{ gettext('Date') }}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{% if post.published %}
|
{% if post.published %}
|
||||||
<svg class="fasvg"><use xlink:href="{{ pathto('_static/fa/regular.svg', 1) }}#calendar"></use></svg>
|
<svg class="fasvg" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title=""><use xlink:href="{{ pathto('_static/fa/regular.svg', 1) }}#calendar"></use></svg>
|
||||||
{{ post.date.strftime(ablog.post_date_format) }}
|
{{ post.date.strftime(ablog.post_date_format) }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<svg class="fasvg"><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#pencil-alt"></use></svg>
|
<svg class="fasvg" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title=""><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#pencil-alt"></use></svg>
|
||||||
{% if post.date %}{{ post.date.strftime(ablog.post_date_format) }}
|
{% if post.date %}{{ post.date.strftime(ablog.post_date_format) }}
|
||||||
{% else %} {{ gettext('Draft') }} {% endif %}
|
{% else %} {{ gettext('Draft') }} {% endif %}
|
||||||
{% endif %}</dd>
|
{% endif %}</dd>
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
<dt>{{ gettext('Published') }}</dt>
|
<dt>{{ gettext('Published') }}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{% if post.published and post.date != post.update %}
|
{% if post.published and post.date != post.update %}
|
||||||
<svg class="fasvg"><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#pencil-alt"></use></svg> {{ gettext('Update') }}:
|
<svg class="fasvg" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title=""><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#pencil-alt"></use></svg> {{ gettext('Update') }}:
|
||||||
{{ post.update.strftime(ablog.post_date_format) }}
|
{{ post.update.strftime(ablog.post_date_format) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</dd></dl></li>
|
</dd></dl></li>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{% if post.prev and theme_ablog_prevnext %}
|
{% if post.prev and theme_ablog_prevnext %}
|
||||||
{{ gettext('Previous') }}:
|
{{ gettext('Previous') }}:
|
||||||
<a href="{{ pathto(post.prev.docname) }}{{ anchor(post.prev) }}">
|
<a href="{{ pathto(post.prev.docname) }}{{ anchor(post.prev) }}">
|
||||||
<svg class="fasvg"><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#arrow-circle-left"></use></svg>
|
<svg class="fasvg" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title=""><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#arrow-circle-left"></use></svg>
|
||||||
{{ post.prev.title }}
|
{{ post.prev.title }}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
{{ gettext('Next') }}:
|
{{ gettext('Next') }}:
|
||||||
<a href="{{ pathto(post.next.docname) }}{{ anchor(post.next) }}">
|
<a href="{{ pathto(post.next.docname) }}{{ anchor(post.next) }}">
|
||||||
{{ post.next.title }}
|
{{ post.next.title }}
|
||||||
<svg class="fasvg"><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#arrow-circle-right"></use></svg>
|
<svg class="fasvg" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title=""><use xlink:href="{{ pathto('_static/fa/solid.svg', 1) }}#arrow-circle-right"></use></svg>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
href="https://share.diasporafoundation.org/?title={{ title|urlencode }}&url={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
|
href="https://share.diasporafoundation.org/?title={{ title|urlencode }}&url={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
title="{{ gettext('Share on Diaspora') }}">
|
title="{{ gettext('Share on Diaspora') }}">
|
||||||
<svg class="icon" role="img">
|
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
|
||||||
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#diaspora">
|
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#diaspora">
|
||||||
</use>
|
</use>
|
||||||
</svg> Diaspora*</a>
|
</svg> Diaspora*</a>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
href="https://mastodon.kujiu.org/share?text={{ title|urlencode }}:%20{{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}{% if post %}{% for tag in post.tags %}%20%23{{ tag }}{% endfor %}{% endif %}{% if theme_mastodon_user %}%20{{ theme_mastodon_user }}{% endif %}"
|
href="https://mastodon.kujiu.org/share?text={{ title|urlencode }}:%20{{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}{% if post %}{% for tag in post.tags %}%20%23{{ tag }}{% endfor %}{% endif %}{% if theme_mastodon_user %}%20{{ theme_mastodon_user }}{% endif %}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
title="{{ gettext('Share on Mastodon') }}">
|
title="{{ gettext('Share on Mastodon') }}">
|
||||||
<svg class="icon" role="img">
|
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
|
||||||
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#mastodon">
|
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#mastodon">
|
||||||
</use>
|
</use>
|
||||||
</svg> Mastodon</a>
|
</svg> Mastodon</a>
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
href="https://twitter.com/intent/tweet?text={{ title|urlencode }}&url={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}&via={% if theme_twitter_user %}{{ theme_twitter_user }}{% endif %}{% if post and post.tags|length %}&hashtags={% for tag in post.tags %}{{ tag }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}"
|
href="https://twitter.com/intent/tweet?text={{ title|urlencode }}&url={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}&via={% if theme_twitter_user %}{{ theme_twitter_user }}{% endif %}{% if post and post.tags|length %}&hashtags={% for tag in post.tags %}{{ tag }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
title="{{ gettext('Share on Twitter') }}">
|
title="{{ gettext('Share on Twitter') }}">
|
||||||
<svg class="icon" role="img">
|
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
|
||||||
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#twitter">
|
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#twitter">
|
||||||
</use>
|
</use>
|
||||||
</svg> Twitter</a>
|
</svg> Twitter</a>
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
href="https://www.facebook.com/sharer/sharer.php?u={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
|
href="https://www.facebook.com/sharer/sharer.php?u={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
title="{{ gettext('Share on Facebook') }}">
|
title="{{ gettext('Share on Facebook') }}">
|
||||||
<svg class="icon" role="img">
|
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
|
||||||
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#facebook">
|
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#facebook">
|
||||||
</use>
|
</use>
|
||||||
</svg> Facebook</a>
|
</svg> Facebook</a>
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
href="https://www.linkedin.com/shareArticle?mini=true&url={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}&title={{ title|urlencode }}&source={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
|
href="https://www.linkedin.com/shareArticle?mini=true&url={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}&title={{ title|urlencode }}&source={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
title="{{ gettext('Share on LinkedIn') }}">
|
title="{{ gettext('Share on LinkedIn') }}">
|
||||||
<svg class="icon" role="img">
|
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
|
||||||
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#linkedin">
|
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#linkedin">
|
||||||
</use>
|
</use>
|
||||||
</svg> LinkedIn</a>
|
</svg> LinkedIn</a>
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
href="https://www.reddit.com/submit?url={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}&title={{ title|urlencode }}"
|
href="https://www.reddit.com/submit?url={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}&title={{ title|urlencode }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
title="{{ gettext('Share on Reddit') }}">
|
title="{{ gettext('Share on Reddit') }}">
|
||||||
<svg class="icon" role="img">
|
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
|
||||||
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#reddit">
|
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#reddit">
|
||||||
</use>
|
</use>
|
||||||
</svg> Reddit</a>
|
</svg> Reddit</a>
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
href="https://news.ycombinator.com/submitlink?t={{ title|urlencode }}&u={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
|
href="https://news.ycombinator.com/submitlink?t={{ title|urlencode }}&u={{ ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
title="{{ gettext('Share on HackerNews') }}">
|
title="{{ gettext('Share on HackerNews') }}">
|
||||||
<svg class="icon" role="img">
|
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
|
||||||
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#hacker-news">
|
<use xlink:href="{{ pathto('_static/fa/brands.svg', 1)}}#hacker-news">
|
||||||
</use>
|
</use>
|
||||||
</svg> HackerNews</a>
|
</svg> HackerNews</a>
|
||||||
|
@ -79,7 +79,7 @@
|
||||||
ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
|
ablog.page_url(pagename)|urlencode }}{% if not ablog.page_url(pagename) or ablog.page_url(pagename).endswith('/') %}index{% endif %}{{ file_suffix }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
title="{{ gettext('Share by email') }}">
|
title="{{ gettext('Share by email') }}">
|
||||||
<svg class="icon" role="img">
|
<svg class="icon" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
|
||||||
<use xlink:href="{{ pathto('_static/fa/solid.svg', 1)}}#mail-bulk">
|
<use xlink:href="{{ pathto('_static/fa/solid.svg', 1)}}#mail-bulk">
|
||||||
</use>
|
</use>
|
||||||
</svg> {{ gettext('Email') }}</a>
|
</svg> {{ gettext('Email') }}</a>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<li><a
|
<li><a
|
||||||
class="fasvglink {{ icon }}" href="{{ link }}"
|
class="fasvglink {{ icon }}" href="{{ link }}"
|
||||||
target="_blank">
|
target="_blank">
|
||||||
<svg>
|
<svg role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:title="">
|
||||||
<use xlink:href="{{ pathto('_static/fa/' + iconset + '.svg', 1)}}#{{ icon }}">
|
<use xlink:href="{{ pathto('_static/fa/' + iconset + '.svg', 1)}}#{{ icon }}">
|
||||||
</use>
|
</use>
|
||||||
</svg> {{ text }}</a>
|
</svg> {{ text }}</a>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
license_subtype=theme_license.subtype|e,
|
license_subtype=theme_license.subtype|e,
|
||||||
pathtocc=pathto('_static/fa/brands.svg', 1)|e %}
|
pathtocc=pathto('_static/fa/brands.svg', 1)|e %}
|
||||||
Licensed under Creative Commons
|
Licensed under Creative Commons
|
||||||
<svg aria-labelledby="cc_by_footer" class="fasvg" role="img">
|
<svg aria-labelledby="cc_by_footer" class="fasvg" role="img" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<title id="cc_by_footer">CC</title>
|
<title id="cc_by_footer">CC</title>
|
||||||
<use xlink:href="{{ pathtocc }}#creative-commons">
|
<use xlink:href="{{ pathtocc }}#creative-commons">
|
||||||
</use>
|
</use>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
{% if builder=='html' %}
|
{% if builder=='html' %}
|
||||||
<button class="sidebar-button">
|
<button class="sidebar-button">
|
||||||
<svg id="sidebar-button-svg" role="img" aria-labelledby="sidebar-button_label">
|
<svg id="sidebar-button-svg" role="img" aria-labelledby="sidebar-button_label" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
<title id="sidebar-button_label">
|
<title id="sidebar-button_label">
|
||||||
{{ gettext('Toggle sidebar') }}
|
{{ gettext('Toggle sidebar') }}
|
||||||
</title>
|
</title>
|
||||||
|
|
Loading…
Reference in a new issue