A modern, minimalist documentation site for Tantra Online game development
Built with Next.js โข Tailwind CSS โข shadcn/ui โข MDX
๐ Live Demo โข ๐ Documentation โข ๐ Report Bug โข โจ Request Feature
- ๐๏ธ File-system based content: Add markdown files to
/contentand they automatically appear in the navigation - ๐จ Modern UI: Minimalist Tesla/Apple-inspired design with warm copper/orange accents
- ๐ฑ Responsive: Works beautifully on desktop, tablet, and mobile
- โก Static Export: Generates static HTML for fast, reliable hosting on GitHub Pages
- ๐ Auto-deployment: GitHub Actions automatically builds and deploys on every push
- ๐ Dark Mode Ready: Near-black dark mode with maintained copper accents
- ๐ MDX Support: Enhanced markdown with React components
- ๐ฏ Syntax Highlighting: Code blocks with Shiki
- ๐ Search: Command palette (Cmd+K) for quick navigation
- โฟ Accessible: WCAG 2.1 AA compliant
Prerequisites:
- Node.js 20.x or higher
- npm or yarn package manager
Steps:
- Clone the repository
git clone https://github.com/FernandoCalmet/Tantra.git
cd Tantra- Install dependencies
npm install- Run the development server
npm run dev- Open your browser
Navigate to http://localhost:3000
Simply add markdown files to the /content directory:
---
title: "Your Page Title"
description: "Page description for SEO"
order: 1
---
# Your Page Title
Your content here...- Each folder can have a
README.md(becomes the index page for that section) - Files are sorted by
orderfield, then alphabetically - Folder names are auto-converted to titles (e.g.,
items-managementโ "Items Management")
Example structure:
content/
โโโ README.md # Homepage
โโโ installation/
โ โโโ README.md # Installation section index
โ โโโ client/
โ โ โโโ setup.md
โ โโโ database/
โ โโโ install.md
โโโ development/
โโโ gmtool/
โโโ commands.md
Build the static site:
npm run buildThe output will be in the /out directory, ready to deploy to GitHub Pages.
- Go to your repository settings
- Navigate to Pages section
- Set Source to "GitHub Actions"
- Push to main/master branch
The GitHub Actions workflow will automatically:
- Install dependencies
- Build the static site
- Deploy to GitHub Pages
Your site will be available at: https://fernandocalmet.github.io/Tantra
| Category | Technology |
|---|---|
| Framework | Next.js 16 (App Router) with static export |
| Styling | Tailwind CSS v4 |
| Components | shadcn/ui |
| Markdown | next-mdx-remote, gray-matter |
| Syntax Highlighting | Shiki |
| Icons | lucide-react |
| Deployment | GitHub Pages + Actions |
tantra-docs/
โโโ app/ # Next.js App Router
โ โโโ layout.tsx # Root layout with sidebar
โ โโโ page.tsx # Homepage
โ โโโ [...slug]/ # Dynamic catch-all route
โโโ components/
โ โโโ ui/ # shadcn-ui components
โ โโโ docs/ # Documentation components
โ โโโ sidebar.tsx
โ โโโ top-navbar.tsx
โ โโโ ...
โโโ content/ # All markdown content
โโโ lib/
โ โโโ content-tree.ts # Content scanner
โ โโโ markdown.ts # Markdown processor
โโโ public/
โ โโโ extras/ # Images and assets
โโโ .github/
โโโ workflows/
โโโ deploy.yml # GitHub Actions workflow
The site uses a warm copper/orange accent color for a unique, energetic feel:
| Color | Value | Usage |
|---|---|---|
| Primary | #f97316 |
Copper Orange - Links, accents, highlights |
| Background (Light) | #ffffff |
White - Main background |
| Background (Dark) | #0a0a0a |
Near-black - Dark mode background |
| Text | Various grays | Sophisticated text hierarchy |
Edit app/globals.css to customize the color palette:
:root {
--primary: oklch(0.71 0.16 50); /* Copper orange */
/* ... other colors */
}Update the logo in components/docs/sidebar.tsx and components/docs/top-navbar.tsx.
Update site metadata in app/layout.tsx:
export const metadata: Metadata = {
title: "Your Site Title",
description: "Your description",
};Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'feat: add some amazing feature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
For documentation updates:
- Add/edit markdown files in
/content - Commit and push to trigger automatic deployment
- Your changes will be live in ~2-3 minutes
This project is licensed under the MIT License - see the LICENSE file for details.
Fernando Calmet
- ๐ Website: fernandocalmet.github.io
- ๐ผ LinkedIn: @fernandocalmet
- ๐ง Email: fernandocalmet@gmail.com
- ๐ GitHub: @FernandoCalmet
Give a โญ๏ธ if this project helped you!
- Next.js - The React Framework
- Tailwind CSS - A utility-first CSS framework
- shadcn/ui - Beautifully designed components
- Vercel - For the amazing deployment platform
- The Tantra Online community
Built with โค๏ธ by Fernando Calmet