You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/pull_request_template.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,4 +4,4 @@
4
4
## Checklist
5
5
-[ ] Delete items not relevant to your PR
6
6
-[ ] URL changes should add a redirect to the old URL via https://github.com/ClickHouse/clickhouse-docs/blob/main/docusaurus.config.js
7
-
-[ ] If adding a new integration page, also add an entry to the integrations list here: https://github.com/ClickHouse/clickhouse-docs/blob/main/docs/en/integrations/index.mdx
7
+
-[ ] If adding a new integration page, also add an entry to the integrations list here: https://github.com/ClickHouse/clickhouse-docs/blob/main/docs/integrations/index.mdx
Copy file name to clipboardExpand all lines: README.md
+40-30Lines changed: 40 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,25 +18,25 @@
18
18
19
19
ClickHouse is blazing fast, but understanding ClickHouse and using it effectively is a journey. The documentation is your source for gaining the knowledge you need to be successful with your ClickHouse projects and applications. [Head over to clickhouse.com/docs to learn more →](https://clickhouse.com/)
20
20
21
-
## Table of contents
21
+
## Table of contents {#table-of-contents}
22
22
23
23
-[About this repo](#about-this-repo)
24
24
-[Run locally](#run-locally)
25
25
-[Contributing](#contributing)
26
26
-[Issues](#issues)
27
27
-[License](#license)
28
28
29
-
## About this repo
29
+
## About this repo {#about-this-repo}
30
30
31
31
This repository manages the documentation for [ClickHouse](https://clickhouse.com/docs). The content is built with [Docusaurus](https://docusaurus.io/) and hosted on [Vercel](https://vercel.com). Documentation content is written in Markdown and is held in the `/docs` directory.
32
32
33
-
## Run locally
33
+
## Run locally {#run-locally}
34
34
35
35
You can run a copy of this website locally within a few steps. Some folks find this useful when contributing so they can see precisely what their changes will look like on the production site.
36
36
37
37
1. Install Git and npm. If you already have them installed, skip this step:
# [INFO] Use `npm run serve` command to test your build locally.
81
+
# ✨ Done in 105.96s.
88
82
```
89
83
90
84
1. Start the local web-server:
@@ -98,35 +92,51 @@ You can run a copy of this website locally within a few steps. Some folks find t
98
92
#
99
93
```
100
94
101
-
This command will build the documentation site and serve it locally. Once the build has finished, browse the website at [localhost:3000](http://localhost:3000/docs/en/intro).
95
+
This command will build the documentation site and serve it locally. Once the build has finished, browse the website at [localhost:3000](http://localhost:3000/docs/intro).
102
96
103
97
1. To stop the local server, press `ctrl` + `c`in the terminal window.
104
98
105
99
If you want to build a static copy of this repository that doesn't require a constant server running to view, you can use `yarn build` instead of `yarn start`. The `yarn build` will output a static copy of the website in the `/build` directory. This process takes around 10 minutes to complete on an M1 Macbook with 8GB RAM.
106
100
107
-
### Notes
101
+
1. Should you wish to make changes to documents which are located in the ClickHouse/ClickHouse repo and want to visualize what the changes made look like locally you can use `yarn copy-clickhouse-repo-docs -l` and provide a path to the ClickHouse repository on your local machine, for example:
We recommend to install rsync in order to only copy what is needed, however the script will fallback to using `cp` if rsync is not available.
110
+
111
+
Running `yarn copy-clickhouse-repo-docs` without any arguments will pull in the latest docs changes from github.
112
+
113
+
### Notes {#notes}
108
114
109
115
Here are some things to keep in mind when building a local copy of the ClickHouse docs site.
110
116
111
-
#### Build-time
117
+
#### Build-time {#build-time}
112
118
113
119
Due to the complex structure of this repo, the docs site can take some time to build locally. As a benchmark, it takes ~3 minutes to build on an M1 Macbook with 8GB RAM.
114
120
115
-
#### Redirects
121
+
#### Redirects {#redirects}
116
122
117
-
Due to how the local server is built, redirects will not work. For example, visiting `clickhouse.com/docs` on the production site will lead you to `clickhouse.com/docs/en/intro`. However, on a local copy of the site, you will see a 404 page if you try to visit `localhost:8000/docs`.
123
+
Due to how the local server is built, redirects will not work. For example, visiting `clickhouse.com/docs` on the production site will lead you to `clickhouse.com/docs/intro`. However, on a local copy of the site, you will see a 404 page if you try to visit `localhost:8000/docs`.
118
124
119
-
## Contributing
125
+
## Contributing {#contributing}
120
126
121
127
Want to help out? Contributions are always welcome! If you want to help out but aren't sure where to start, check out the [issues board](https://github.com/clickhouse/clickhouse-docs/issues).
122
128
123
-
### Pull requests
129
+
### Pull requests {#pull-requests}
124
130
125
131
Please assign any pull request (PR) against an issue; this helps the docs team track who is working on what and what each PR is meant to address. If there isn't an issue for the specific _thing_ you want to work on, quickly create one and comment so that it can be assigned to you. One of the repository maintainers will add you as an assignee.
126
132
127
133
Check out the GitHub docs for a refresher on [how to create a pull request](https://docs.github.com/en/desktop/working-with-your-remote-repository-on-github-or-github-enterprise/creating-an-issue-or-pull-request-from-github-desktop).
128
134
129
-
### Tests and CI/CD
135
+
### Style guidelines
136
+
137
+
For style guidelines, see ["Style guide"](/contribute/style-guide.md).
138
+
139
+
### Tests and CI/CD {#tests-and-cicd}
130
140
131
141
There are five workflows that run against PRs in this repo:
132
142
@@ -138,7 +148,7 @@ There are five workflows that run against PRs in this repo:
138
148
| [Scheduled Vercel build](https://github.com/ClickHouse/clickhouse-docs/blob/main/.github/workflows/scheduled-vercel-build.yml) | Builds the site every day at 00:10 UTC and hosts the build on Vercel. |
139
149
| [Trigger build](https://github.com/ClickHouse/clickhouse-docs/blob/main/.github/workflows/trigger-build.yml) | Uses the [peter-evans/repository-dispatch@v2](https://github.com/peter-evans/repository-dispatch) workflow to create a repository dispatch. |
140
150
141
-
### Quick contributions
151
+
### Quick contributions {#quick-contributions}
142
152
143
153
Have you noticed a typo or found some wonky formatting? For small contributions like these, it's usually faster and easier to make your changes directly in GitHub. Here's a quick guide to show you how the GitHub editor works:
144
154
@@ -150,33 +160,33 @@ Have you noticed a typo or found some wonky formatting? For small contributions
150
160
151
161
1. Once you're in GitHub, click the pencil icon to edit this page:
1. In the **Propose changes** popup, enter a descriptive title to explain the changes you just made. Keep this title to 10 words or less. If your changes are fairly complex and need further explanation, enter your comments into the **Extended description** field.
161
171
1. Make sure **Create a new branch** is selected, and click **Propose changes**:
If you haven't mentioned your changes to anyone yet, leave the **Reviewers** section blank.
171
181
172
182
1. Click **Create pull request**.
173
183
174
184
At this point, your pull request will be handed over to the docs team, who will review it and suggest or make changes where necessary.
175
185
176
-
## Issues
186
+
## Issues {#issues}
177
187
178
188
Found a problem with the Clickhouse docs site? [Please raise an issue](https://github.com/clickhouse/clickhouse-docs/issues/new). Be as specific and descriptive as possible; screenshots help!
179
189
180
-
## License
190
+
## License {#license}
181
191
182
192
This work is licensed under a [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](http://creativecommons.org/licenses/by-nc-sa/4.0/).
0 commit comments