feature request: local project files in siteConfig.scripts & siteConfig.stylesheets #534
Labels
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
We want to include our library distributable in the pages of our documentation site to demonstrate it. There's also a 3rd-party (vendor) script in the
node_modules
dir that we need to include (to make the indicated code blocks "executable").Is there a nice way to include local project files in siteConfig.scripts that are outside the
./website/static/
dir?Right now I'm copying the needed files into
./website/static/vendor
at the beginning of every script (start, build, publish), and adding that dir to .gitignore, but it feels hacky.I propose we treat relative paths in siteConfig.scripts & siteConfig.stylesheets as relative to the location of
siteConfig.js
and copy those files into the build.Would the maintainers welcome a PR to add this?
The text was updated successfully, but these errors were encountered: