Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [
]
dynamic = ["version", "description"]
dependencies = [
"pydata-sphinx-theme>=0.15.0,<0.16",
"pydata-sphinx-theme>=0.16.0,<0.17",
"sphinx>=5",
]

Expand Down
2 changes: 1 addition & 1 deletion src/labs_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""A thin sphinx theme to customize pydata-sphinx-theme consistently across PyMC-Labs projects."""

__version__ = "0.15.0"
__version__ = "0.16.0"

from pathlib import Path

Expand Down
2 changes: 1 addition & 1 deletion src/labs_sphinx_theme/components/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% else %}
<div class="tocsection supportbutton">
{% endif %}
<a href="mailto:info@pymc-labs.com">
<a href="https://www.pymc-labs.com/contact">
<i class="fa fa-file-signature"></i> {{ _("Consulting and training") }}
</a>
</div>
2 changes: 1 addition & 1 deletion src/labs_sphinx_theme/components/edit-this-page.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if sourcename is defined and page_source_suffix and "generated" not in sourcename %}
{% set src = sourcename.split('.') %}
<div class="tocsection editthispage">
<a href="{{ get_edit_provider_and_url()[1] }}">
<a href="{{ get_edit_provider_and_url()[1].replace("/edit/main/", "/blob/main/") }}">
<i class="fa-solid fa-pencil"></i>
{% set provider = get_edit_provider_and_url()[0] %}
{% block edit_this_page_text %}
Expand Down
8 changes: 4 additions & 4 deletions src/labs_sphinx_theme/components/footer-links.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<ul>

<li class="nav-item">
<a class="nav-link" href="https://twitter.com/pymc_labs">
<i class="fa-brands fa-twitter" aria-hidden="true"></i>
<span>Twitter</span>
<a class="nav-link" href="https://x.com/pymc_labs">
<i class="fa-brands fa-x-twitter" aria-hidden="true"></i>
<span>X</span>
</a>
</li>

Expand Down Expand Up @@ -36,7 +36,7 @@
</li>

<li class="nav-item">
<a class="nav-link" href="mailto:info@pymc-labs.com">
<a class="nav-link" href="https://www.pymc-labs.com/contact">
<i class="fa fa-file-signature"></i>
<span>{{ _("Contact") }}</span>
</a>
Expand Down
11 changes: 11 additions & 0 deletions src/labs_sphinx_theme/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{%- extends "pydata_sphinx_theme/layout.html" %}
{%- block extrahead %}
{{ super() }}
<link rel="canonical" href="{{ baseurl }}/{{ language }}/stable/{{ pagename }}.html">
{%- if translations %}
{% set file_path = pagename + '.html' %}
{%- for lang in translations %}
<link rel="alternate" hreflang="{{ lang }}" href="{{ baseurl }}/{{ lang }}/{{ rtd_version }}/{{ file_path }}" />
{%- endfor %}
{% endif %}
{%- endblock extrahead %}
1 change: 0 additions & 1 deletion src/labs_sphinx_theme/theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ secondary_sidebar_items = [
"page-toc.html",
"searchbox.html",
"edit-this-page.html",
"sourcelink.html",
"contact.html"
]
search_bar_text = "Search..."
Expand Down