scipy.org icon indicating copy to clipboard operation
scipy.org copied to clipboard

Update shortcodes

Open goanpeca opened this issue 6 months ago • 6 comments

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

goanpeca avatar May 20 '25 01:05 goanpeca

Deploy Preview for scipy-org failed.

Built without sensitive environment variables

Name Link
Latest commit eea97963f1f373b54fbd3cd94d0a9f6c6ddda3ad
Latest deploy log https://app.netlify.com/projects/scipy-org/deploys/68378de258ea7c00084140c3

netlify[bot] avatar May 20 '25 01:05 netlify[bot]

Hi @goanpeca, thank you! We'll also need to ensure that all of the new shortcodes use double quotes for the values of the parameters, as single quotes are not allowed. I'm not sure how this will work with cases where we need complex multi-line content – hopefully there aren't any.

agriyakhetarpal avatar May 20 '25 01:05 agriyakhetarpal

Hi @goanpeca, thank you! We'll also need to ensure that all of the new shortcodes use double quotes for the values of the parameters, as single quotes are not allowed. I'm not sure how this will work with cases where we need complex multi-line content – hopefully there aren't any.

Will make the fixes!

goanpeca avatar May 20 '25 01:05 goanpeca

Made the fixes @agriyakhetarpal !

goanpeca avatar May 28 '25 02:05 goanpeca

@agriyakhetarpal PRs will fix all. Some projects only use some of the shortcodes.

This one has been tested :)

goanpeca avatar May 28 '25 22:05 goanpeca

\" escapes the double quote inside a string that is using doubles quotes.

goanpeca avatar May 28 '25 23:05 goanpeca