Welcome to the Angor Docs repository! Your contributions help make our documentation more comprehensive and user-friendly. Whether you're reporting issues, adding new guides, or refining existing content, this guide will help you get started.
Ensure you have the following tools installed before contributing:
- Node.js: Required for managing dependencies.
- pnpm: Used for project scripts and dependency management.
Run the following commands to install the dependencies and set up your environment:
pnpm install
To start contributing, fork the repository and clone it to your local machine:
git clone https://github.com/block-core/angor-docs.git
cd angor-docs
If you encounter a bug, typo, or broken link, open an issue in the issue tracker. Include the following details:
- A clear and descriptive title.
- Steps to reproduce the issue.
- Screenshots or logs, if applicable.
Have ideas to improve the documentation? Open an issue describing:
- The enhancement you propose.
- The benefits it provides to users.
- Any potential challenges or limitations.
To create a new guide:
-
Run the following command, replacing
"Guide File Name"
with the name of your guide:pnpm run new-guide "Guide File Name"
-
This will create a new file in the
src/content/docs/guides
directory with placeholder content. -
Edit the file to include your content.
-
Preview the changes locally by running:
pnpm run dev
-
Open a pull request with your changes.
Navigate to the file you want to update in the src/content/docs
directory. Make your changes, preview them locally, and submit a pull request.
- Use clear and descriptive commit messages.
- Follow this format:
- feat: For new features.
- fix: For bug fixes.
- docs: For documentation updates.
Example:
git commit -m "docs: add new guide for setup instructions"
-
Use Prettier for consistent formatting.
-
Run the following command before committing your changes:
pnpm prettier --write .
To preview the documentation locally:
-
Start the development server:
pnpm run dev
-
Open your browser and navigate to
http://localhost:4321
.
pnpm run dev
: Start the local development server.pnpm run build
: Build the documentation for production.pnpm run lint
: Lint the codebase.
Join our community on Discord for discussions, questions, and support.
If you need assistance or want to suggest new features, feel free to contact the maintainers or open an issue.
This repository is licensed under the MIT License. See the LICENSE file for details.
Thank you for contributing to Angor Docs! 🎉 Your efforts help make this project better for everyone.