Base path for documentation files #1759
ramnes
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there,
Currently, Mintlify automatically generates URLs based on the file structure in the repository. If documentation files are separated from other files (e.g. config, assets, scripts, README, tooling, etc.) in a
docs/directory, the deployed site will have URLs likedocs.example.com/docs/...if it has to be served from a subdomain.I would suggest adding a
docsDiroption todocs.json, that would default to/but could be set todocs/. In that case, for afoo/bar.mdxfile, Mintlify would then read it fromdocs/foo/bar.mdxand serve it at/foo/bar(stripping thedocsprefix).Does that make sense?
FWIW, MkDocs has
docs_dirand VitePress hassrcDir.Beta Was this translation helpful? Give feedback.
All reactions