Routing
Methanol uses file-based routing from pages/.
MDX and Markdown pages
pages/about.mdx→/aboutpages/guide/index.mdx→/guide/(directory index)
.html pages
You can also place plain HTML files in pages/. They are included in the build and processed by Vite:
pages/custom.html→dist/custom.html(visit/custom.html)
Demo:
404 page
Create pages/404.mdx to customize the Not Found page (it is hidden from navigation by default).
Hidden vs excluded
hidden: truehides a page from navigation, but the route still exists and can be visited directly.exclude: trueremoves the page from dev/build (and on a directoryindex.mdx, excludes the whole directory).- Files/directories starting with
_or.are ignored.