Skip to content

Commit

Permalink
Tweak storybook deployment (#2648)
Browse files Browse the repository at this point in the history
* Promote the storybook, replace old website

* tweak link text

* let's not push empty commits

* This isn't actually preserved in the built types

* restore old pages

* Bring back this line

Co-authored-by: Aman Mahajan <[email protected]>
  • Loading branch information
nstepien and amanmahajan7 authored Sep 13, 2021
1 parent 4608f3b commit 39d3792
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 34 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,15 @@ jobs:
run: |
git config --global user.email '[email protected]'
git config --global user.name 'GitHub Action'
# - name: Deploy main
# if: github.ref == 'refs/heads/main'
# run: |
# git fetch origin gh-pages
# git worktree add gh-pages gh-pages
# git rm -r .
# git checkout gh-pages -- canary
# mv ../storybook-static/* .
# git add .
# git commit --allow-empty -m "main storybook deployment"
# git push -f https://adazzle:${{secrets.GITHUB_TOKEN}}@github.com/adazzle/react-data-grid.git
- name: Deploy main
- name: Deploy gh-pages
if: github.ref == 'refs/heads/main'
run: |
git fetch origin gh-pages
git worktree add gh-pages gh-pages
cd gh-pages
git rm -r --ignore-unmatch canary
mv ../storybook-static canary
git add canary
git commit --allow-empty -m "beta storybook deployment"
git rm -r .
git checkout gh-pages -- old
mv ../storybook-static/* .
git add .
git commit -m "gh-pages deployment" || echo "Nothing to commit"
git push -f https://adazzle:${{secrets.GITHUB_TOKEN}}@github.com/adazzle/react-data-grid.git
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

## v7.0.0-canary.22

- Add Grouping ([PR](https://github.com/adazzle/react-data-grid/pull/2106)). Check the new [example](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--grouping).
- Add Grouping ([PR](https://github.com/adazzle/react-data-grid/pull/2106)). Check the new [example](https://adazzle.github.io/react-data-grid/?path=/story/demos--grouping).
- (Breaking) Removed `height` and `width` props and added new `className` and `style` props. We are now using `ResizeObserver` to calculate all the grid dimensions ([PR](https://github.com/adazzle/react-data-grid/pull/2130))
- (Breaking) Removed formatterOptions. Grid now handles formatter focus internally so this prop is no longer required ([PR](https://github.com/adazzle/react-data-grid/pull/2138))
- Added support for React 17
Expand Down Expand Up @@ -217,7 +217,7 @@
- ⚠️ `height`
- ⚠️ `cellContentRenderer`
- ⚠️ `contextMenu`
- Check the [Context Menu](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--context-menu) example
- Check the [Context Menu](https://adazzle.github.io/react-data-grid/?path=/story/demos--context-menu) example
- ⚠️ `enableCellSelect`
- ⚠️ `enableCellAutoFocus`
- ⚠️ `getValidFilterValues`
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,29 @@
- Tree-shaking support and only [one npm dependency](package.json) to keep your bundles slim
- Great performance thanks to virtualization: columns and rows outside the viewport are not rendered
- Strictly typed with TypeScript
- [Keyboard accessibility](<(https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--common-features)>)
- [Keyboard accessibility](<(https://adazzle.github.io/react-data-grid/?path=/story/demos--common-features)>)
- Light and dark mode support out of the box. The light or dark themes can be enforced using the `rdg-light` or `rdg-dark` classes.
- [Frozen columns](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--common-features)
- [Column resizing](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--common-features)
- [Multi-column sorting](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--common-features)
- [Frozen columns](https://adazzle.github.io/react-data-grid/?path=/story/demos--common-features)
- [Column resizing](https://adazzle.github.io/react-data-grid/?path=/story/demos--common-features)
- [Multi-column sorting](https://adazzle.github.io/react-data-grid/?path=/story/demos--common-features)
- Click on a sortable column header to toggle between its ascending/descending sort order
- Ctrl+Click / Meta+Click to sort an additional column
- [Column spanning](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--column-spanning)
- [Row selection](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--common-features)
- [Row grouping](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--grouping)
- [Summary rows](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--common-features)
- [Dynamic row heights](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--variable-row-height)
- [No rows fallback](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--no-rows)
- [Cell formatting](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--common-features)
- [Cell editing](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--common-features)
- [Cell copy / pasting](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--all-features)
- [Cell value dragging / filling](https://adazzle.github.io/react-data-grid/canary/?path=/story/demos--all-features)
- [Column spanning](https://adazzle.github.io/react-data-grid/?path=/story/demos--column-spanning)
- [Row selection](https://adazzle.github.io/react-data-grid/?path=/story/demos--common-features)
- [Row grouping](https://adazzle.github.io/react-data-grid/?path=/story/demos--grouping)
- [Summary rows](https://adazzle.github.io/react-data-grid/?path=/story/demos--common-features)
- [Dynamic row heights](https://adazzle.github.io/react-data-grid/?path=/story/demos--variable-row-height)
- [No rows fallback](https://adazzle.github.io/react-data-grid/?path=/story/demos--no-rows)
- [Cell formatting](https://adazzle.github.io/react-data-grid/?path=/story/demos--common-features)
- [Cell editing](https://adazzle.github.io/react-data-grid/?path=/story/demos--common-features)
- [Cell copy / pasting](https://adazzle.github.io/react-data-grid/?path=/story/demos--all-features)
- [Cell value dragging / filling](https://adazzle.github.io/react-data-grid/?path=/story/demos--all-features)

## Links

- [Website](https://adazzle.github.io/react-data-grid/canary/)
- [Examples website](https://adazzle.github.io/react-data-grid/)
- [Source code](stories)
- [Old website for react-data-grid v5](https://adazzle.github.io/react-data-grid/)
- [Old website for react-data-grid v6](https://adazzle.github.io/react-data-grid/old/)
- [Changelog](CHANGELOG.md)
- [Contributing](CONTRIBUTING.md)

Expand Down

0 comments on commit 39d3792

Please sign in to comment.