Since the index was moved to /src, this file no longer exists. The correct URL--which lets unpkg.com redirect based on the unpkg values in package.json--is actually:
<!-- Let unpkg redirect, based on "unpkg" value in package.json -->
<script src="//unpkg.com/docsify-copy-code"></script>
I didn't realize that the previous instructions linked directly to index.js, so I apologize for the oversight 🤦♂️ . Happy to help mitigate this if necessary.
In the meantime, I've updated the README to link to the correct URL and provided a version-specific URL.
I'm happy with it like this since we are bumping to a new major version, breaking changes are okay. People that are already using version 1 can continue doing so if they prefer.
Just tested 2.x. The code changes work as expected, however...
The previous instructions explicitly linked to the
index.js
:Since the index was moved to
/src
, this file no longer exists. The correct URL--which lets unpkg.com redirect based on theunpkg
values inpackage.json
--is actually:I didn't realize that the previous instructions linked directly to
index.js
, so I apologize for the oversight 🤦♂️ . Happy to help mitigate this if necessary.In the meantime, I've updated the README to link to the correct URL and provided a version-specific URL.
Thanks @jperasmus.