Skip to content

Treblle/treblle-documentation

Repository files navigation

Treblle Documentation

Next.js Nextra TypeScript PandaCSS

The official documentation website for Treblle, the API Intelligence Platform that helps engineering and product teams build, ship, and understand their REST APIs in one place.

πŸš€ About Treblle

Treblle is your comprehensive API Intelligence Platform, empowering you to build, manage, and truly understand APIs confidently. Whether you're a solo developer with a few APIs, a fast-growing startup, or an enterprise with thousands of APIs, Treblle gives you complete visibility, intelligence, and control across your entire API estate.

Key Features

  • Real-time API Monitoring - Monitor API performance, errors, and usage patterns
  • Comprehensive Analytics - Gain insights into API consumption and performance metrics
  • Multi-language SDKs - Support for Node.js, PHP, Python, Java, Go, .NET, and Ruby
  • API Gateway Integrations - Works with AWS API Gateway, Azure, Kong, and more
  • Security & Governance - Built-in security monitoring and compliance features

πŸ›  Tech Stack

This documentation site is built with modern web technologies:

πŸ“‹ Prerequisites

  • Node.js 18.17 or later
  • pnpm (recommended) or npm/yarn

πŸš€ Quick Start

  1. Clone the repository

    git clone https://github.com/Treblle/treblle-documentation.git
    cd treblle-documentation
  2. Install dependencies

    pnpm install
  3. Generate PandaCSS styles

    pnpm prepare
  4. Start the development server

    pnpm dev
  5. Open your browser

    Visit http://localhost:3000 to see the documentation site.

πŸ“š Project Structure

treblle-documentation/
β”œβ”€β”€ app/                    # Next.js 13+ app directory
β”‚   β”œβ”€β”€ docs/              # Documentation pages
β”‚   β”œβ”€β”€ layout.tsx         # Root layout component
β”‚   └── page.mdx          # Homepage content
β”œβ”€β”€ components/            # Reusable React components
β”œβ”€β”€ public/               # Static assets
β”‚   └── _pagefind/        # Generated search index
β”œβ”€β”€ styled-system/        # Generated PandaCSS files
β”œβ”€β”€ styles/               # Custom styles and fonts
β”œβ”€β”€ theme/                # PandaCSS theme configuration
β”œβ”€β”€ next.config.ts        # Next.js configuration
β”œβ”€β”€ panda.config.ts       # PandaCSS configuration
└── package.json          # Dependencies and scripts

πŸ”§ Available Scripts

Script Description
pnpm dev Start development server
pnpm build Build for production
pnpm start Start production server
pnpm lint Run ESLint
pnpm typecheck Run TypeScript compiler
pnpm format:check Check code formatting
pnpm format:fix Fix code formatting
pnpm prepare Generate PandaCSS styles

πŸ“ Writing Documentation

Adding New Pages

  1. Create MDX files in the app/docs/ directory

  2. Add frontmatter with title and description:

    ---
    title: "Your Page Title"
    description: "Page description for SEO"
    ---
    
    # Your Content Here

Using Components

The documentation supports React components within MDX:

<CustomBox>Your highlighted content here</CustomBox>

Styling with PandaCSS

Use PandaCSS utilities for styling:

import { css } from "~styled-system/css";

const styles = css({
    backgroundColor: "blue.50",
    padding: "4",
    borderRadius: "lg",
});

πŸ” Search Functionality

The site includes static search powered by Pagefind. The search index is automatically generated during the build process and included in the public/_pagefind/ directory.

🎨 Theming & Styling

The site uses PandaCSS for styling with a custom theme configuration:

  • Colors: Defined in theme/colors.ts
  • Typography: Configured in theme/text-styles.ts
  • Tokens: Design tokens in theme/tokens.ts
  • Fonts: Google Fonts integration in styles/fonts.ts

πŸš€ Deployment

Vercel (Recommended)

This project is optimized for deployment on Vercel:

  1. Push your changes to GitHub
  2. Connect your repository to Vercel
  3. Deploy automatically on every push to main

Manual Deployment

# Build the project
pnpm build

# Start production server
pnpm start

🀝 Contributing

We welcome contributions to improve the Treblle documentation!

Getting Started

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Make your changes
  4. Test locally: pnpm dev
  5. Submit a pull request

Guidelines

  • Follow the existing code style (ESLint + Prettier configured)
  • Write clear commit messages
  • Test your changes thoroughly
  • Update documentation as needed

Reporting Issues

  • Use GitHub Issues for bug reports and feature requests
  • Include steps to reproduce for bugs
  • Provide context for feature requests

πŸ“ž Support

πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.

πŸ”— Related Links


Built with ❀️ by the Treblle Team

About

Official Treblle Documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published