Skip to content

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

@galligan

Description

@galligan

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!

Metadata

Metadata

Assignees

Labels

FeatureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions