Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
docs: Complete Documentation Rewrite (jquense#2108)
Browse files Browse the repository at this point in the history
Co-authored-by: huangyuning <huangyuning@vv.cn>
Co-authored-by: aLeSangK <le.sang@access-company.com>
Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Dhruv Goel <dhruv.goel92@gmail.com>
Co-authored-by: Matheus Mello <mat.mello93@gmail.com>
Co-authored-by: Pietro Coelho <pietrofxq@gmail.com>
Co-authored-by: Old_dream <yuninghuang8@gmail.com>
  • Loading branch information
8 people committed Mar 15, 2022
1 parent af82bd7 commit e5721ef
Show file tree
Hide file tree
Showing 344 changed files with 15,236 additions and 69,687 deletions.
18 changes: 0 additions & 18 deletions .babelrc

This file was deleted.

3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
not IE 11
last 2 versions
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
dist/
lib/
.*
21 changes: 0 additions & 21 deletions .eslintrc

This file was deleted.

34 changes: 34 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": ["jason/react", "prettier"],
"plugins": ["react-hooks"],
"env": {
"node": true,
"browser": true,
"es6": true
},
"rules": {
"global-require": "off",
"no-console": [
"error",
{
"allow": ["warn", "error", "info"]
}
],
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
}
}
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "\U0001F680 New feature proposal"
description: Propose a new feature to be added to Big Calendar
labels: ['feature request']
body:
- type: markdown
attributes:
value: |
Thanks for your interest in the project and taking the time to fill out this feature request!
- type: textarea
id: feature-description
attributes:
label: Clear and concise description of the problem
description: As a developer using Big Calendar I want [goal / wish] so that [benefit]
validations:
required: true
- type: textarea
id: suggested-solution
attributes:
label: Suggested solution
description: 'In module [xy] we could provide following implementation...'
validations:
required: true
- type: textarea
id: alternative
attributes:
label: Alternative
description: Clear and concise description of any alternative solutions or features you've considered.
- type: textarea
id: additional-context
attributes:
label: Additional context
description: Any other context or screenshots about the feature request here.
- type: checkboxes
id: checkboxes
attributes:
label: Validations
description: Before submitting the issue, please make sure you do the following
options:
- label: Read the [docs](http://jquense.github.io/react-big-calendar/examples/index.html).
required: true
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
required: true
- type: checkboxes
id: pr
attributes:
label: Would you like to open a PR for this feature?
description: Before starting to work on PR it is recommended to get maintainers approval. The fastest, and most appreciated way to have feature included is to create a pull request with working, tested code and we will help get it merged. Don't be scared to open a pull request that isn't completed and ask for input. We're happy to give direction!
options:
- label: I'm willing to open a PR
required: false
89 changes: 89 additions & 0 deletions .github/ISSUE_TEMPLATE/new-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: 🐞 Big Calendar Issue
description: Create a report for Big Calendar
labels: ['bug']
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: checkboxes
id: qa
attributes:
label: Check that this is really a bug
description: For Q&A open go to [StackOverflow](https://stackoverflow.com/)
options:
- label: I confirm
required: true
- type: input
id: reproduction
attributes:
label: Reproduction link
description: Please provide a link to a repo that can reproduce the problem you ran into. You can fork our [Issue Template](https://codesandbox.io/s/react-big-calendar-example-v9wdyd) in codesandbox to get start. A reproduction is required unless you are absolutely sure that the issue is obvious and the provided information is enough to understand the problem. If a report is vague (e.g. just a generic error message) and has no reproduction, it will receive a "missing demo" label. If no reproduction is provided after 3 days, it will be auto-closed.
placeholder: 'https://codesandbox.io/..'
validations:
required: true
- type: textarea
id: descr
attributes:
label: Bug description
description: A clear and concise description of what the bug is
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected Behavior
description: A concise description of what you're experiencing
validations:
required: false
- type: textarea
id: actual
attributes:
label: Actual Behavior
description: A concise description of what you expected to happen.
validations:
required: false
- type: input
id: bigcalendar
attributes:
label: react-big-calendar version
description: Exact release version or commit hash
placeholder: e.g 0.39.3
validations:
required: true
- type: input
id: reactversion
attributes:
label: React version
description: Exact release version or commit hash
placeholder: e.g 17.0.2
validations:
required: true
- type: input
id: browser
attributes:
label: Platform/Target and Browser Versions
description: Platform client you are targeting such as macOS, Windows, Cordova, iOS, Android, Chrome, etc.
placeholder: e.g macOS Safari 14.1
validations:
required: true
- type: checkboxes
id: checkboxes
attributes:
label: Validations
description: Before submitting the issue, please make sure you do the following
options:
- label: Read the [docs](http://jquense.github.io/react-big-calendar/examples).
required: true
- label: Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
required: true
- label: Make sure this is a react-big-calendar issue and not an implementation issue
required: true
- type: checkboxes
id: pr
attributes:
label: Would you like to open a PR for this bug?
description: Before starting to work on PR it is recommended to get maintainers approval. The fastest, and most appreciated way to have your issue fixed is to create a pull request with working, tested code and we will help get it merged. Don't be scared to open a pull request that isn't completed and ask for input. We're happy to give direction!
options:
- label: I'm willing to open a PR
required: false
5 changes: 5 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

The best way to propose a feature is to open an issue first and discuss your ideas there before implementing them.

Always follow the [contribution guidelines](https://github.com/jquense/react-big-calendar/blob/master/CONTRIBUTING.md) when submitting a pull request.
17 changes: 17 additions & 0 deletions .github/workflows/issue-close-require.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Issue Close Require

on:
schedule:
- cron: '0 0 * * *'

jobs:
close-issues:
runs-on: ubuntu-latest
steps:
- name: missing demo
uses: actions-cool/issues-helper@v2.2.1
with:
actions: 'close-issues'
token: ${{ secrets.GITHUB_TOKEN }}
labels: 'missing demo'
inactive-day: 3
19 changes: 19 additions & 0 deletions .github/workflows/issue-labeled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Issue Labeled

on:
issues:
types: [labeled]

jobs:
reply-labeled:
runs-on: ubuntu-latest
steps:
- name: missing demo
if: github.event.label.name == 'missing demo'
uses: actions-cool/issues-helper@v2.2.1
with:
actions: 'create-comment, remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
body: |
Hello @${{ github.event.issue.user.login }}. Please provide an online reproduction by [codesandbox](https://codesandbox.io/) or a minimal GitHub repository. You can fork our [Issue Template](https://codesandbox.io/s/react-big-calendar-example-v9wdyd) in codesandbox to get start. Issues labeled by `missing demo` will be closed if no activities in 3 days.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Deploy Documentation
on:
workflow_run:
workflows: ["Release"]
types: [completed]
branches:
- master
paths:
- 'src/**'
- 'stories/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Install and Build 🔧
run: | # Install npm packages and build the Storybook files
npm ci
npm run build-storybook
- name: Deploy 🚀
# https://github.com/JamesIves/github-pages-deploy-action
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
folder: storybook-static # The folder that the build-storybook script generates files.
target-folder: examples
clean: true # Automatically remove deleted files from the deploy branch
commit-msg: 'docs: update documentation site'
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
Expand Down
2 changes: 1 addition & 1 deletion .husky/commit-msg
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
npx --no-install commitlint --edit ""
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
7 changes: 7 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"src/**/*.js": "eslint",
"test/**/*.js": "eslint",
"*.{js,json,css,md}": [
"prettier --write"
]
}
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.*
stories
test
src
*.config.js
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 80,
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true
}
Loading

0 comments on commit e5721ef

Please sign in to comment.