Skip to content

Fetching from multiple sourceBaseUrls #41

Answered by RDIL
peterklingelhofer asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, the Docusaurus plugin API doesn't support multiple config objects in the same plugin instance, but you should be able to do it like this instead:

plugins: [
  [
      "docusaurus-plugin-remote-content",
      {
        name: "stream", // used by CLI, must be path safe
        sourceBaseUrl: "https://raw.githubusercontent.com/resonatecoop/stream/development/", // the base url for the markdown (gets prepended to all of the documents when fetching)
        outDir: "docs/basics", // the base directory to output to.
        documents: ["README.md"], // the file names to download
      }
  ],
  [
      "docusaurus-plugin-remote-content",
      {
        name: "website", // used by CLI, mus…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@peterklingelhofer
Comment options

@peterklingelhofer
Comment options

@RDIL
Comment options

RDIL May 30, 2022
Maintainer

Answer selected by peterklingelhofer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #40 on May 29, 2022 17:32.