In this directory live all assets for ExDoc. The built, ready-to-use
versions are found in formatters/{html,epub}/dist.
To work on these assets you need to install Node.js (version 10) and NPM (version 5.6) first (maybe as superuser or administrator).
The following scripts are available from the root folder of the project.
$ npm run --prefix assets buildThis will build a complete production bundle, including JavaScript and CSS.
If you run mix build at the ExDoc root after changing your assets, it will
automatically recompile the assets, invoke mix compile --force, and generate
fresh docs with your changes.
$ npm run --prefix assets lintLint all JavaScript files using ESLint.
$ npm run --prefix lint:fixLint and automatically fix all JavaScript files using ESLint.
$ npm run --prefix assets testRun all the available JavaScript tests using Karma.
Internally we use Webpack. We also use Less for organizing stylesheets.