Skip to main content

๐Ÿค Contributor Guide & Setup

Thank you for contributing to leetrs! This guide walks through setting up your local development environment, running tests, and submitting pull requests.


๐Ÿ› ๏ธ Local Development Setupโ€‹

1. Prerequisitesโ€‹

  • Rust Toolchain: 1.70+ (rustup)
  • Neovim: 0.9+
  • Node.js & pnpm: Required only for editing Docusaurus documentation (docs/)

2. Clone & Buildโ€‹

# Clone the repository
git clone https://github.com/shadowmkj/leetrs.git
cd leetrs

# Build debug binary
cargo build

# Run leetrs locally
cargo run -- tui

๐Ÿงช Testing & Verificationโ€‹

Run the full Rust unit and integration test suite before submitting changes:

cargo test

Check code formatting and linting:

cargo fmt --check
cargo clippy -- -D warnings

๐Ÿ“ Commit Conventionsโ€‹

We follow Conventional Commits:

  • feat(tui): add custom theme option
  • fix(picker): fix slug fallback when offline
  • docs(docusaurus): update quickstart guide

๐Ÿ“š Editing Docusaurus Documentationโ€‹

Documentation is built with Docusaurus located in docs/:

cd docs
pnpm install
pnpm start

Build static production docs:

pnpm build