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

Support choosing an output directory #16

Closed AngelinaPierre closed 3 years ago

AngelinaPierre commented 3 years ago

hi, i'm trying to use your olgin to pull docs from another repo but i'm getting this error...

Error: Cannot find module '../build/index.js' Require stack:

RDIL commented 3 years ago

Can you show the plugins section of your docusaurus.config.js?

AngelinaPierre commented 3 years ago

image

AngelinaPierre commented 3 years ago

i have one repo with docusarus, and another with md files that i want to pull to the docusarus static website automatically... so i don't have to copy, and paste all the existing documentation from other git repositories.

RDIL commented 3 years ago

That's very strange, I'll take a look later today or tomorrow to figure out why this is happening.

AngelinaPierre commented 3 years ago

It was the path to the repositorie, probaly github made an update, where the document url has bloob/main/file.md

RDIL commented 3 years ago

So the issue is resolved now?

AngelinaPierre commented 3 years ago

Yes! thank you! But i wonder, and sorry if i'm being inconvenient, but, there is a way to download the content to a specific folder when the plugin is activeted? like, i have 2 repos (a , b) and want to download the content of the repos to two diferent folders, to keep organized...

RDIL commented 3 years ago

2 different folders within docs?

AngelinaPierre commented 3 years ago

yes

AngelinaPierre commented 3 years ago

downloading content from different repositories can cause 2 readme's and then bug...

AngelinaPierre commented 3 years ago

Docusarus comes with two folders inside the docs folder. If we download the content with the plugin, using multiple instances of him, when you have two files with the same name, usually the readme's , it will cause one of the files not to be downloaded, maybe a option in the plugin can be used to specify the directorie (if exists download, if not create) .... that way it will help in organization and with files using the same name....

RDIL commented 3 years ago

Sure, I'll add that

RDIL commented 3 years ago

Done, will release later today.