How shunshiratori/shirablog works
Project type and purpose
• This is a full-stack, content-driven Next.js application (a blog/docs site) generated with Create Fumadocs.
• It uses file-based routing (under src/app), MDX files in the content directory, and a serverless API route (src/app/api/search/route.ts) for search functionality.
File structure
• Top-level files: next.config.mjs, tsconfig.json, postcss.config.mjs, next-sitemap.config.js, package.json – indicate a Next.js/TypeScript setup with CSS processing and sitemap generation.
• content/: MDX files → source of static blog pages.
• src/app/: Next.js 13+ App Router:
• (home) layout and page.tsx for root and blog indexes
• dynamic route [slug] for individual posts
• api/search/route.ts as a serverless function
• src/components/: shared UI (header, footer, menu, pagination).
• src/lib/source.ts: likely loads/parses MDX.
• public/: static assets, favicon, etc.
README
• Confirms Next.js + Fumadocs usage, how to run dev server, and links to Next.js/Fumadocs docs.