Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetrax-10 committed Feb 17, 2024
2 parents 5c34695 + acf268a commit 09d752c
Show file tree
Hide file tree
Showing 113 changed files with 73,204 additions and 5,674 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
50 changes: 50 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy repository to Github Pages

on:
push:
branches: [main, stable]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout main
uses: actions/checkout@v2
with:
path: main
ref: main
fetch-depth: "0"
- run: |
cd main
./build_site.sh ../_site/stable
- name: Checkout dev
uses: actions/checkout@v2
with:
path: dev
# change this ref to whatever dev branch/tag we need when necessary
ref: main
fetch-depth: "0"
- run: |
cd dev
../main/build_site.sh ../_site/develop
- uses: actions/upload-pages-artifact@v2

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
51 changes: 51 additions & 0 deletions .github/workflows/on_pr_check_code_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Check Code Format

on:
pull_request:
branches:
- main

workflow_dispatch:

permissions:
contents: write

jobs:
check_js_code_format:
name: Check JS code format
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Check format
uses: creyD/[email protected]
with:
prettier_options: --check .
dry: true
only_changed: true
github_token: ${{ secrets.GITHUB_TOKEN }}

check_py_code_format:
name: Check PY code format
runs-on: ubuntu-latest
needs: check_js_code_format

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Check format
uses: psf/black@stable
with:
options: '--exclude="3rd party"'
src: "."
49 changes: 49 additions & 0 deletions .github/workflows/on_push_check_code_format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Check Code Format

on:
push:
branches:
- main

workflow_dispatch:

permissions:
contents: write

jobs:
check_js_code_format:
name: Check JS code format
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}

- name: Check format
uses: creyD/[email protected]
with:
prettier_options: --check .
dry: true
only_changed: true
github_token: ${{ secrets.GITHUB_TOKEN }}

check_py_code_format:
name: Check PY code format
runs-on: ubuntu-latest
needs: check_js_code_format

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}

- name: Check format
uses: psf/black@stable
with:
options: '--exclude="3rd party"'
src: "."
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/_site
node_modules
dist
11 changes: 11 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*.md

# dependencies
node_modules
yarn.lock

# production
dist

# workflows
.github
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"trailingComma": "es5"
}
Loading

0 comments on commit 09d752c

Please sign in to comment.