rdilweb / docusaurus-plugin-remote-content

A Docusaurus plugin to download content from remote sources when it is needed.
MIT License
94 stars 12 forks source link

CLI Sync runs every instance of the plugin #46

Open motionsuggests opened 2 years ago

motionsuggests commented 2 years ago

Running CLI Sync mode runs every instance of the plugin.

When I have two or more instances of the plugin in my docusaurus.config.js and I use the CLI Sync mode with docusaurus download-remote-fakeRepoOne it actually runs every instance of the plugin.

Related to: https://github.com/rdilweb/docusaurus-plugin-remote-content/issues/45

RDIL commented 2 years ago

Will fix this later today.

RDIL commented 2 years ago

After doing some investigating, it appears this only happens if noRuntimeDownloads is disabled. Can you check if that is the case in your config?

motionsuggests commented 2 years ago

Setting noRuntimeDownloads: true does fix the issue.

RDIL commented 2 years ago

Worth noting that this is still a bug, one which will require a pretty ugly hack.