Contributing to docmd
Contributing to docmd
Thank you for your interest in contributing to docmd
! We welcome contributions from the community to help make docmd
even better. Whether it’s reporting a bug, suggesting a feature, improving documentation, or writing code, your help is appreciated.
How to Contribute
There are many ways to contribute to docmd
:
- Reporting Bugs: If you find a bug, please open an issue on our GitHub Issues page. Provide as much detail as possible, including steps to reproduce, expected behavior, and actual behavior.
- Suggesting Features: Have ideas for improvements? Open an issue and describe what you’d like to see.
- Improving Documentation: The documentation you’re reading now (this site itself!) is built with
docmd
and lives in thedocs/
directory of the repository. - Writing Code: If you’re interested in fixing bugs or implementing new features, read on for development setup instructions.
Development Setup
To set up docmd
for local development:
-
Fork the Repository: Click the “Fork” button on the docmd GitHub page to create your own copy.
-
Clone Your Fork:
git clone https://github.com/YOUR_USERNAME/docmd.git cd docmd
-
Install Dependencies:
npm install
Development Workflow
docmd
uses Node.js and npm.
-
Make Your Changes:
- Fix bugs or add features in the
/src
directory. - Add or update tests in the
/tests
directory (if applicable). - Update or add documentation in the
/docs
directory to reflect your changes.
- Fix bugs or add features in the
-
Link for Local Testing: To use your development version of
docmd
as a global command-line tool on your system:npm link
This allows you to run
docmd
from any directory and test your changes. -
Test Your Changes:
- Run automated tests with
npm test
(if available). - Test your changes by running
docmd build
ordocmd dev
(which will usedocmd
itself to build its own documentation located indocs/
).
- Run automated tests with
-
Code Style:
- Follow the existing code style and formatting.
- Consider running
npm run lint
to check for style issues (if set up).
Pull Request Process
Once you’re satisfied with your changes:
-
Commit Your Changes:
git add . git commit -m "Brief description of your changes"
-
Push to Your Fork:
git push origin main # or the branch you created
-
Submit a Pull Request: Go to your fork on GitHub and open a pull request to the
main
branch of the originalmgks/docmd
repository. Provide a clear description of your changes. -
Code Review: Maintainers will review your PR and may suggest changes or improvements. Please be responsive to feedback.
Code of Conduct
Please be respectful and considerate when interacting with others in the project. We aim to foster an inclusive and welcoming community.
Thank you for helping make docmd
a great tool for documentation!