Skip to content

Official documentation for Swellchain. This repository contains technical guides, tutorials, and reference materials for developers building on Swellchain.

Notifications You must be signed in to change notification settings

SwellNetwork/swell-chain-docs

Repository files navigation

📚 Swellchain Docs

Next.js TypeScript Tailwind CSS Fumadocs

Overview

This repository contains the official documentation for Swellchain, a restaking focused L2 built with the OP Stack. The repo provides comprehensive guides, API references, and technical specifications for developers integrating with Swellchain.

🛠️ Getting Started

Prerequisites

  • Node.js 18.x or later
  • pnpm (recommended), npm, or yarn

Installation

  1. Clone the repository:
git clone https://github.com/swellnetwork/swell-chain-docs.git
cd swell-chain-docs
  1. Install dependencies:
pnpm install
# or
npm install
# or
yarn install
  1. Start the development server:
pnpm dev
# or
npm run dev
# or
yarn dev
  1. Open http://localhost:3000 in your browser to view the documentation.

📖 Documentation Structure

  • /content - Main documentation content in MDX format
  • /components - Reusable React components
  • /lib - Utility functions and shared logic
  • /public - Static assets and images

🔧 Development

  • pnpm build - Build the production documentation
  • pnpm start - Start the production server
  • pnpm lint - Run ESLint
  • pnpm type-check - Run TypeScript type checking

🤝 Contributing

We welcome contributions! Feel free to submit a PR or open an issue.

🔗 Links

LLMs Integration

This project includes support for the /llms.txt specification, which helps language models better understand the documentation structure.

Two files are generated:

  1. /llms.txt - A structured file that follows the llms.txt specification

    • Includes an overview of Swellchain
    • Provides links to markdown versions of all documentation pages, organized by category
    • Clean, machine-readable content optimized for LLM context
  2. /llms-full.txt - A comprehensive file containing all documentation content

    • Contains the complete content of all documentation files in a single document
    • Includes a table of contents organized by category
    • Optimized for LLMs with larger context windows
    • Allows LLMs to search through the entire documentation without following links

The markdown versions of all pages are also generated and served alongside the HTML versions with .md appended to the original URL.

To generate these files manually, run:

pnpm generate:llms-txt

For more information about the llms.txt specification, visit llmstxt.org.


Made with ❤️ by Swell

About

Official documentation for Swellchain. This repository contains technical guides, tutorials, and reference materials for developers building on Swellchain.

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •