Skip to content

support extracting nu code snippets into standalone .nu files for better downstream trackability#2162

Open
orthonormalremy wants to merge 1 commit into
nushell:mainfrom
orthonormalremy:cookbook-direnv-split
Open

support extracting nu code snippets into standalone .nu files for better downstream trackability#2162
orthonormalremy wants to merge 1 commit into
nushell:mainfrom
orthonormalremy:cookbook-direnv-split

Conversation

@orthonormalremy
Copy link
Copy Markdown

@orthonormalremy orthonormalremy commented May 12, 2026

There are many useful recipes that exist in the cookbook and there is no way to track them directly in a script-friendly way (markdown file parsing is not ideal obviously).

This PR adds support for useful standalone code snippets (e.g. snippets that someone might want to put in their autoload/ dir) to be extracted out into their own .nu files so it can remain the source of truth for the cookbook while also being programmatically fetch-able.

Note: this PR uses the lightweight @vuepress/plugin-markdown-include plugin which is an official VuePress plugin from the same @vuepress/* family already used in this repo

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