-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
154 changed files
with
49,281 additions
and
1,119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build | ||
node_modules | ||
*.cjs | ||
|
||
sidebars-*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"extends": ["eslint:recommended", "plugin:react/recommended"], | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["react"], | ||
"rules": { | ||
"react/prop-types": "off", | ||
"no-unused-vars": "warn" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Default owners of the repository | ||
* @dyte-in/docs | ||
|
||
# Owners for JS, JSX, TS, and TSX files | ||
*.js @dyte-in/web | ||
*.jsx @dyte-in/web | ||
*.ts @dyte-in/web | ||
*.tsx @dyte-in/web |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: 🐛 Bug report | ||
description: Create a bug report | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Are you certain it's a bug? | ||
description: If you're uncertain, feel free to ping us at our community Discord server instead - https://community.dyte.io | ||
options: | ||
- label: Yes, it looks like a bug | ||
required: true | ||
- type: checkboxes | ||
attributes: | ||
label: Are you sure this is not an issue in Docusaurus? | ||
description: If this is a Docusaurus issue, report it at https://github.com/facebook/docusaurus/issues. | ||
options: | ||
- label: It is not a Docusaurus issue | ||
required: true | ||
- type: checkboxes | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please search to see if an issue already exists | ||
options: | ||
- label: I have searched existing issues, it hasn't been reported yet | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Issue description | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Question | ||
url: https://community.dyte.io | ||
about: Please ask and answer questions on our community Discord server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 🎉 Feature request | ||
description: Suggest an idea | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: Is there an existing issue for this? | ||
description: Please search to see if an issue already exists | ||
options: | ||
- label: I have searched existing issues, it hasn't been reported yet | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Use case description | ||
description: Describe the problem (use case) that needs to be solved | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Proposed solution (optional) | ||
description: | | ||
e.g. propose how the configuration of the new feature could look |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
# Information | ||
## Description | ||
|
||
<!-- | ||
Please mark one of the following. | ||
--> | ||
Describe your PR here. | ||
|
||
- [ ] Fixes a typo. | ||
- [ ] Fixes misinformation. | ||
- [ ] Adds a new general article. | ||
- [ ] Adds an article about a plugin. (or adds a plugin to the index) | ||
## Resolved issues | ||
|
||
<!-- | ||
Please explain why your PR should be merged. | ||
--> | ||
Closes #1 | ||
|
||
# Motivation | ||
### Before submitting the PR, please take the following into consideration | ||
- [ ] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. If you don't have an issue, please create one. | ||
- [ ] Prefix your PR title with `feat: `, `fix: `, `chore: `, `docs:`, or `refactor:`. | ||
- [ ] The description should clearly illustrate what problems it solves. | ||
- [ ] Ensure that the commit messages follow our guidelines. | ||
- [ ] Resolve merge conflicts (if any). | ||
- [ ] Make sure that the current branch is upto date with the `main` branch. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Run algolia docsearch | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'ci/docsearch' | ||
- main | ||
schedule: | ||
- cron: "0 12 * * 1" | ||
jobs: | ||
docsearch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup environment | ||
run: | | ||
echo "APPLICATION_ID=$APPLICATION_ID" >> .env | ||
echo "API_KEY=$API_KEY" >> .env | ||
chmod +x ./bin/crawl.sh | ||
env: | ||
APPLICATION_ID: ${{ secrets.ALGOLIA_DOCSEARCH_APP_ID }} | ||
API_KEY: ${{ secrets.ALGOLIA_DOCSEARCH_API_KEY }} | ||
|
||
- name: Run docsearch | ||
continue-on-error: true | ||
run: | | ||
./bin/crawl.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Check for lint/build errors | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: npm install, lint | ||
run: | | ||
npm install | ||
npm run lint | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: npm install, build | ||
run: | | ||
npm install | ||
npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release to GHR | ||
on: | ||
push: | ||
branches: | ||
- staging | ||
- main | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build package | ||
run: npm run build | ||
|
||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: npx semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Automated tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- staging | ||
- main | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: npm install, test | ||
run: | | ||
npm install | ||
npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Update API Specs Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
update-api-specs-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v23 | ||
with: | ||
since_last_remote_commit: true | ||
files_separator: "," | ||
files: static/api/v1.yaml,static/api/v2.yaml | ||
|
||
- name: Fail workflow if api specs has updated - comment err msg on PR | ||
if: steps.changed-files.outputs.only_changed == 'true' && github.event_name == 'pull_request' | ||
env: | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: gh pr comment $PR_NUMBER --body 'Avoid updating the api-specs directly. They will be overwritten.' && exit 1 | ||
|
||
- name: Fail workflow if api specs has updated - echo err msg | ||
if: steps.changed-files.outputs.only_changed == 'true' && github.event_name != 'pull_request' | ||
run: echo 'Avoid updating the api-specs directly. They will be overwritten.' && exit 1 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.