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
docmdand 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 docmdInstall Dependencies:
npm install
Development Workflow
docmd uses Node.js and npm.
Make Your Changes:
- Fix bugs or add features in the
/srcdirectory. - Add or update tests in the
/testsdirectory (if applicable). - Update or add documentation in the
/docsdirectory to reflect your changes.
- Fix bugs or add features in the
Link for Local Testing:
To use your development version ofdocmdas a global command-line tool on your system:npm linkThis allows you to run
docmdfrom any directory and test your changes.Test Your Changes:
- Run automated tests with
npm test(if available). - Test your changes by running
docmd buildordocmd dev(which will usedocmditself to build its own documentation located indocs/).
- Run automated tests with
Code Style:
- Follow the existing code style and formatting.
- Consider running
npm run lintto check for style issues (if set up).
Environment Setup
To enable live change tracking for internal files during development, set the DOCMD_DEV environment variable:
- Temporarily: Run
export DOCMD_DEV=truein your terminal before starting the dev server. - Permanently: Add
export DOCMD_DEV=trueto your~/.zshrcfile and runsource ~/.zshrc.
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 createdSubmit a Pull Request:
Go to your fork on GitHub and open a pull request to themainbranch of the originalmgks/docmdrepository. 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!