Skip to content

Conversation

@matt-graham
Copy link
Collaborator

Resolves #577

Moves template tutorial under website docs/pages directory and updates internal links to point to new location.

To get GFM admonitions to render on Jekyll site also adds jekyll-gdm-admonitions plugin as a new dependency on site config and Gemfile. As an alternative we could use the built-in support for callouts / admonitions in the Just the Docs theme. This would then no longer render on GitHub though.

I have currently updated the link on main README to still be version on GitHub rather than rendered website - not sure if we want to change this or not.

The additional attributes on <details> / <summary> tags are taken from this blog post.

@matt-graham matt-graham added the website Related to https://github-pages.arc.ucl.ac.uk/python-tooling label Feb 2, 2026
@matt-graham matt-graham changed the title Mmg/tutorial on website Move tutorial to Jekyll website Feb 2, 2026
@matt-graham
Copy link
Collaborator Author

Tagging you for review @samcunliffe as you did some previous investigation on related issue #577 but appreciate you've just reviewed two other PRs from me so no worries if you want to pass on this one!

@samcunliffe
Copy link
Member

Tagging you for review @samcunliffe as you did some previous investigation on related issue #577 but appreciate you've just reviewed two other PRs from me so no worries if you want to pass on this one!

It looks like jekyll-gh-admonitions solves my sticking point.

Copy link
Member

@samcunliffe samcunliffe left a comment

Choose a reason for hiding this comment

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

Tested locally, works! 🥳

from the root of the project repository. Note that `uv>=0.6.7` is required to use the `--group` option.

<details><summary>Using venv as an alternative to uv </summary> <!-- markdownlint-disable-line MD033 -->
<details markdown="1"><summary markdown="span">Using venv as an alternative to uv </summary> <!-- markdownlint-disable-line MD033 -->
Copy link
Member

Choose a reason for hiding this comment

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

👀

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

My limited understanding of this is that these attributes give extra information to the Kramdown Markdown processor to avoid it mangling the HTML blocks. I found them from a blog post which references a GitHub issue on GitHub Docs repository.

@matt-graham matt-graham merged commit b108629 into main Feb 2, 2026
20 checks passed
@matt-graham matt-graham deleted the mmg/tutorial-on-website branch February 2, 2026 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

website Related to https://github-pages.arc.ucl.ac.uk/python-tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should the cookiecutter template tutorial be on the website?

3 participants