3 ms·
Congratulations on the release! In https://news.ycombinator.com/item?id=27134785 https://news.ycombinator.com/item?id=27134785 in reply to me you said: > You
by pbowyer 4y ago
Congratulations on the release!
In https://news.ycombinator.com/item?id=27134785 https://news.ycombinator.com/item?id=27134785 in reply to me you said:
> You can display real production source code in code blocks in any language without having to copy-paste and it can stay in sync.
I've never tracked down the docs for doing that (e.g. including lines 31-34 from ../../src/path/to/library.py in the documentation and keeping it in sync as that expands to lines 31-36) - can you point me to them?
- slorber 4y agoThanks! It's a bit hacky and will likely change in the future, but you can do so this way: https://docusaurus.io/docs/markdown-features/react#importing-code-snippets https://docusaurus.io/docs/markdown-features/react#importing...