Welcome to the Next.js Directory/Blog Boilerplate documentation.
📖 View Online: This documentation is also available on GitHub Pages
- Getting Started - Installation and first steps
- Content System - Adding and managing content
- Configuration - Site and content config reference
- SEO - Sitemap, RSS, metadata, and structured data
- Dark Mode - Theming and customization
- Components - Available UI components
- Deployment - Deploying to production
This boilerplate provides a flexible, config-driven system for building content-driven websites. Key features:
- Unified Content System - Manage multiple content types (articles, guides, custom types) from a single configuration
- SEO-First Design - Automatic sitemap, RSS feed, and JSON-LD structured data
- Dark Mode - System preference detection with manual toggle
- Type-Safe - Full TypeScript support throughout
content/ # Your MDX content files
src/
app/ # Next.js App Router pages
components/ # React components
config/ # Configuration files
lib/
content/ # Content loading system
The content system reads MDX files from the content/ directory, parses frontmatter metadata, and serves them through dynamic routes.
To enable the built-in GitHub Pages for this documentation:
- Go to your repository Settings → Pages
- Under "Build and deployment":
- Source: Deploy from a branch
- Branch:
main - Folder:
/docs
- Click Save
GitHub will automatically serve the documentation at:
https://[your-username].github.io/nextjs-directory-boilerplate/docs/
This documentation is automatically synced to the repository's GitHub Wiki via a GitHub Action.
- Enable the Wiki feature in repository Settings → General → Features.
- Create the first page (Home) in the Wiki manually if it doesn't exist (just to initialize the git repo).
- The
.github/workflows/publish-wiki.ymlaction will run on the next push tomainthat changesdocs/.
docs/README.mdbecomes the Wiki Home page.docs/_Sidebar.mdcontrols the Wiki sidebar navigation.- All other files are preserved with their directory structure.