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

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!
Docus
Write beautiful docs with Markdown
Ship fast, flexible, and SEO-optimized documentation with beautiful design out of the box. Docus brings together the best of the Nuxt ecosystem. Powered by Nuxt UI.
1 Reply
kapa.ai
kapa.ai2mo ago
Hi @Paulo Barbosa. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: Sorry @Paulo Barbosa, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?

Did you find this page helpful?