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
|
||||
=======
|
||||
|
||||
2.0.2 (*2020-07-31*)
|
||||
====================
|
||||
|
||||
- Better support for ePub builder
|
||||
|
||||
2.0.1 (*2020-07-08*)
|
||||
====================
|
||||
|
||||
|
|
2
setup.py
2
setup.py
|
@ -28,7 +28,7 @@ with open("README.rst", "r") as fh:
|
|||
|
||||
setup(
|
||||
name="sphinx_nervproject_theme",
|
||||
version="2.0.1",
|
||||
version="2.0.2",
|
||||
url="https://procrastinator.nerv-project.eu/nerv-project/sphinx_nervproject_theme",
|
||||
license="EUPL 1.2",
|
||||
author="Kujiu",
|
||||
|
|
|
@ -5,7 +5,7 @@ from sphinx.environment.collectors import EnvironmentCollector
|
|||
from sphinx import addnodes
|
||||
from sphinx.util.osutil import relative_uri
|
||||
|
||||
__version__ = (2, 0, 1)
|
||||
__version__ = (2, 0, 2)
|
||||
|
||||
|
||||
class SimpleTocTreeCollector(EnvironmentCollector):
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
<h1>
|
||||
{% 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 %}
|
||||
{{ header }}
|
||||
{% if collection.href %}
|
||||
|
@ -35,10 +35,10 @@
|
|||
|
||||
<ul class="ablog-archive">
|
||||
<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) }}
|
||||
{% 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) }}
|
||||
{% else %} Draft {% endif %}
|
||||
{% endif %}
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<dt>{{ gettext('Date') }}</dt>
|
||||
<dd>
|
||||
{% 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) }}
|
||||
{% 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) }}
|
||||
{% else %} {{ gettext('Draft') }} {% endif %}
|
||||
{% endif %}</dd>
|
||||
|
@ -14,7 +14,7 @@
|
|||
<dt>{{ gettext('Published') }}</dt>
|
||||
<dd>
|
||||
{% 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) }}
|
||||
{% endif %}
|
||||
</dd></dl></li>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{% if post.prev and theme_ablog_prevnext %}
|
||||
{{ gettext('Previous') }}:
|
||||
<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 }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
@ -17,7 +17,7 @@
|
|||
{{ gettext('Next') }}:
|
||||
<a href="{{ pathto(post.next.docname) }}{{ anchor(post.next) }}">
|
||||
{{ 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>
|
||||
{% endif %}
|
||||
</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 }}"
|
||||
target="_blank"
|
||||
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>
|
||||
</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 %}"
|
||||
target="_blank"
|
||||
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>
|
||||
</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 %}"
|
||||
target="_blank"
|
||||
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>
|
||||
</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 }}"
|
||||
target="_blank"
|
||||
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>
|
||||
</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 }}"
|
||||
target="_blank"
|
||||
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>
|
||||
</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 }}"
|
||||
target="_blank"
|
||||
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>
|
||||
</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 }}"
|
||||
target="_blank"
|
||||
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>
|
||||
</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 }}"
|
||||
target="_blank"
|
||||
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>
|
||||
</svg> {{ gettext('Email') }}</a>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<li><a
|
||||
class="fasvglink {{ icon }}" href="{{ link }}"
|
||||
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>
|
||||
</svg> {{ text }}</a>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
license_subtype=theme_license.subtype|e,
|
||||
pathtocc=pathto('_static/fa/brands.svg', 1)|e %}
|
||||
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>
|
||||
<use xlink:href="{{ pathtocc }}#creative-commons">
|
||||
</use>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
{% if builder=='html' %}
|
||||
<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">
|
||||
{{ gettext('Toggle sidebar') }}
|
||||
</title>
|
||||
|
|
Loading…
Reference in a new issue