MartinPdeS-docs 0.2.5__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Martin Poinsinet de Sivry-Houle
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,14 +1,17 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MartinPdeS-docs
3
- Version: 0.2.5
3
+ Version: 0.3.0
4
4
  Summary: Shared Sphinx configuration for MartinPdeS scientific Python packages.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
7
+ License-File: LICENSE
7
8
  Requires-Dist: sphinx>=7
8
9
  Requires-Dist: pydata-sphinx-theme>=0.15
9
10
  Requires-Dist: sphinx-design>=0.6
10
11
  Requires-Dist: sphinx-gallery>=0.16
12
+ Requires-Dist: numpydoc<2,>=1.8
11
13
  Requires-Dist: pytest>=7
14
+ Dynamic: license-file
12
15
 
13
16
  # MartinPdeS-docs
14
17
 
@@ -1,3 +1,4 @@
1
+ LICENSE
1
2
  README.md
2
3
  pyproject.toml
3
4
  MartinPdeS_docs.egg-info/PKG-INFO
@@ -2,4 +2,5 @@ sphinx>=7
2
2
  pydata-sphinx-theme>=0.15
3
3
  sphinx-design>=0.6
4
4
  sphinx-gallery>=0.16
5
+ numpydoc<2,>=1.8
5
6
  pytest>=7
@@ -1,14 +1,17 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: MartinPdeS-docs
3
- Version: 0.2.5
3
+ Version: 0.3.0
4
4
  Summary: Shared Sphinx configuration for MartinPdeS scientific Python packages.
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
7
+ License-File: LICENSE
7
8
  Requires-Dist: sphinx>=7
8
9
  Requires-Dist: pydata-sphinx-theme>=0.15
9
10
  Requires-Dist: sphinx-design>=0.6
10
11
  Requires-Dist: sphinx-gallery>=0.16
12
+ Requires-Dist: numpydoc<2,>=1.8
11
13
  Requires-Dist: pytest>=7
14
+ Dynamic: license-file
12
15
 
13
16
  # MartinPdeS-docs
14
17
 
@@ -112,14 +112,14 @@ def configure(
112
112
  options = {
113
113
  "logo": {"text": project if logo_text is None else logo_text, "image": logo},
114
114
  "navigation_with_keys": True,
115
- "show_nav_level": 2,
115
+ "show_nav_level": 1,
116
116
  "navbar_align": "content",
117
117
  "show_toc_level": 2,
118
- "navbar_end": ["version-switcher", "navbar-icon-links"],
119
- "show_prev_next": False,
118
+ "navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
119
+ "show_prev_next": True,
120
120
  "show_version_warning_banner": True,
121
121
  "footer_start": ["copyright"],
122
- "footer_end": ["sphinx-version", "theme-version"],
122
+ "footer_end": [],
123
123
  "pygments_light_style": "default",
124
124
  "pygments_dark_style": "github-dark",
125
125
  "use_edit_page_button": bool(repository),
@@ -172,9 +172,9 @@ def configure(
172
172
  default_extensions = [
173
173
  "sphinx.ext.autodoc",
174
174
  "sphinx.ext.autosummary",
175
- "sphinx.ext.intersphinx",
176
175
  "sphinx.ext.mathjax",
177
176
  "sphinx.ext.napoleon",
177
+ "numpydoc",
178
178
  "sphinx.ext.autosectionlabel",
179
179
  "sphinx.ext.viewcode",
180
180
  "sphinx.ext.todo",
@@ -251,6 +251,8 @@ def configure(
251
251
  "autodoc_default_options": autodoc_options,
252
252
  "napoleon_google_docstring": False,
253
253
  "napoleon_numpy_docstring": True,
254
+ "napoleon_use_ivar": True,
255
+ "show_authors": True,
254
256
  "autosectionlabel_prefix_document": True,
255
257
  "numpydoc_show_class_members": False,
256
258
  "add_module_names": False,
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "MartinPdeS-docs"
7
- version = "0.2.5"
7
+ version = "0.3.0"
8
8
  description = "Shared Sphinx configuration for MartinPdeS scientific Python packages."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -13,6 +13,7 @@ dependencies = [
13
13
  "pydata-sphinx-theme>=0.15",
14
14
  "sphinx-design>=0.6",
15
15
  "sphinx-gallery>=0.16",
16
+ "numpydoc>=1.8,<2",
16
17
  "pytest>=7",
17
18
  ]
18
19
 
@@ -63,6 +63,9 @@ def test_custom_extensions_and_theme_options_are_preserved():
63
63
  )
64
64
 
65
65
  assert config["extensions"] == ["custom.extension"]
66
+
67
+ defaults = configure(project="Example", package="example")
68
+ assert "numpydoc" in defaults["extensions"]
66
69
  assert config["html_theme_options"]["announcement"] == "Hello"
67
70
 
68
71
  additions = configure(