I appreciate your consideration to contribute to this project! This document is a guide to help make your contribution easier and more effective.
- Node.js (v20 or later recommended)
-
Clone the repository
git clone https://github.com/r74tech/docusaurus-plugin-panzoom.git
-
Move to the directory and install dependencies
cd docusaurus-plugin-panzoom npm install
The main scripts used during development are:
npm run build: Builds the TypeScript code.npm run prepublishOnly: Runs the build script before publishing.
If you find a bug or have a feature request, please open an issue on GitHub.
- Check the Issue Tracker for existing issues.
- When requesting a new issue or feature, please provide as much detail as possible.
-
Check the Issue Tracker, make sure if there is anything relevant to the problem you are trying to solve.
-
Keep the repository you did folk up to date.
git fetch upstream git rebase upstream/main
-
Create a new branch.
git switch -c feature/your-feature-name
-
Make changes to the code and run tests to make sure everything is working properly.
-
Write a clear commit message following the Conventional Commits style.
- Commit messages should concisely describe the changes you made.
- Commits should be split into appropriate chunks, and we recommend using the Conventional Commits style. Below are the available Conventional Commits types:
feat: a commit that adds new functionality (triggers a MINOR version bump).fix: a commit that fixes a bug (triggers a PATCH version bump).docs: a commit that adds or improves documentation.style: changes that do not affect the meaning of the code.refactor: a code change that neither fixes a bug nor adds a feature.perf: a commit that improves performance, without functional changes.test: adding missing tests or correcting existing tests.build: changes that affect the build system or external dependencies.ci: changes to our CI configuration files and scripts.chore: other changes that don't modify src or test files.revert: reverts a previous commit.
Note
If there is a single commit in the pull request, the commit message must be the same as a pull request title. Because the merge strategy in this repository is "Squash and merge". When you "Squash and merge" a pull request on a branch that has only one commit, the default commit message will be the commit message in that branch.
For commits that introduce breaking changes, add an exclamation mark after the type and include a "BREAKING CHANGE:" section in the commit body:
feat!: completely revamp the API
BREAKING CHANGE: The new API is not compatible with previous versions
- Write the title of pull request in the the Conventional Commits style.
- Create a pull request and include the following information:
- Description of the change
- Purpose of the change
- Relevant issue number (if any)
This project uses semantic-release for automated version management and package publishing. The release process is triggered automatically when changes are merged into the main branch.
fix:commits trigger a PATCH version bump (e.g., 1.0.0 → 1.0.1)feat:commits trigger a MINOR version bump (e.g., 1.0.0 → 1.1.0)- Commits with
BREAKING CHANGE:trigger a MAJOR version bump (e.g., 1.0.0 → 2.0.0)
This project is based on MIT License.