This repository contains the documentation content for the Uniswap Developer Portal.
- Navigate to the file you want to edit
- Click the pencil icon ("Edit this file")
- Make your changes
- Scroll down and add a commit message describing your changes
- Select "Create a new branch for this commit and start a pull request"
- Submit the pull request for review
If you need to preview changes locally:
# Clone this repo
git clone https://github.com/Uniswap/docs-content.git
# Or, work within the universe monorepo
git clone --recurse-submodules https://github.com/Uniswap/universe.git
cd universe
bun install
bun dev-portal dev├── meta.json # Root navigation configuration
├── index.mdx # Docs homepage
├── getting-started/ # Getting started guides
│ ├── meta.json # Section navigation
│ └── *.mdx # Content pages
└── trading-api/ # Trading API documentation
└── *.mdx # Content pages
Each .mdx file should include frontmatter at the top:
---
title: "Page Title"
description: "Brief description for SEO and previews"
---The meta.json files control sidebar navigation:
{
"title": "Section Title",
"pages": ["page-slug", "another-page"]
}- Page slugs reference file names without
.mdxextension - Use
---Section Name---for section separators - Order in the array determines sidebar order
Changes merged to main trigger an automated process:
- GitHub Action notifies the universe monorepo
- A PR is created to update the submodule reference
- After review and merge, changes deploy to production