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

Support embedding parts of files with the static site gen platform #6392

Conversation

michaelkpfeifer
Copy link
Contributor

Closes #6328.

This pull requests allows to specify snippets of files to be embedded during static site generation.

The markdown file specifies snippets by referencing a name of a snippet such as

file:main.roc:snippet:hello

and in the source file the snippet is specified as the text between ### start snippet hello and ### end snippet.

@michaelkpfeifer michaelkpfeifer force-pushed the support-embedding-parts-of-files-with-static-site-gen-platform branch from 1881e75 to 7447653 Compare January 17, 2024 21:35
@michaelkpfeifer michaelkpfeifer marked this pull request as draft January 21, 2024 14:41
@michaelkpfeifer michaelkpfeifer marked this pull request as ready for review January 28, 2024 21:56
@Anton-4 Anton-4 self-assigned this Jan 29, 2024
Copy link
Collaborator

@Anton-4 Anton-4 left a comment

Choose a reason for hiding this comment

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

Thanks @michaelkpfeifer!
This will allow us to have a lot more trust in the tutorial snippets :)

@Anton-4 Anton-4 merged commit 98a9f52 into roc-lang:main Jan 31, 2024
17 checks passed
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.

Support embedding parts of a roc-file with the static-site-gen platform
2 participants