Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3236aee

Browse files
tacaswellQuLogic
authored andcommitted
DOC: re-run with updated svg paths
1 parent af3c428 commit 3236aee

32 files changed

+36
-34
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

doc/citing.rst

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,94 +40,95 @@ By version
4040
4141
4242
v3.2.1
43-
.. image:: _static/3714460.svg
43+
.. image:: _static/zenodo_cache/3714460.svg
4444
:target: https://doi.org/10.5281/zenodo.3714460
4545
v3.2.0
46-
.. image:: _static/3695547.svg
46+
.. image:: _static/zenodo_cache/3695547.svg
4747
:target: https://doi.org/10.5281/zenodo.3695547
4848
v3.1.3
49-
.. image:: _static/3633844.svg
49+
.. image:: _static/zenodo_cache/3633844.svg
5050
:target: https://doi.org/10.5281/zenodo.3633844
5151
v3.1.2
52-
.. image:: _static/3563226.svg
52+
.. image:: _static/zenodo_cache/3563226.svg
5353
:target: https://doi.org/10.5281/zenodo.3563226
5454
v3.1.1
55-
.. image:: _static/3264781.svg
55+
.. image:: _static/zenodo_cache/3264781.svg
5656
:target: https://doi.org/10.5281/zenodo.3264781
5757
v3.1.0
58-
.. image:: _static/2893252.svg
58+
.. image:: _static/zenodo_cache/2893252.svg
5959
:target: https://doi.org/10.5281/zenodo.2893252
6060
v3.0.3
61-
.. image:: _static/2577644.svg
61+
.. image:: _static/zenodo_cache/2577644.svg
6262
:target: https://doi.org/10.5281/zenodo.2577644
6363
v3.0.2
64-
.. image:: _static/1482099.svg
64+
.. image:: _static/zenodo_cache/1482099.svg
6565
:target: https://doi.org/10.5281/zenodo.1482099
6666
v3.0.1
67-
.. image:: _static/1482098.svg
67+
.. image:: _static/zenodo_cache/1482098.svg
6868
:target: https://doi.org/10.5281/zenodo.1482098
6969
v2.2.5
70-
.. image:: _static/3633833.svg
70+
.. image:: _static/zenodo_cache/3633833.svg
7171
:target: https://doi.org/10.5281/zenodo.3633833
7272
v3.0.0
73-
.. image:: _static/1420605.svg
73+
.. image:: _static/zenodo_cache/1420605.svg
7474
:target: https://doi.org/10.5281/zenodo.1420605
7575
v2.2.4
76-
.. image:: _static/2669103.svg
76+
.. image:: _static/zenodo_cache/2669103.svg
7777
:target: https://doi.org/10.5281/zenodo.2669103
7878
v2.2.3
79-
.. image:: _static/1343133.svg
79+
.. image:: _static/zenodo_cache/1343133.svg
8080
:target: https://doi.org/10.5281/zenodo.1343133
8181
v2.2.2
82-
.. image:: _static/1202077.svg
82+
.. image:: _static/zenodo_cache/1202077.svg
8383
:target: https://doi.org/10.5281/zenodo.1202077
8484
v2.2.1
85-
.. image:: _static/1202050.svg
85+
.. image:: _static/zenodo_cache/1202050.svg
8686
:target: https://doi.org/10.5281/zenodo.1202050
8787
v2.2.0
88-
.. image:: _static/1189358.svg
88+
.. image:: _static/zenodo_cache/1189358.svg
8989
:target: https://doi.org/10.5281/zenodo.1189358
9090
v2.1.2
91-
.. image:: _static/1154287.svg
91+
.. image:: _static/zenodo_cache/1154287.svg
9292
:target: https://doi.org/10.5281/zenodo.1154287
9393
v2.1.1
94-
.. image:: _static/1098480.svg
94+
.. image:: _static/zenodo_cache/1098480.svg
9595
:target: https://doi.org/10.5281/zenodo.1098480
9696
v2.1.0
97-
.. image:: _static/1004650.svg
97+
.. image:: _static/zenodo_cache/1004650.svg
9898
:target: https://doi.org/10.5281/zenodo.1004650
9999
v2.0.2
100-
.. image:: _static/573577.svg
100+
.. image:: _static/zenodo_cache/573577.svg
101101
:target: https://doi.org/10.5281/zenodo.573577
102102
v2.0.1
103-
.. image:: _static/570311.svg
103+
.. image:: _static/zenodo_cache/570311.svg
104104
:target: https://doi.org/10.5281/zenodo.570311
105105
v2.0.0
106-
.. image:: _static/248351.svg
106+
.. image:: _static/zenodo_cache/248351.svg
107107
:target: https://doi.org/10.5281/zenodo.248351
108108
v1.5.3
109-
.. image:: _static/61948.svg
109+
.. image:: _static/zenodo_cache/61948.svg
110110
:target: https://doi.org/10.5281/zenodo.61948
111111
v1.5.2
112-
.. image:: _static/56926.svg
112+
.. image:: _static/zenodo_cache/56926.svg
113113
:target: https://doi.org/10.5281/zenodo.56926
114114
v1.5.1
115-
.. image:: _static/44579.svg
115+
.. image:: _static/zenodo_cache/44579.svg
116116
:target: https://doi.org/10.5281/zenodo.44579
117117
v1.5.0
118-
.. image:: _static/32914.svg
118+
.. image:: _static/zenodo_cache/32914.svg
119119
:target: https://doi.org/10.5281/zenodo.32914
120120
v1.4.3
121-
.. image:: _static/15423.svg
121+
.. image:: _static/zenodo_cache/15423.svg
122122
:target: https://doi.org/10.5281/zenodo.15423
123123
v1.4.2
124-
.. image:: _static/12400.svg
124+
.. image:: _static/zenodo_cache/12400.svg
125125
:target: https://doi.org/10.5281/zenodo.12400
126126
v1.4.1
127-
.. image:: _static/12287.svg
127+
.. image:: _static/zenodo_cache/12287.svg
128128
:target: https://doi.org/10.5281/zenodo.12287
129129
v1.4.0
130-
.. image:: _static/11451.svg
130+
.. image:: _static/zenodo_cache/11451.svg
131131
:target: https://doi.org/10.5281/zenodo.11451
132132

133133
.. END OF AUTOGENERATED
134+

tools/cache_zenodo_svg.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _get_xdg_cache_dir():
9696
doc_dir = Path(__file__).parent.parent.absolute() / "doc"
9797
target_dir = doc_dir / "_static/zenodo_cache"
9898
citing = doc_dir / "citing.rst"
99-
99+
target_dir.mkdir(exist_ok=True, parents=True)
100100
header = []
101101
footer = []
102102
with open(citing, "r") as fin:
@@ -118,13 +118,14 @@ def _get_xdg_cache_dir():
118118
if not svg_path.exists():
119119
url = f"https://zenodo.org/badge/doi/10.5281/zenodo.{doi}.svg"
120120
payload = download_or_cache(url, f"{doi}.svg")
121-
with open(svg_path, "xb") as fout:
122-
fout.write(payload.read())
121+
with open(svg_path, "xb") as svgout:
122+
svgout.write(payload.read())
123123
fout.write(
124124
f"""
125125
{version}
126-
.. image:: _static/{doi}.svg
126+
.. image:: _static/zenodo_cache/{doi}.svg
127127
:target: https://doi.org/10.5281/zenodo.{doi}"""
128128
)
129129
fout.write("\n\n")
130130
fout.write("\n".join(footer))
131+
fout.write('\n')

0 commit comments

Comments
 (0)