Skip to content
This repository was archived by the owner on May 3, 2026. It is now read-only.

Latest commit

 

History

History

README.md

Documentation

Welcome to the Next.js Directory/Blog Boilerplate documentation.

📖 View Online: This documentation is also available on GitHub Pages

Quick Links

Overview

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

Architecture

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.

Support


GitHub Pages Setup

To enable the built-in GitHub Pages for this documentation:

  1. Go to your repository SettingsPages
  2. Under "Build and deployment":
    • Source: Deploy from a branch
    • Branch: main
    • Folder: /docs
  3. Click Save

GitHub will automatically serve the documentation at: https://[your-username].github.io/nextjs-directory-boilerplate/docs/

GitHub Wiki Integration

This documentation is automatically synced to the repository's GitHub Wiki via a GitHub Action.

Setup

  1. Enable the Wiki feature in repository SettingsGeneralFeatures.
  2. Create the first page (Home) in the Wiki manually if it doesn't exist (just to initialize the git repo).
  3. The .github/workflows/publish-wiki.yml action will run on the next push to main that changes docs/.

Structure

  • docs/README.md becomes the Wiki Home page.
  • docs/_Sidebar.md controls the Wiki sidebar navigation.
  • All other files are preserved with their directory structure.