We welcome your contributions to the DITA-OT documentation.
Thanks for your interest — here’s how you can help us “write the docs.”
If you find a bug or would like to suggest a new topic for the DITA-OT docs, create an issue:
- Search dita-ot/docs/issues to ensure your issue hasn’t already been reported.
- Create an issue. If it’s a bug, provide steps to recreate the issue.
- Send a pull request. If you know how to fix the issue yourself, submit a pull request with the proposed changes.
Read on for details…
Good pull requests—corrections, improvements, new topics—are a great help. They should remain focused in scope and shouldn’t contain unrelated commits.
Follow this process to ensure your contribution meets our expectations and increase the chances that your changes will be included:
-
Fork the docs repository, clone your fork, and configure the remotes:
# Clone your docs fork into the current directory git clone https://github.com/<your-username>/docs # Navigate to the newly cloned directory cd docs # Assign the original repo to a remote called "upstream" git remote add upstream https://github.com/dita-ot/docs
-
If you cloned a while ago, get the latest changes from upstream:
git checkout develop git pull upstream develop
-
Create a new feature branch (off the upstream project’s
develop
branch) for your new feature, change, or fix:git checkout -b your-new-branch
-
Commit your changes in logical chunks.
Please be sure to follow the coding guidelines and best practices outlined in the docs project wiki:
Use Git’s interactive rebase feature to tidy up your commits, if necessary, before making them public.
-
Indicate that you agree to the terms of the Apache License Version 2.0 by "signing off" your contribution with
git commit -s
.This adds a line with your name and e-mail address to your Git commit message:
Signed-off-by: Jane Doe <jane.doe@example.com>
-
Locally merge (or rebase) the upstream
develop
branch into your feature branch:git pull [--rebase] upstream develop
-
Push your feature branch up to your fork:
git push origin your-new-branch
-
Open a pull request with a clear title and description.
Pro tip: If there’s no corresponding issue for the changes you're proposing, there’s no need to create one first. You can describe the problem and provide the solution all in one step. (Under the hood, pull requests are just a special type of issue.)