nushell.github.io
nushell.github.io copied to clipboard
Generate terminal output
The current output isn't up to date. Tables aren't nested (#917). It's also a maintenance burden to identify examples to update (#774) for breaking changes. My proposal is to generate the output at build time.
I use the Markdown Preview Enhanced VS Code extension that provides this exact feature. Its author also provides a library called https://github.com/shd101wyy/crossnote. The API we're looking for (whether dependency or inspiration) is MarkdownEngine#runCodeChunks.
Also shout out to @shd101wyy for an amazing tool 👏🏼 I'm happy to attempt implementation when I have time.
Need to explore incorporating this as an action with https://github.com/hustcer/setup-nu 💭