Hi there—thanks for being interested in contributing! For starters, all questions, feature suggestions, and bug reports/fixes are welcome. That being said, some goals of this plugin are to stay simple/small, "just work", and not require a lot of configuration, so please don't be offended if any feature requests are politely declined. For any feature/configuration additions, you might want to open an issue explaining the idea first before going through the trouble of implementing it.
- Run
npm install
. - Run
gulp test
/gulp watch
(command-line), oropen test/index.html
(browser).
You can find the tests in test/toc-test.js
.
- Keep the pull request small, and narrowly scoped (one bug fix, one feature, etc.)
- The
dist/
directory contains the latest released version of the plugin, so please make any code changes inbootstrap-toc.js
andbootstrap-toc.css
only. - Don't update the
dist/
directory, bump the version, etc...these will be done by the maintainer(s) as part of a release. - Add/update tests for functionality changes, additions, or fixes.
- Update the documentation for any functionality changes/additions.
- Files should be formatted using Prettier.
Thanks!