Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code auto-linking to release posts #169

Open
Bisaloo opened this issue Jan 30, 2024 · 0 comments
Open

Add code auto-linking to release posts #169

Bisaloo opened this issue Jan 30, 2024 · 0 comments

Comments

@Bisaloo
Copy link
Member

Bisaloo commented Jan 30, 2024

From #166 (comment). cc @joshwlambert.

This is possible via downlit package, which is used by quarto when rendering a rmarkdown document (source code).

A couple of things need to happen for this to work here:

  • code-link: true needs to be added to the release post template YAML metadata header
  • the release post template needs to load the package of interest
  • the xml2 & downlit packages need to be added to renv.lock
  • the correct version of the package of interest needs to be added to renv.lock by the automate-release-post workflow
  • the workflow also needs to now pre-render and commit the related _freeze file to ensure netlify preview works.

Important note: code auto-linking will not appear in the netlify preview but it should still work in the final version when rendered from main!

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

No branches or pull requests

1 participant