Skip to content

Commit 4053fbb

Browse files
authored
v1.8.1 (#307)
Replace sphinx-panels by sphinx-design.
1 parent 8bd81c4 commit 4053fbb

File tree

11 files changed

+226
-178
lines changed

11 files changed

+226
-178
lines changed

CHANGELOG.rst

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ Changelog
66
""""""""""
77

88

9-
*latest*
10-
--------
9+
v1.8.1 : Bugfix ellipse
10+
-----------------------
11+
12+
**2022-10-15**
1113

1214

1315
- Small improvements to the ellipse-function (and the CLI):
@@ -16,6 +18,12 @@ Changelog
1618
- A radius of 0.0 provided through the CLI is now respected (was before
1719
overwritten).
1820

21+
- ``empymod`` is more verbose when using ``layered`` computations.
22+
23+
- Maintenance:
24+
25+
- Replace deprecated ``sphinx-panels`` with ``sphinx-design``.
26+
1927

2028
v1.8.0 : Layered modelling
2129
--------------------------

docs/_static/style.css

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77

88
/* Button colours */
99

10-
.btn-info {
10+
.sd-btn-info {
1111
font-weight: bold;
12-
background: #447fc1;
13-
border-color: #447fc1;
12+
background: #447fc1 !important;
13+
border-color: #447fc1 !important;
1414
}
1515

16-
.btn-info:hover {
17-
background: #ef413d;
18-
border-color: #ef413d;
16+
.sd-btn-info:hover {
17+
background: #ef413d !important;
18+
border-color: #ef413d !important;
1919
}
2020

2121
/* Card headers */
22-
.card-header {
22+
.sd-card-header {
2323
font-size: var(--pst-font-size-h5);
2424
font-weight: bold;
2525
padding: 1rem 2rem;

docs/api/index.rst

+15-19
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,29 @@ API reference
2929
utils
3030

3131

32-
.. panels::
33-
:container: container-lg pb-1
34-
:column: col-lg-12 p-2
32+
.. grid:: 1
33+
:gutter: 2
3534

36-
Grid: :class:`emg3d.meshes.TensorMesh`
35+
.. grid-item-card::
3736

38-
---
39-
:column: col-lg-12 p-2
37+
Grid: :class:`emg3d.meshes.TensorMesh`
4038

41-
Model: :class:`emg3d.models.Model`
39+
.. grid-item-card::
4240

43-
---
44-
:column: col-lg-12 p-2
41+
Model: :class:`emg3d.models.Model`
4542

46-
Survey: :class:`emg3d.surveys.Survey`
43+
.. grid-item-card::
4744

48-
---
49-
:column: col-lg-12 p-2
45+
Survey: :class:`emg3d.surveys.Survey`
5046

51-
Simulation: :class:`emg3d.simulations.Simulation`
47+
.. grid-item-card::
5248

53-
---
54-
:column: col-lg-12 p-2
49+
Simulation: :class:`emg3d.simulations.Simulation`
5550

56-
Solver: :func:`emg3d.solver.solve`
51+
.. grid-item-card::
5752

58-
---
59-
:column: col-lg-12 p-2
53+
Solver: :func:`emg3d.solver.solve`
6054

61-
All sources and receivers are in :mod:`emg3d.electrodes`
55+
.. grid-item-card::
56+
57+
All sources and receivers are in :mod:`emg3d.electrodes`

docs/conf.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
extensions = [
88
# 'sphinx.ext.autodoc',
99
'numpydoc',
10-
'sphinx_panels',
10+
'sphinx_design',
1111
'sphinx.ext.intersphinx',
1212
# 'sphinx.ext.autosummary',
1313
'sphinx.ext.mathjax',
@@ -19,7 +19,6 @@
1919
'IPython.sphinxext.ipython_console_highlighting',
2020
'IPython.sphinxext.ipython_directive',
2121
]
22-
panels_add_bootstrap_css = False
2322
autosummary_generate = True
2423
add_module_names = True
2524
add_function_parentheses = False

docs/dev/index.rst

+39-25
Original file line numberDiff line numberDiff line change
@@ -18,39 +18,53 @@ Development
1818
maintenance
1919
release
2020

21-
.. panels::
22-
:container: container-lg pb-2 text-center
21+
.. grid:: 1 2 2 2
22+
:gutter: 2
2323

24-
:fa:`code,fa-4x`
24+
.. grid-item-card::
25+
:text-align: center
2526

26-
.. link-button:: contributing
27-
:type: ref
28-
:text: Contributing
29-
:classes: btn-link stretched-link font-weight-bold
27+
:fa:`code;fa-4x`
3028

31-
---
29+
.. button-ref:: contributing
30+
:expand:
31+
:color: info
32+
:click-parent:
3233

33-
:fa:`fas fa-hourglass-half,fa-4x`
34+
Contributing
3435

35-
.. link-button:: tests
36-
:type: ref
37-
:text: Tests & Benchmarks
38-
:classes: btn-link stretched-link font-weight-bold
36+
.. grid-item-card::
37+
:text-align: center
3938

40-
---
39+
:fa:`fas fa-hourglass-half;fa-4x`
4140

42-
:fa:`cogs,fa-4x`
41+
.. button-ref:: tests
42+
:expand:
43+
:color: info
44+
:click-parent:
4345

44-
.. link-button:: maintenance
45-
:type: ref
46-
:text: Maintenance
47-
:classes: btn-link stretched-link font-weight-bold
46+
Tests & Benchmarks
4847

49-
---
48+
.. grid-item-card::
49+
:text-align: center
5050

51-
:fa:`rocket,fa-4x`
51+
:fa:`cogs;fa-4x`
5252

53-
.. link-button:: release
54-
:type: ref
55-
:text: Making a release
56-
:classes: btn-link stretched-link font-weight-bold
53+
.. button-ref:: maintenance
54+
:expand:
55+
:color: info
56+
:click-parent:
57+
58+
Maintenance
59+
60+
.. grid-item-card::
61+
:text-align: center
62+
63+
:fa:`rocket;fa-4x`
64+
65+
.. button-ref:: release
66+
:expand:
67+
:color: info
68+
:click-parent:
69+
70+
Making a release

docs/dev/maintenance.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ To check the environment in which the documentation was built.
6666
In [1]: import emg3d
6767
...: emg3d.Report(
6868
...: ['sphinx', 'numpydoc', 'ipykernel', 'sphinx_numfig',
69-
...: 'sphinx_panels', 'sphinx_automodapi', 'pydata_sphinx_theme']
69+
...: 'sphinx_design', 'sphinx_automodapi', 'pydata_sphinx_theme']
7070
...: )

0 commit comments

Comments
 (0)