Contributing to NepaliKit¶
Thanks for your interest in contributing! There are many ways to do so.
Ways to Contribute¶
- Report bugs: Open a GitHub issue
- Suggest features: Open a discussion
- Fix bugs: Submit a PR
- Add features: Submit a PR
- Improve docs: Submit a PR
- Write tutorials: Share your examples
Development Setup¶
Run tests¶
Building the Documentation¶
The documentation uses MkDocs with the Material theme. To preview it locally:
# Install mkdocs and theme
uv sync --extra dev
# Serve docs (auto-reload on changes)
uv run mkdocs serve
Then open http://localhost:8000 in your browser.
Contribute to Documentation¶
All documentation files reside in the docs/ folder:
docs/usage/*- Feature usage guidesdocs/examples/*- Code examplesdocs/api/*- API references (describes functions, parameters, return values)docs/index.md- Root page
To contribute:
- Find the appropriate file or create a new one
- Write in Markdown format
- Add the page to the
navinmkdocs.yml - Build and verify the docs with
uv run mkdocs build
Code Style¶
- PEP 8 compliant
- Type hints for public functions (where applicable)
- Docstrings in Google style
- tests for new features
Pull Request process¶
- Fork the repository
- Create a feature branch
- Make your changes (include tests)
- Run tests locally:
pytest - Run lint and type checks:
uv run ruff check nepalikit/ && uv run mypy nepalikit/ - Build the docs:
uv run mkdocs build - Submit PR with a descriptive summary
License¶
MIT, see LICENSE.