Skip to content

Conversation

goanpeca
Copy link

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

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
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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wait to merge Do not merge this yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants