There are multiple ways to help make Timescale better, including contributing to the documentation. All of our documentation is available to use and review with GitHub.
You can make contributions to the documentation by creating a fork of the repository. However, if you have write access to the repository, use a branch instead. Some of our automation does not work correctly on forks.
-
Make sure you have a GitHub account, and that you're signed in.
-
Navigate to the Timescale documentation repo, click the
Fork
button in the top-right corner, and select the account you want to use. -
Wait for GitHub to create your fork and redirect you.
-
Clone the repository to your local machine. To find this URL, click the green
Code
button and copy the HTTPS URL:git clone https://github.com/<username>/docs.git
-
List the current remote branches:
git remote -v
This command should list two remotes, both marked
origin
, like this:origin https://github.com/<username>/docs.git (fetch) origin https://github.com/<username>/docs.git (push)
The
origin
remotes are your own fork, and you can do whatever you want here without changing the upstream repository. -
Add the docs repo as an upstream:
git remote add upstream https://github.com/timescale/docs.git
-
Check:
git remote -v
This command should now have the same two
origin
remotes as before, plus two more labelledupstream
, like this:origin https://github.com/<username>/docs.git (fetch) origin https://github.com/<username>/docs.git (push) upstream https://github.com/timescale/docs.git (fetch) upstream https://github.com/timescale/docs.git (push)
-
Fetch the branches in the upstream repository:
git fetch upstream
-
Merge the changes from the upstream
latest
branch, into your fork'slatest
branch:git merge upstream/latest
-
Create a new branch for the work you want to do. Make sure you give it an appropriate name, and include your username:
git checkout -b update-readme-username
-
Make your changes.
-
Add the updated files to your commit:
git add .
-
Commit your changes:
git commit -m "Commit message here"
-
Push your changes:
git push
If git prompts you to set an upstream in order to push, use this command:
git push --set-upstream origin <branchname>
-
Create a pull request (PR) by navigating to https://github.com/timescale/docs and clicking
Compare and Create Pull Request
. Write an informative commit message detailing your changes, choose reviewers, and save your PR. If you haven't yet finished the work you want to do, make sure you create a draft PR by selecting it from the drop down box in the GitHub web UI. This lets your reviewers know that you haven't finished work yet, while still being transparent about what you are working on, and making sure we all understand current progress.
When you have checked out the repo, if you want to keep working on things, you need to make sure that your local copy of the repo stays up to date. If you don't do this, you will end up with merge conflicts.
-
Check out your fork's
latest
branch:git checkout latest
You get a message like this:
Switched to branch 'latest' Your branch is up to date with 'origin/latest'.
BEWARE! This is usually a lie!
-
Fetch the branches in the upstream repository:
git fetch upstream
-
Merge the changes from the upstream
latest
branch, into your fork'slatest
branch:git merge upstream/latest
-
If you are continuing work you began earlier, check out the branch that contains your work. For new work, create a new branch. Doing this regularly as you are working means you keep your local copies up to date and avoid conflicts. You should do it at least every day before you begin work, and again whenever you switch branches.
When you create a pull request, a member of the documentation team will review it for accuracy and adherance to our standards. You can see a list of the things that reviewers check for in the pull request template.
Timescale has comprehensive writing and style standards, that are constantly being updated and improved. For the current guidelines, see contributing to documentation.