Skip to content

Commit 2b1faab

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents ecbca86 + e1704a2 commit 2b1faab

27 files changed

+1931
-2542
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
*.DS_Store
55

66
_build
7+
build
78
jupyter_execute
89
_thumbnails
10+
examples/gallery.rst

.readthedocs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ version: 2
33
sphinx:
44
configuration: examples/conf.py
55

6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3.10"
10+
611
python:
7-
version: "3.8"
812
install:
913
- requirements: requirements-docs.txt

_templates/nb-badges.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
{% if pagename in ablog %}
2+
13
<!-- Generate correct links and render github/binder/colab badges -->
24
{% set gh_basepath = github_user + '/' + github_repo + '/blob/' + github_version + '/' %}
35
{% set encoded_base = github_user + '%252F' + github_repo %}
46
{% set gh_binder = github_user + '/' + github_repo + '/' + github_version %}
57
{% set doc_path_aux = doc_path | trim('/') %}
6-
{% set file_path = doc_path_aux + '/' + pagename + page_source_suffix %}
8+
{% set file_path = doc_path_aux + '/' + pagename + ".ipynb" %}
79
{% set encoded_path = file_path | replace("/", "%252F") %}
810

911

@@ -19,3 +21,4 @@
1921
<img src="{{ pathto('_static/colab.svg', 1) }}" alt="Open In Colab"/></a>
2022
</p>
2123
</div>
24+
{% endif %}

_templates/page.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

_templates/rendered_citation.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- continuation of examples/page_footer.md -->
2+
{% if pagename in ablog %}
3+
{% set post = ablog[pagename] %}
4+
{% for coll in post.author %}
5+
{% if coll|length %}
6+
{{ coll }}
7+
{% if loop.index < post.author | length %},{% endif %}
8+
{% else %}
9+
{{ coll }}
10+
{% if loop.index < post.author | length %},{% endif %}
11+
{% endif %}
12+
{% endfor %}. "{{ title.split(' — ')[0] }}". In: <i>PyMC Examples</i>. Ed. by PyMC Team. DOI: <a href={{ doi_url }}>{{ doi_code }}</a>
13+
{% endif %}
349 KB
Loading
102 KB
Loading
15.1 KB
Loading
82.6 KB
Loading
102 KB
Loading

0 commit comments

Comments
 (0)