Skip to content

Commit

Permalink
migration of private repo to main
Browse files Browse the repository at this point in the history
  • Loading branch information
ukdaaan committed Aug 7, 2022
1 parent 16854b5 commit d521c30
Show file tree
Hide file tree
Showing 154 changed files with 49,281 additions and 1,119 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build
node_modules
*.cjs

sidebars-*.js
24 changes: 24 additions & 0 deletions .eslintrc.json
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"
}
}
8 changes: 8 additions & 0 deletions .github/CODEOWNERS
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
4 changes: 0 additions & 4 deletions .github/FUNDING.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE/article.md

This file was deleted.

29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
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
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
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.
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
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
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/plugin.md

This file was deleted.

16 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/typo.md

This file was deleted.

23 changes: 11 additions & 12 deletions .github/PULL_REQUEST_TEMPLATE.md
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.
28 changes: 28 additions & 0 deletions .github/workflows/docsearch.yml
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
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
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
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
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
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
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
37 changes: 37 additions & 0 deletions .github/workflows/update-api-specs-check.yml
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
17 changes: 0 additions & 17 deletions .github/workflows/wip.yml

This file was deleted.

Loading

0 comments on commit d521c30

Please sign in to comment.