Skip to content

Doc says "v5 upgrade: zoom-image → zoom" but it's wrong in cdn.jsdelivr.net #2775

Description

@julienbusset

Description

Regarding v4 to v5 upgrade, the doc says "Plugin Names**: zoom-imagezoom":

- **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

  1. Init a Docsify v4 project.
  2. Read the doc at https://docsify.js.org/#/v5-upgrade?id=_4-update-plugin-urls .
  3. 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>
  1. 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

  • Bug still occurs when all/other plugins are disabled?

Metadata

Metadata

Assignees

Labels

Triagebugconfirmed as a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions