Code Generation
After resolving config and graph data, Nivel writes the generated Vike files needed for canonical docs routes and alias routes. Generation is deterministic and can be run again whenever the graph or content changes.
Generated output
Generated output can include route modules, page modules, title and description data, layout glue, and the serialized docs global context. It belongs under pages/(nivel-generated).
Operational rule
Treat generated files as disposable engine output. Change the graph, config, or MDX source files, then run:
BASH
pnpm generate:docsThe consumer-facing generated-file contract is covered in Generated Pages.