Skip to content

How to make Docus only handle routes under /docs in a Nuxt 4 project? #1200

@PauloAFBarbosa

Description

@PauloAFBarbosa

Hi everyone!

I’ve been working with Docus and could use a bit of help.

I managed to set up a standalone Docus project to serve documentation, and it worked great. Now I’m trying to integrate it into my existing Nuxt 4 website — but I’ve run into a problem: Docus seems to be taking over all the routing.

No matter what route I visit, it tries to resolve it from the /content directory (looking for a Markdown file).

My question:
Is there a way to configure Docus so it only handles routes under a specific path, like /docs?

For example:

  • /docs/content/index.md
  • /docs/folder1/page1/content/folder1/page1.md

Basically, I’d like Docus to serve content only under /docs, and leave the rest of the Nuxt routes untouched.

I’ve already checked the Nuxt Content and Docus documentation, but couldn’t find anything about scoping Docus to a specific route.

Any tips or workarounds would be really appreciated, thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions