Skip to content

Update figure shortcodes to new syntax#283

Merged
agriyakhetarpal merged 10 commits intopybamm-team:mainfrom
goanpeca:update/shortcodes
Dec 4, 2025
Merged

Update figure shortcodes to new syntax#283
agriyakhetarpal merged 10 commits intopybamm-team:mainfrom
goanpeca:update/shortcodes

Conversation

@goanpeca
Copy link
Contributor

Hello team!

As part of figure, image and button shortcodes as being updated on this PR I created this PR to prepare the website for moving to the new syntax when a new version is released!


Pinging @agriyakhetarpal

@netlify
Copy link

netlify bot commented May 20, 2025

Deploy Preview for pybamm-developer-preview failed.

Name Link
🔨 Latest commit 64d1be6
🔍 Latest deploy log https://app.netlify.com/projects/pybamm-developer-preview/deploys/6837cc825bfce40007af4066

@goanpeca goanpeca marked this pull request as draft May 20, 2025 01:35
@goanpeca goanpeca force-pushed the update/shortcodes branch from 8aa7b96 to da2e3d6 Compare May 28, 2025 02:46
Copy link
Member

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, @goanpeca! I think there is one more change needed:

Start building sites … 
hugo v0.141.0-e7bd51698e5c3778a86003018702b1a7dcb9559a+extended+withdeploy darwin/arm64 BuildDate=2025-01-16T13:11:18Z VendorInfo=hugo-python-distributions

Total in 52 ms
Error: error building site: process: readAndProcessContent: "/Users/agriyakhetarpal/Desktop/pybamm.org/content/publications.md:37:1": failed to extract shortcode: shortcode "button" does not evaluate .Inner or .InnerDeindent, yet a closing tag was provided

You may run it with nox locally after syncing the submodule to our work in my fork.

Most of the required changes should be around

{{< button light >}}
label: DOI
link: https://doi.org/10.1149/2.0341915jes
{{< /button >}}
</div>
and in similar lines through this page, so I think just a few {{ < button >}}s were missed.

Edit: ah, I see that you've only ported the figure shortcodes in this PR. Perhaps we should port the button and image shortcodes in the same PR as well (and elsewhere in other contemporary PRs too)?

@agriyakhetarpal agriyakhetarpal added the wait to merge Do not merge this yet label May 28, 2025
@goanpeca goanpeca force-pushed the update/shortcodes branch from da2e3d6 to 64d1be6 Compare May 29, 2025 02:54
@goanpeca
Copy link
Contributor Author

@agriyakhetarpal it has been fixed and tested!

Copy link
Member

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @goanpeca! All good now :D

@netlify
Copy link

netlify bot commented Aug 10, 2025

Deploy Preview for pybamm-developer-preview failed.

Name Link
🔨 Latest commit 720bf50
🔍 Latest deploy log https://app.netlify.com/projects/pybamm-developer-preview/deploys/6899133b3591a30008f39aaf

@netlify
Copy link

netlify bot commented Dec 4, 2025

Deploy Preview for pybamm-developer-preview ready!

Name Link
🔨 Latest commit b2c8c9e
🔍 Latest deploy log https://app.netlify.com/projects/pybamm-developer-preview/deploys/6931a3c5c0e0d7000969bf14
😎 Deploy Preview https://deploy-preview-283--pybamm-developer-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99
Accessibility: 100
Best Practices: 92
SEO: 91
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@agriyakhetarpal agriyakhetarpal marked this pull request as ready for review December 4, 2025 14:54
@agriyakhetarpal agriyakhetarpal requested review from Copilot and removed request for Copilot December 4, 2025 15:07
@agriyakhetarpal agriyakhetarpal removed the wait to merge Do not merge this yet label Dec 4, 2025
@agriyakhetarpal agriyakhetarpal merged commit 153108e into pybamm-team:main Dec 4, 2025
10 of 12 checks passed
@agriyakhetarpal
Copy link
Member

Thanks a lot, @goanpeca! This really helped with the theme update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants