Closed alpinegizmo closed 2 years ago
That's something I'm planning to add soon :)
The syntax will be like this:
```py
# from ./assets/foo.py
// from ./assets/foo.js
the imported code path is relative to the mdx file path.
:rocket: Issue was released in v0.6.2
:rocket:
We want to keep the code examples used in our documentation in their own files so we can use a CI/CD pipeline that tests that the examples actually work. For example, we've done this in the past with CodeSurfer:
And with Docusaurus, this works:
Perhaps this can already be done somehow with codehike, but if so, I haven't been able to figure it out.