Skip to content

Version 2.10.0

Compare
Choose a tag to compare
@egoist egoist released this 17 Mar 09:23
· 255 commits to master since this release

Minor changes

Deprecated self.$config in favor of docute.init(config) method.

To upgrade, simply place your config file after docute.js and make some small changes:

- self.$config = {
+ docute.init({
   // ...
- }
+ })

Or you can directly write inline script tag in index.html:

<script src="https://unpkg.com/docute"></script>
<script>
- self.$config = {
+ docute.init({
   // ...
- }
+ })
</script>

Note: self.$config is still supported but there will be a deprecation message, and self.$config will be removed in next major version which is v3.0