Skip to content

Docusaurus on an existing repo with docs one level up #9002

Closed Answered by slorber
mderazon asked this question in Q&A
Discussion options

You must be logged in to vote

Using path: '..' is actually not a good idea, because this folder includes your whole site, including your blog, pages etc... this creates conflicts that we can't really manage. IMHO we should forbid you to use a direct parent folder.

If you want to have 2 folders, you need to configure 2 docs plugin instances:

"presets": [
    [
      "classic",
      {
        "docs": false,
        "blog": false,
      }
    ]
  ],
  "plugins": [
    [
      "@docusaurus/plugin-content-docs",
      {
        "id": "pi-1",
        "routeBasePath": "pi-1",
        "path": "../pi-1"
      }
    ],
    [
      "@docusaurus/plugin-content-docs",
      {
        "id": "pi-2",
        "routeBasePath": "pi-1",…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@mderazon
Comment options

@slorber
Comment options

slorber May 30, 2023
Collaborator

@mderazon
Comment options

@slorber
Comment options

slorber May 31, 2023
Collaborator

Answer selected by mderazon
@mderazon
Comment options

@slorber
Comment options

slorber May 31, 2023
Collaborator

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants