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

@orthonormalremy
Copy link
Copy Markdown
Author

orthonormalremy commented May 18, 2026

the people yearn for programmatically trackable cookbook recipes

@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented May 18, 2026

what people?

@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented May 18, 2026

i'm ok with this, although there are more scripts than the few you have in this pr probably. @hustcer usually makes most decisions on this repo so i'll leave it up to him.

@orthonormalremy
Copy link
Copy Markdown
Author

what people?

just a meme format lol (see: "my people yearn for freedom")

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.

2 participants