Skip to content

Add the workshop to the website sitemap - #161

Merged
Pascal-Kueng merged 1 commit into
mainfrom
workshop-sitemap
Nov 7, 2026
Merged

Pascal-Kueng merged 1 commit into
mainfrom
workshop-sitemap

Conversation

@Pascal-Kueng

Copy link
Copy Markdown
Owner

The website's sitemap.xml doesn't list the workshop, because the workflow copies the workshop into docs/ after pkgdown has written the sitemap. A new step rebuilds the sitemap once the workshop is in place, so it also lists workshop/, workshop/conceptual/ and workshop/applied/.

The step calls pkgdown:::build_sitemap(), which pkgdown doesn't export. If a pkgdown update removes it, the step fails and the site isn't deployed, so the problem shows up right away. The alternative is to append the three URLs to sitemap.xml with sed, with the site URL written out.

Tested locally with pkgdown 2.2.1 on a mock docs/ folder. After merging, check the live sitemap and tick the sitemap step in #23.

@Pascal-Kueng
Pascal-Kueng merged commit cb8e839 into main Nov 7, 2026
7 checks passed
@Pascal-Kueng
Pascal-Kueng deleted the workshop-sitemap branch November 7, 2026 20:38
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.

1 participant