Description
Regarding v4 to v5 upgrade, the doc says "Plugin Names**: zoom-image → zoom":
|
- **Plugin Names**: `zoom-image` → `zoom` |
but it's wrong in cdn.jsdelivr.net, it's still
zoom-image:
https://cdn.jsdelivr.net/npm/docsify@5/dist/plugins/
Expected behavior
The script zoom should be loaded when following the instructions to migrate from v4 to v5.
Actual behavior
If you follow what's documented, you put this in your index.html:
<script src="//cdn.jsdelivr.net/npm/docsify@5/dist/plugins/zoom.min.js"></script>
and then see that "zoom.js" is not loaded.
Steps to reproduce
- Init a Docsify v4 project.
- Read the doc at https://docsify.js.org/#/v5-upgrade?id=_4-update-plugin-urls .
- As told, change this line of your index.html:
<!-- v4 -->
<script src="https://cdn.jsdelivr.net/npm/docsify@4/lib/plugins/zoom-image.min.js"></script>
<!-- OR non-versioned: -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
to this
<!-- v5 -->
<script src="//cdn.jsdelivr.net/npm/docsify@5/dist/plugins/zoom.min.js"></script>
- Check if the script is loaded, and you'll see it's not.
Environment
- Your OS: Linux Mint 22.3 Zena
- Node.js version: n/a
- npm/yarn version: n/a
- Browser version: Firefox 153.0.1 (64 bits)
- Docsify version: 4, migrating to 5
- Docsify plugins (if the bug happens when plugins enabled, please try to isolate the issue): zoom-image
- Location (since it's related to the CDN, this information might be important): France
Additional Information
Description
Regarding v4 to v5 upgrade, the doc says "Plugin Names**:
zoom-image→zoom":docsify/docs/v5-upgrade.md
Line 118 in bd71ebf
but it's wrong in cdn.jsdelivr.net, it's still
zoom-image:https://cdn.jsdelivr.net/npm/docsify@5/dist/plugins/
Expected behavior
The script
zoomshould be loaded when following the instructions to migrate from v4 to v5.Actual behavior
If you follow what's documented, you put this in your index.html:
and then see that "zoom.js" is not loaded.
Steps to reproduce
to this
Environment
Additional Information