Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Contributing to Livepeer Documentation

Welcome! This guide will help you contribute to the Livepeer documentation.

For optional maintainer pilot workflows using visual-explainer, see the canonical docs-guide section: Optional Visual-Explainer Workflows (Pilot).

Quick Start

  1. Read the Style Guide - v2/resources/documentation-guide/style-guide.mdx
  2. Install Git Hooks - See Git Hooks Documentation
  3. Fork and Clone - Create your fork and clone it locally
  4. Make Changes - Follow the style guide and component library
  5. Test Locally - Run lpd dev to preview changes (auto-installs/updates hooks). If PATH is not updated yet, use bash lpd dev.
  6. Submit PR - Open a pull request with your changes

Essential Reading

Before making any changes, read:

  1. Style Guide - Production-grade styling guidelines
  2. Component Library - Available components
  3. Git Hooks - Pre-commit hook documentation
  4. Mintlify Behavior Guide - Mintlify-specific patterns

Git Hooks

This repository uses git hooks to enforce quality standards. You must install them:

./.githooks/install.sh

See Git Hooks Documentation for details.

Development Setup

# Install Mintlify CLI
npm i -g mintlify

# Run development server
lpd dev
# or without PATH setup
bash lpd dev

# Optional: add LP CLI script ignore rules
cp tools/cli/lpdignore.example .lpdignore

Style Guide Rules

Critical Rules:

  • ✅ Use CSS Custom Properties: var(--accent), var(--text), etc.
  • ❌ NEVER use ThemeData from themeStyles.jsx (deprecated)
  • ❌ NEVER hardcode hex colors that should adapt to theme
  • ✅ Use absolute imports: /snippets/components/...
  • ✅ Mintlify components are global (no imports needed)
  • ✅ React hooks are global (no imports needed)

Testing

Before submitting:

  • Run lpd dev (or bash lpd dev) and verify pages render correctly
  • Test in both light and dark modes
  • Check all links work
  • Verify no console errors
  • Ensure git hooks pass (they run automatically on commit)

Resources