File tree 4 files changed +19
-15
lines changed
4 files changed +19
-15
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,16 @@ jobs:
15
15
steps :
16
16
- uses : actions/checkout@v2
17
17
- name : Set up Python
18
- uses : actions/setup-python@v2
18
+ uses : actions/setup-python@v4
19
19
with :
20
- python-version : 3.7
20
+ python-version : " 3.10 "
21
21
- name : Install build dependencies
22
22
run : python -m pip install build
23
23
- name : Build package
24
24
run : python -m build
25
25
- name : Publish to PyPI
26
- uses : pypa/gh-action-pypi-publish@release/v1.4
26
+ uses : pypa/gh-action-pypi-publish@release/v1
27
27
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
28
28
with :
29
29
user : __token__
30
30
password : ${{ secrets.PYPI_API_TOKEN }}
31
- - name : Create GitHub release
32
- uses : softprops/action-gh-release@v1
33
- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
Original file line number Diff line number Diff line change @@ -24,9 +24,8 @@ classifiers = [
24
24
]
25
25
dynamic = [" version" , " description" ]
26
26
dependencies = [
27
- " pydata-sphinx-theme>=0.12.0,<0.13" ,
28
- " sphinx>=4,<6" ,
29
- " docutils==0.17.1" ,
27
+ " pydata-sphinx-theme>=0.13.0,<0.14" ,
28
+ " sphinx>=5,<7" ,
30
29
]
31
30
32
31
[tool .flit .module ]
Original file line number Diff line number Diff line change 1
1
"""A thin sphinx theme to customize pydata-sphinx-theme consistently cross PyMC websites."""
2
2
3
- __version__ = "0.1 "
3
+ __version__ = "0.13.0 "
4
4
5
5
from pathlib import Path
6
6
Original file line number Diff line number Diff line change 1
1
{% if sourcename is defined and page_source_suffix and "generated" not in sourcename %}
2
- {% set src = sourcename.split('.') %}
3
- < div class ="tocsection editthispage ">
4
- < a href ="{{ get_edit_url() }} ">
5
- < i class ="fas fa-pencil-alt "> </ i > {{ _("Edit this page") }}
2
+ {% set src = sourcename.split('.') %}
3
+ < div class ="tocsection editthispage ">
4
+ < a href ="{{ get_edit_provider_and_url()[1] }} ">
5
+ < i class ="fa-solid fa-pencil "> </ i >
6
+ {% set provider = get_edit_provider_and_url()[0] %}
7
+ {% block edit_this_page_text %}
8
+ {% if provider %}
9
+ {% trans provider=provider %}Edit on {{ provider }}{% endtrans %}
10
+ {% else %}
11
+ {% trans %}Edit{% endtrans %}
12
+ {% endif %}
13
+ {% endblock %}
6
14
</ a >
7
- </ div >
15
+ </ div >
8
16
{% endif %}
You can’t perform that action at this time.
0 commit comments