https://github.com/fernandocalmet/tantra
๐ทTantra Online ~ Developers Documentation Page
https://github.com/fernandocalmet/tantra
k5 kathana tantra tantra-online tantraonline
Last synced: 4 months ago
JSON representation
๐ทTantra Online ~ Developers Documentation Page
- Host: GitHub
- URL: https://github.com/fernandocalmet/tantra
- Owner: FernandoCalmet
- License: mit
- Created: 2019-02-16T00:04:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-20T18:54:21.000Z (almost 2 years ago)
- Last Synced: 2025-03-05T12:32:46.600Z (over 1 year ago)
- Topics: k5, kathana, tantra, tantra-online, tantraonline
- Language: Liquid
- Homepage: https://fernandocalmet.github.io/Tantra/
- Size: 47.4 MB
- Stars: 16
- Watchers: 5
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# ๐ฎ Tantra Online Documentation
[](https://github.com/FernandoCalmet/Tantra/actions/workflows/deploy.yml)
[](https://nextjs.org/)
[](https://www.typescriptlang.org/)
[](https://tailwindcss.com/)
[](LICENSE)
**A modern, minimalist documentation site for Tantra Online game development**
Built with Next.js โข Tailwind CSS โข shadcn/ui โข MDX
[๐ Live Demo](https://fernandocalmet.github.io/Tantra/) โข [๐ Documentation](#getting-started) โข [๐ Report Bug](https://github.com/FernandoCalmet/Tantra/issues) โข [โจ Request Feature](https://github.com/FernandoCalmet/Tantra/issues)
---
## โจ Features
- ๐๏ธ **File-system based content**: Add markdown files to `/content` and 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
## ๐ Getting Started
### ๐ป Development
**Prerequisites:**
- Node.js 20.x or higher
- npm or yarn package manager
**Steps:**
1. **Clone the repository**
```bash
git clone https://github.com/FernandoCalmet/Tantra.git
cd Tantra
```
2. **Install dependencies**
```bash
npm install
```
3. **Run the development server**
```bash
npm run dev
```
4. **Open your browser**
Navigate to [http://localhost:3000](http://localhost:3000)
### ๐ Adding Content
Simply add markdown files to the `/content` directory:
```markdown
---
title: "Your Page Title"
description: "Page description for SEO"
order: 1
---
# Your Page Title
Your content here...
```
#### ๐ Folder Structure
- Each folder can have a `README.md` (becomes the index page for that section)
- Files are sorted by `order` field, 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
```
### ๐๏ธ Building for Production
Build the static site:
```bash
npm run build
```
The output will be in the `/out` directory, ready to deploy to GitHub Pages.
## ๐ Deployment
### GitHub Pages Setup
1. Go to your repository settings
2. Navigate to Pages section
3. Set Source to "GitHub Actions"
4. 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`
## ๐ ๏ธ Technology Stack
| 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 |
## ๐ Project Structure
```
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
```
## ๐จ Color Palette
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 |
## โ๏ธ Customization
### Colors
Edit `app/globals.css` to customize the color palette:
```css
:root {
--primary: oklch(0.71 0.16 50); /* Copper orange */
/* ... other colors */
}
```
### Logo
Update the logo in `components/docs/sidebar.tsx` and `components/docs/top-navbar.tsx`.
### Metadata
Update site metadata in `app/layout.tsx`:
```typescript
export const metadata: Metadata = {
title: "Your Site Title",
description: "Your description",
};
```
## ๐ค Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
### How to Contribute
1. **Fork the Project**
2. **Create your Feature Branch** (`git checkout -b feature/AmazingFeature`)
3. **Commit your Changes** (`git commit -m 'feat: add some amazing feature'`)
4. **Push to the Branch** (`git push origin feature/AmazingFeature`)
5. **Open a Pull Request**
### Content Contributions
For documentation updates:
1. Add/edit markdown files in `/content`
2. Commit and push to trigger automatic deployment
3. Your changes will be live in ~2-3 minutes
## ๐ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## ๐ค Author
**Fernando Calmet**
- ๐ Website: [fernandocalmet.github.io](https://fernandocalmet.github.io)
- ๐ผ LinkedIn: [@fernandocalmet](https://www.linkedin.com/in/fernandocalmet)
- ๐ง Email: [fernandocalmet@gmail.com](mailto:fernandocalmet@gmail.com)
- ๐ GitHub: [@FernandoCalmet](https://github.com/FernandoCalmet)
## โญ Show your support
Give a โญ๏ธ if this project helped you!
## ๐ Acknowledgments
- [Next.js](https://nextjs.org/) - The React Framework
- [Tailwind CSS](https://tailwindcss.com/) - A utility-first CSS framework
- [shadcn/ui](https://ui.shadcn.com/) - Beautifully designed components
- [Vercel](https://vercel.com/) - For the amazing deployment platform
- The Tantra Online community
---
**Built with โค๏ธ by [Fernando Calmet](https://github.com/FernandoCalmet)**
[โฌ Back to Top](#-tantra-online-documentation)