Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
# Contribute to Temporal Documentation Locally

1. **Clone the Repository**
1. **Fork the Repository**
Create a fork of this repository.
*This creates a copy of this repository to your github account*

2. **Clone the Repository**
Run the following commands in your terminal to clone the repository and navigate into it:
```bash
git clone https://github.com/YOUR_USERNAME/documentation.git
cd documentation
```

2. **Open the Repository in Your IDE**
3. **Open the Repository in Your IDE**
Open the project in your preferred IDE, such as Visual Studio Code. Locate the `/docs` directory, which contains all the content served on `docs.temporal.io`. Identify the changes you want to make.

3. **Create a New Branch**
4. **Create a New Branch**
If you're creating a pull request, create a new branch and switch to it:
```bash
git checkout -b my-documentation-contribution
```

4. **Follow the Style Guide**
5. **Follow the Style Guide**
Refer to [STYLE.md](./STYLE.md) for the documentation style guidelines.

5. **Preview Your Changes Locally**
6. **Preview Your Changes Locally**
Run the following commands to preview the site locally:
```bash
yarn # Install site dependencies
yarn start # Start the website on a local port
yarn build # Check for build warnings or errors
```

6. **Stage Your Changes**
7. **Stage Your Changes**
Use the following commands to stage and commit your changes:
```bash
git status # Check the status of your changes
Expand All @@ -36,7 +40,7 @@
git push origin my-documentation-contribution # Push changes
```

7. **Create a Pull Request**
8. **Create a Pull Request**
- After pushing, GitHub provides a link in the terminal to create a PR. Open the link or navigate to your fork on GitHub.
- Click the option to create a Pull Request (PR).
- Provide a descriptive PR title and explanation.
Expand Down
Loading