Skip to content

Commit 9da950c

Browse files
committed
Merge branch 'main' into alias-system
2 parents b2c12c8 + 4371374 commit 9da950c

File tree

7 files changed

+35
-27
lines changed

7 files changed

+35
-27
lines changed

.github/workflows/ci_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
sphinx-copybutton
115115
sphinx-design
116116
sphinx-gallery
117-
sphinx_rtd_theme<3.0
117+
sphinx_rtd_theme
118118
cairosvg
119119
sphinxcontrib-svg2pdfconverter
120120
tectonic

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repos:
1616
- id: chmod
1717
args: ['644']
1818
- repo: https://github.com/woodruffw/zizmor-pre-commit
19-
rev: v1.5.1
19+
rev: v1.5.2
2020
hooks:
2121
- id: zizmor
2222

ci/requirements/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies:
3131
- sphinx-copybutton
3232
- sphinx-design
3333
- sphinx-gallery
34-
- sphinx_rtd_theme<3.0
34+
- sphinx_rtd_theme
3535
# Dev dependencies (building PDF documentation)
3636
# 'sphinxcontrib-svg2pdfconverter' is required since it's added to `extensions`.
3737
- sphinxcontrib-svg2pdfconverter

doc/_static/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ p {
5252
max-width: 1000px;
5353
}
5454

55+
/* Compatibility with sphinx_rtd_theme v3.x.x */
56+
/* https://github.com/TexasInstruments/processor-sdk-doc/commit/4fa6276ddcf7f9db919af2e5b3aec7e70a1afa16 */
57+
.wy-side-nav-search>div.version {
58+
margin-top: -.4045em;
59+
margin-bottom: .809em;
60+
font-weight: 400;
61+
color: hsla(0, 0%, 100%, .3);
62+
}
63+
5564
/* Format parameters section similar to sphinx_rtd_theme v4.x.x (not a grid) */
5665
html.writer-html5 .rst-content dl.field-list {
5766
display: initial;

doc/_templates/layout.html

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,25 @@
3131
{% endblock %}
3232

3333

34-
{% block sidebartitle %}
35-
<a href="{{ pathto(root_doc) }}"><h2 class="sidebar-title">{{ project }}</h2></a>
36-
37-
{% if theme_display_version %}
38-
{%- set nav_version = version %}
39-
{% if READTHEDOCS and current_version %}
40-
{%- set nav_version = current_version %}
41-
{% endif %}
42-
{% if nav_version %}
43-
<div class="version">
44-
{{ nav_version }}
45-
</div>
46-
{% endif %}
47-
{% endif %}
48-
49-
{% include "searchbox.html" %}
50-
51-
{% endblock %}
34+
{%- block sidebartitle %}
35+
{# the logo helper function was removed in Sphinx 6 and deprecated since Sphinx 4 #}
36+
{# the master_doc variable was renamed to root_doc in Sphinx 4 (master_doc still exists in later Sphinx versions) #}
37+
{%- set _logo_url = logo_url|default(pathto('_static/' + (logo or ""), 1)) %}
38+
{%- set _root_doc = root_doc|default(master_doc) %}
39+
<a href="{{ pathto(_root_doc) }}">
40+
{% if not theme_logo_only %}<h2 class="sidebar-title">{{ project }}</h2>{% endif %}
41+
{%- if logo or logo_url %}
42+
<img src="{{ _logo_url }}" class="logo" alt="{{ _('Logo') }}"/>
43+
{%- endif %}
44+
</a>
45+
{%- set nav_version = version %}
46+
{%- if nav_version %}
47+
<div class="version">
48+
{{ nav_version }}
49+
</div>
50+
{%- endif %}
51+
{%- include "searchbox.html" %}
52+
{% endblock %}
5253

5354

5455
{% block menu %}

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dependencies:
4343
- sphinx-copybutton
4444
- sphinx-design
4545
- sphinx-gallery>=0.19.0
46-
- sphinx_rtd_theme<3.0
46+
- sphinx_rtd_theme
4747
# Dev dependencies (building PDF documentation)
4848
- cairosvg
4949
- sphinxcontrib-svg2pdfconverter

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=64", "setuptools_scm[toml]>=6.2"]
2+
requires = ["setuptools>=77", "setuptools_scm[toml]>=6.2"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
@@ -8,6 +8,8 @@ description = "A Python interface for the Generic Mapping Tools"
88
readme = "README.md"
99
requires-python = ">=3.11"
1010
authors = [{name = "The PyGMT Developers", email = "[email protected]"}]
11+
license = "BSD-3-Clause"
12+
license-files = ["LICENSE.txt"]
1113
keywords = [
1214
"cartography",
1315
"geodesy",
@@ -31,7 +33,6 @@ classifiers = [
3133
"Programming Language :: Python :: 3.11",
3234
"Programming Language :: Python :: 3.12",
3335
"Programming Language :: Python :: 3.13",
34-
"License :: OSI Approved :: BSD License",
3536
]
3637
dependencies = [
3738
"numpy>=1.25",
@@ -58,9 +59,6 @@ all = [
5859
"Changelog" = "https://www.pygmt.org/latest/changes.html"
5960
"Issue Tracker" = "https://github.com/GenericMappingTools/pygmt/issues"
6061

61-
[tool.setuptools]
62-
license-files = ["LICENSE.txt"]
63-
6462
[tool.setuptools.packages.find]
6563
include = ["pygmt*"]
6664
exclude = ["doc"]

0 commit comments

Comments
 (0)