Thank you for your interest in contributing to our documentation! This guide will help you get started with contributing and make sure it's a smooth collaboration.
- Fork the repository.
- Create a new branch for your changes:
git checkout -b feature/your-feature-name
- Make your changes to the documentation.
- Test your changes locally using
make dev
- Submit a pull request.
-
Ensure you have all prerequisites installed:
- Node.js (v14 or higher).
- npm, yarn, or bun.
- Make.
-
Clone your forked repository:
git clone <your-forked-repo-url> cd <repo-name>
-
Set up the development environment:
npm i vocs
npm run docs:dev
- Write in clear, concise language.
- Use active voice.
- Keep sentences and paragraphs short and focused.
- Use headings and subheadings to organize content.
- Include relevant examples and code snippets.
- Use proper Markdown syntax.
- Include code examples where appropriate:
- Use appropriate heading levels (start with h2
##
). - Add alt text to images.
- Link to other relevant documentation pages.
- Test all code examples thoroughly.
- Include comments explaining complex logic.
- Use consistent formatting.
- Provide context for when and how to use the code.
- Place all documentation pages in the
docs/pages
directory. - Use meaningful file names that reflect the content.
- Maintain a logical hierarchy in the documentation structure.
- Use kebab-case for file names (e.g.,
getting-started.md
). - Group related files in subdirectories.
- Include relevant extensions (
.md
,.mdx
).
If you encounter issues during development:
- Reinstall dependencies.
- Reinitialize the project.
- Start the development server.
If problems persist:
- Check the Vocs documentation.
- Search existing issues in our repository.
- Open a new issue with:
- A clear description of the problem.
- Steps to reproduce.
- Expected vs. actual behavior.
- Your environment details.
- Update the documentation.
- Test your changes locally.
- Push to your fork.
- Submit a pull request with:
- Clear description of changes.
- Screenshots (if applicable).
- Reference to any related issues.
If you need help with anything:
- Check our documentation.
- Search existing issues.
- Open a new issue.
- Contact the maintainers.
Thank you for contributing to making our documentation better!