Timvir assumes a very specific setup of your Next.js project. In particular:
src/ folder, and consequently, pages are placed in src/pages/.src/components/.src/pages/docs/components/ folder.src/timvir/ (eg. src/timvir/toc.ts).If you Next.js project has a compatible setup, follow these steps:
src/timvir/wrapper.tsx:
_app.tsx file to load the Timvir CSS:
src/pages/docs/index.mdx: