Thank you for your interest in contributing to the Ktor Documentation repository! We are excited to have you on board as a contributor.
The core of the documentation lives inside the /topics
folder and is written in Markdown and XML.
You are welcome to fix typos, reword or add new content, update outdated topics and code snippets or suggest new features.
To get an overview of the project, read the README file.
If you'd like to contribute, but don't know where to start, take a look at the open issues on YouTrack.
This project is built with Writerside. You can get Writerside as a standalone tool or by installing the Writerside plugin into your JetBrains IDE, which is our personal preference.
-
If this is your first time contributing to Ktor Docs, go to the official documentation repository and click on the Fork button to fork the repository to your personal account.
-
Clone the forked repository to your local machine:
git clone git@github.com:YOUR-USERNAME/ktor-documentation.git
-
Add the original Ktor docs repository as a "Git remote" executing this command:
git remote add upstream https://github.com/ktorio/ktor-documentation.git
-
Create a new branch from
main
:git checkout -b your_branch_name upstream/main
-
Make changes.
- If you want to add code examples to a topic, consider creating a runnable code example in codeSnippets and add a reference of it to the relevant topic.
- Inspect your code for problems and make sure it is well formatted.
- For elements usage and syntax, refer to the Writerside documentation.
-
Commit and push your changes.
When you are ready to submit your changes, open a pull request and include the following information:
- A short description.
- Relevant links, such as a link to a YouTrack issue or a community channel thread.
- Enable the checkbox to allow maintainer edits so the branch can be updated for a merge.
Once you submit your PR, a Ktor team member will review your proposal. We may ask for changes to be made or add minor edits ourselves.
Once your PR is merged, your contributions will be publicly visible on the Ktor docs. We thank you for your efforts!