Skip to content

Commit 97ed6a6

Browse files
authored
docs update (#652)
1 parent 8a1cf31 commit 97ed6a6

File tree

5 files changed

+19
-3
lines changed

5 files changed

+19
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
The home of the ClickHouse design system and component library. Click UI is in very early development and subject to change, we do not recommend using it for production purposes.
44

5-
### Using Click UI in an external app
5+
## Using Click UI in an external app
66

77
Click UI has been tested in NextJS, Gatsby, and Vite. If you run into problems using it in your app, please create an issue and our team will try to answer.
8+
89
1. Navigate to your app's route and run
910
`npm i @clickhouse/click-ui`
1011
or
1112
`yarn add @clickhouse/click-ui`
1213
2. Make sure to wrap your application in the Click UI `ClickUIProvider`, without doing this, you may run into issues with styled-components. Once thats done, you'll be able to import the individual components that you want to use on each page. Here's an example an `App.tsx` in NextJS.
1314

14-
```ts
15+
```typescript
1516
import { ClickUIProvider, Text, ThemeName, Title, Switch } from '@clickhouse/click-ui'
1617

1718
function App() {
@@ -34,7 +35,7 @@ function App() {
3435
export default App
3536
```
3637

37-
### To develop this library locally 🚀
38+
## To develop this library locally 🚀
3839

3940
1. Clone this repo, cd into the `click-ui` directory
4041
2. To install dependencies, run `npm i`
@@ -43,3 +44,9 @@ export default App
4344
5. To run Storybook locally, run `npm run storybook` and navigate to https://localhost:6006
4445

4546
Enjoy!
47+
48+
## Releases and Versions
49+
50+
New versions and release notes are available at [GitHub Releases](https://github.com/ClickHouse/click-ui/releases).
51+
52+
To create a new release and publish a new version, follow the instructions in [publish.md](./docs/publish.md).

docs/images/publish1.png

111 KB
Loading

docs/images/publish2.png

75.1 KB
Loading

docs/images/publish3.png

61.1 KB
Loading

docs/publish.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# How to create new release and publish a new Click-UI package version to NPM
2+
3+
1. Navigate to the [Release page](https://github.com/ClickHouse/click-ui/releases) and check the latest release. It might already contain the changes you need, making a new version unnecessary.
4+
2. Draft a [new release](https://github.com/ClickHouse/click-ui/releases/new).
5+
3. Create a tag for the release. The new version should be an increment from the latest released version. ![Create tag instruction](./images/publish1.png)
6+
4. Generate release notes. ![Release notes instruction](./images/publish2.png)
7+
5. Publish the release. ![Release](./images/publish3.png)
8+
6. Wait until the [GitHub Actions](https://github.com/ClickHouse/click-ui/actions) complete.
9+
7. Verify that the new version is published on [npm](https://www.npmjs.com/package/@clickhouse/click-ui).

0 commit comments

Comments
 (0)