Skip to content

Commit 9a8f208

Browse files
authored
Merge pull request hypeserver#486 from hypeserver/auto-gh-pages-deployment
add missing doc + gh pages deployment
2 parents af0ed86 + 4c6b4da commit 9a8f208

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.github/workflows/demo.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Demo - Build and Deploy
2+
on:
3+
push:
4+
tags:
5+
- release/*
6+
jobs:
7+
demo-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/[email protected]
12+
- name: Install
13+
run: yarn install
14+
- name: Build
15+
run: yarn build
16+
- run: cp -R dist styleguide/
17+
- run: cp -R demo styleguide/
18+
- name: Deploy 🚀
19+
uses: JamesIves/[email protected]
20+
with:
21+
branch: gh-pages
22+
folder: styleguide

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ node_modules/
55
*.orig
66
lib/
77
NOTES.txt
8-
styleguide/
98
dist/
9+
styleguide/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ renderStaticRangeLabel(`DefinedRange`)| Function | | Callback f
140140
staticRanges(`DefinedRange`, `DateRangePicker`) | Array | [default preDefined ranges](https://github.com/hypeserver/react-date-range/blob/master/src/defaultRanges.js) | -
141141
inputRanges(`DefinedRange`, `DateRangePicker`) | Array | [default input ranges](https://github.com/hypeserver/react-date-range/blob/master/src/defaultRanges.js) | -
142142
ariaLabels | Object | {} | inserts aria-label to inner elements
143+
dayContentRenderer | Function | null | Function to customize the rendering of Calendar Day. given a date is supposed to return what to render.
143144

144145
*shape of range:
145146
```js

0 commit comments

Comments
 (0)