docusaurus-plugin-remote-content icon indicating copy to clipboard operation
docusaurus-plugin-remote-content copied to clipboard

Support fetching all files and/or with filename pattern matching to use as documents

Open galligan opened this issue 2 years ago • 10 comments

Problem

I have a desire to populate a Docusaurus instance with content from multiple distinct repos. The content in those “remote” (relative to the Docusaurus instance) may change, and therefore can’t be explicitly defined.

Proposed solution

It would be hugely beneficial if I could simply say “all” files within a repo are downloaded, or if I could use filename pattern matching to filter a subset of documents to download.

In practice, perhaps this means that within documents I could pass a non-area string such as:

  • all: this would fetch all files in a given directory
  • faq*: this would fetch all files that begin with faq

Other thoughts

What I’m not clear on is whether or not it would be useful to define specifics around subcategories. Perhaps this would mean that for a given directory, I could look for all files that begin with faq, traversing subdirectories, ignoring the files that don’t begin with faq, and then downloading the results, preserving the subdirectory structure along the way.


Thanks for your consideration!

galligan avatar Apr 20 '22 11:04 galligan