vite.config.ts). This matches the Mintlify convention where pages sit alongside docs.json.pagesDir to the plugin:123456789// vite.config.ts import { defineConfig } from 'vite' import { holocron } from '@holocron.so/vite' export default defineConfig({ plugins: [ holocron({ pagesDir: './pages' }), ], })
docs.json resolve relative to ./pages/:| Slug in docs.json | Resolved file |
index | ./pages/index.mdx |
guides/auth | ./pages/guides/auth.mdx |
1234567my-docs/ ├── index.mdx ├── quickstart.mdx ├── guides/ │ └── auth.mdx ├── docs.json └── vite.config.ts
12345678my-docs/ ├── pages/ │ ├── index.mdx │ ├── quickstart.mdx │ └── guides/ │ └── auth.mdx ├── docs.json └── vite.config.ts
/) probe pagesDir first, then project root. See Local Imports for details.