Skip to content

Commit 153108e

Browse files
Update figure shortcodes to new syntax (#283)
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
1 parent e6ba67d commit 153108e

File tree

8 files changed

+142
-121
lines changed

8 files changed

+142
-121
lines changed

.github/workflows/links.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
--exclude "https://doi\.org|www.sciencedirect\.com/*"
4141
--exclude https://plausible.io/pybamm.org
4242
--exclude https://ecsarxiv.org/67ckj/
43+
--exclude https://scholar.google.com/
4344
--exclude-path ./static/teams/contributors.html
4445
--exclude-path ./content/gsoc/
4546
--accept 200,429,999

assets/css/overrides.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ content-container class */
3535
text-decoration: none;
3636
}
3737

38-
/* Remove breadcrumbs background from navbar */
38+
/* More gaps for footer columns because of external link indicators */
39+
.footer-column {
40+
margin-right: 2em;
41+
}
3942

40-
nav[aria-label="Breadcrumb"] {
41-
background-color: unset;
43+
/* Don't set widths for 100% of the viewport for these, just the screen. */
44+
.news-container, .hero-container {
45+
width: 100%;
4246
}

config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,18 @@ params:
127127
title: ""
128128
links:
129129
- text: Install PyBaMM
130+
is_external: true
130131
link: https://docs.pybamm.org/en/stable/source/user_guide/installation/index.html
131132

132133
- text: Getting started
133134
link: /learn/
134135

135136
- text: Examples
137+
is_external: true
136138
link: https://github.com/pybamm-team/PyBaMM/tree/develop/examples/
137139

138140
- text: Documentation
141+
is_external: true
139142
link: https://docs.pybamm.org/
140143

141144
- text: Release notes
@@ -151,6 +154,7 @@ params:
151154
link: /contribute/
152155

153156
- text: Ionworks
157+
is_external: true
154158
link: https://ionworks.com/
155159

156160
- text: News
@@ -172,4 +176,4 @@ params:
172176
link: /governance/
173177

174178
- text: Roadmap
175-
link: https://github.com/pybamm-team/PyBaMM/wiki/Roadmap/
179+
link: /roadmap/

content/about/index.md

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -28,48 +28,48 @@ Ionworks provides support and custom feature development for PyBaMM, as well as
2828
For companies who want to leverage the power, flexibility, and openness of the Python ecosystem for their battery simulation needs, Ionworks is the go-to partner.
2929
[Contact Ionworks](https://ionworks.com/) to find out more.
3030

31-
{{< figure >}}
32-
src = '/images/logos/ionworks-logo.png'
33-
alt = 'Logo for Ionworks'
34-
width = 500
35-
attributionlink = ''
36-
{{< /figure >}}
31+
{{< figure
32+
src="/images/logos/ionworks-logo.png"
33+
alt="Logo for Ionworks"
34+
width=500
35+
attributionlink=""
36+
>}}
3737
3838
### The Oxford Research Software Engineering Group
3939

4040
[OxRSE](https://www.rse.ox.ac.uk/) is the central RSE team at the University of Oxford. They have been part of the PyBaMM core development team since its inception and provide on-going software development support,
4141
funded by the [Faraday Institution](https://faraday.ac.uk/). If you want to know more about OxRSE can support your research, please [get in touch](https://www.rse.ox.ac.uk/contact).
4242

43-
{{< figure >}}
44-
src = '/images/logos/2024_oxrse_rectangle.svg'
45-
alt = 'Logo for OxRSE'
46-
width = 500
47-
attributionlink = ''
48-
{{< /figure >}}
43+
{{< figure
44+
src="/images/logos/2024_oxrse_rectangle.svg"
45+
alt="Logo for OxRSE"
46+
width=500
47+
attributionlink=""
48+
>}}
4949
5050
### The Faraday Institution
5151

5252
The Faraday Institution supports many PyBaMM contributors, who contribute to the project as part of their official duties at universities across the UK.
5353

54-
{{< figure >}}
55-
src = '/images/logos/faraday-logo.png'
56-
alt = 'Logo for The Faraday Institution'
57-
width = 500
58-
attributionlink = ''
59-
caption = "Logo for The Faraday Institution"
60-
{{< /figure >}}
54+
{{< figure
55+
src="/images/logos/faraday-logo.png"
56+
alt="Logo for The Faraday Institution"
57+
width=500
58+
attributionlink=""
59+
caption="Logo for The Faraday Institution"
60+
>}}
6161
6262
### NumFOCUS
6363

6464
PyBaMM is a Sponsored Project of NumFOCUS, a 501(c)(3) nonprofit charity in the United States. The mission of NumFOCUS is to promote open practices in research, data, and scientific computing by serving as a fiscal sponsor for open source projects and organizing community-driven educational programs.
6565

66-
{{< figure >}}
67-
src = '/images/logos/NumFOCUS_sponsored_project_logo.svg'
68-
alt = 'NumFOCUS Logo'
69-
width = 500
70-
attributionlink = ''
71-
caption = "NumFOCUS Logo"
72-
{{< /figure >}}
66+
{{< figure
67+
src="/images/logos/NumFOCUS_sponsored_project_logo.svg"
68+
alt="NumFOCUS Logo"
69+
width=500
70+
attributionlink=""
71+
caption="NumFOCUS Logo"
72+
>}}
7373
7474
### Google Summer of Code
7575

@@ -81,61 +81,61 @@ We are grateful to the following organizations for supporting PyBaMM's developme
8181

8282
<div style="display:flex; justify-content:space-around; align-items:center; flex-wrap:wrap">
8383

84-
{{< figure >}}
85-
src = '/images/logos/university_of_oxford.svg'
86-
alt = 'Logo for the University of Oxford'
87-
width = 500
88-
attributionlink = ''
89-
{{< /figure >}}
90-
91-
{{< figure >}}
92-
src = '/images/logos/university_of_michigan.svg'
93-
alt = 'Logo for the University of Michigan'
94-
width = 500
95-
attributionlink = ''
96-
{{< /figure >}}
97-
98-
{{< figure >}}
99-
src = '/images/logos/carnegie_mellon_university.svg'
100-
alt = 'Logo for Carnegie Mellon University'
101-
width = 500
102-
attributionlink = ''
103-
{{< /figure >}}
104-
105-
{{< figure >}}
106-
src = '/images/logos/imperial_college_london.png'
107-
alt = 'Logo for Imperial College London'
108-
width = 500
109-
attributionlink = ''
110-
{{< /figure >}}
111-
112-
{{< figure >}}
113-
src = '/images/logos/university_of_warwick.png'
114-
alt = 'Logo for the University of Warwick'
115-
width = 500
116-
attributionlink = ''
117-
{{< /figure >}}
118-
119-
{{< figure >}}
120-
src = '/images/logos/university_college_london.svg'
121-
alt = 'Logo for University College London'
122-
width = 500
123-
attributionlink = ''
124-
{{< /figure >}}
125-
126-
{{< figure >}}
127-
src = '/images/logos/lilium.png'
128-
alt = 'Logo for Lilium GmbH'
129-
width = 500
130-
attributionlink = ''
131-
{{< /figure >}}
132-
133-
{{< figure >}}
134-
src = '/images/logos/sila.png'
135-
alt = 'Logo for Sila Nanotechnologies'
136-
width = 500
137-
attributionlink = ''
138-
{{< /figure >}}
84+
{{< figure
85+
src="/images/logos/university_of_oxford.svg"
86+
alt="Logo for the University of Oxford"
87+
width=500
88+
attributionlink=""
89+
>}}
90+
91+
{{< figure
92+
src="/images/logos/university_of_michigan.svg"
93+
alt="Logo for the University of Michigan"
94+
width=500
95+
attributionlink=""
96+
>}}
97+
98+
{{< figure
99+
src="/images/logos/carnegie_mellon_university.svg"
100+
alt="Logo for Carnegie Mellon University"
101+
width=500
102+
attributionlink=""
103+
>}}
104+
105+
{{< figure
106+
src="/images/logos/imperial_college_london.png"
107+
alt="Logo for Imperial College London"
108+
width=500
109+
attributionlink=""
110+
>}}
111+
112+
{{< figure
113+
src="/images/logos/university_of_warwick.png"
114+
alt="Logo for the University of Warwick"
115+
width=500
116+
attributionlink=""
117+
>}}
118+
119+
{{< figure
120+
src="/images/logos/university_college_london.svg"
121+
alt="Logo for University College London"
122+
width=500
123+
attributionlink=""
124+
>}}
125+
126+
{{< figure
127+
src="/images/logos/lilium.png"
128+
alt="Logo for Lilium GmbH"
129+
width=500
130+
attributionlink=""
131+
>}}
132+
133+
{{< figure
134+
src="/images/logos/sila.png"
135+
alt="Logo for Sila Nanotechnologies"
136+
width=500
137+
attributionlink=""
138+
>}}
139139
140140
</div>
141141

content/news/2024/05/31/pybamm-24.5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ model = pybamm.lithium_ion.DFN(
108108
)
109109
```
110110

111-
Note that additional parameter values might be required for the model to run. For more details, please see the [corresponding notebook](https://docs.pybamm.org/en/latest/source/examples/notebooks/models/differential-capacity-hysteresis-state.html).
111+
Note that additional parameter values might be required for the model to run. For more details, please see the [corresponding notebook](https://docs.pybamm.org/en/latest/source/examples/notebooks/models/hysteresis-state-models.html).
112112

113113
## Lithium plating for composite electrodes
114114
_Implemented by [Simon O'Kane](https://github.com/DrSOKane)_

content/news/2025/04/02/pybamm-25.4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pybamm.lithium_ion.DFN(
3939
)
4040
```
4141

42-
For more information on this and the other hysteresis models available in PyBaMM, see [the hysteresis notebook](https://docs.pybamm.org/en/stable/source/examples/notebooks/models/differential-capacity-hysteresis-state.html).
42+
For more information on this and the other hysteresis models available in PyBaMM, see [the hysteresis notebook](https://docs.pybamm.org/en/latest/source/examples/notebooks/models/hysteresis-state-models.html).
4343

4444
## Experiments compatible with input parameters
4545
_Implemented by [Rishab Kumar Jha](https://github.com/Rishab87)_

content/publications.md

Lines changed: 45 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ The following papers have contributed directly to the development of PyBaMM.
1818

1919

2020
{{< grid columns="1 2 2 3" >}}
21+
2122
[[item]]
2223
type = 'card'
2324
title = 'Marquis, S. G., Sulzer, V., Timms, R., Please, C. P., & Chapman, S. J. (2019).'
@@ -27,14 +28,16 @@ body = '''
2728
'''
2829
footer = '''
2930
<div class="custom-flex-btns">
30-
{{< button dark >}}
31-
label: Preprint
32-
link: https://arxiv.org/abs/1905.12553
33-
{{< /button >}}
34-
{{< button light >}}
35-
label: DOI
36-
link: https://doi.org/10.1149/2.0341915jes
37-
{{< /button >}}
31+
{{< button
32+
style="dark"
33+
label="Preprint"
34+
link="https://arxiv.org/abs/1905.12553"
35+
>}}
36+
{{< button
37+
style="light"
38+
label="DOI"
39+
link="https://doi.org/10.1149/2.0341915jes"
40+
>}}
3841
</div>
3942
'''
4043

@@ -49,10 +52,11 @@ Development of Experimental Techniques for Parameterization of Multi-scale Lithi
4952
footer = '''
5053
<div class="custom-flex-btns">
5154

52-
{{< button light >}}
53-
label: DOI
54-
link: https://doi.org/10.1149/1945-7111/ab9050
55-
{{< /button >}}
55+
{{< button
56+
style="light"
57+
label="DOI"
58+
link="https://doi.org/10.1149/1945-7111/ab9050"
59+
>}}
5660
</div>
5761
'''
5862

@@ -68,10 +72,11 @@ body = '''
6872
footer = '''
6973
<div class="custom-flex-btns">
7074

71-
{{< button light >}}
72-
label: DOI
73-
link: https://doi.org/10.1149/1945-7111/aba44b
74-
{{< /button >}}
75+
{{< button
76+
style="light"
77+
label="DOI"
78+
link="https://doi.org/10.1149/1945-7111/aba44b"
79+
>}}
7580
</div>
7681
'''
7782

@@ -84,14 +89,18 @@ body = '''
8489
'''
8590
footer = '''
8691
<div class="custom-flex-btns">
87-
{{< button dark >}}
88-
label: Preprint
89-
link: https://arxiv.org/abs/2005.05127
90-
{{< /button >}}
91-
{{< button light >}}
92-
label: Code
93-
link: https://github.com/rtimms/asymptotic-pouch-cell
94-
{{< /button >}}
92+
{{< button
93+
style="dark"
94+
label="Preprint"
95+
link="https://arxiv.org/abs/2005.05127"
96+
>}}
97+
98+
{{< button
99+
style="light"
100+
label="Code"
101+
link="https://github.com/rtimms/asymptotic-pouch-cell"
102+
>}}
103+
95104
</div>
96105
'''
97106

@@ -105,18 +114,21 @@ body = '''
105114
'''
106115
footer = '''
107116
<div class="custom-flex-btns">
108-
{{< button dark >}}
109-
label: Preprint
110-
link: https://arxiv.org/abs/2008.03691
111-
{{< /button >}}
112-
{{< button light >}}
113-
label: DOI
114-
link: https://doi.org/10.1149/1945-7111/abbce4
115-
{{< /button >}}
117+
{{< button
118+
style="dark"
119+
label="Preprint"
120+
link="https://arxiv.org/abs/2008.03691"
121+
>}}
122+
123+
{{< button
124+
style="light"
125+
label="DOI"
126+
link="https://doi.org/10.1149/1945-7111/abbce4"
127+
>}}
116128
</div>
117129
'''
118-
{{< /grid >}}
119130

131+
{{< /grid >}}
120132

121133

122134
## Citations

0 commit comments

Comments
 (0)