Closed Neobii closed 3 years ago
Thanks! Code sounds ok, could you please add a small test for this? Unit testing would be a bit annoying, lots of mocks etc. so you can maybe add a test
folder in the package and create an e2e test with real files? Those file won't be bundled in the published package so that's ok to add a few .md for testing.
Closing in favour of https://github.com/VulcanJS/vulcan-npm/pull/51, where we keep the work going based on your commit. Thanks!
Adds the ability to have nested mdx docs and handles if they are named index. Also has
getFirstHeader
to extract the first header out of the mdx to use for autogeneration of head tags.On vulcan-next, this is how the changes are implemented ...fileName.tsx