From e1ee013921b87d86f95dc49d331ca48686a09cb2 Mon Sep 17 00:00:00 2001 From: chvmvd Date: Sat, 10 Dec 2022 09:08:30 +0900 Subject: [PATCH 01/10] Update Black GitHub Actions --- .github/workflows/black.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 323d9446a..4cd381740 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,16 +1,20 @@ name: Black on: - pull_request: push: + pull_request: branches: - - main + - [main, master] jobs: - lint: + black: + name: Black runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout Code + - uses: actions/checkout@v3 + + - name: Run Black - uses: psf/black@stable with: options: '--exclude="docs/01python/07for/_samples/sum_1to100.ipynb"' From 45be427eb280ffde5bd8c756867efab9da4e1c2c Mon Sep 17 00:00:00 2001 From: chvmvd Date: Sat, 10 Dec 2022 09:12:22 +0900 Subject: [PATCH 02/10] Update ESLint GitHub Actions --- .github/workflows/eslint.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index de176c182..026b77dae 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -1,15 +1,21 @@ name: ESLint + on: - pull_request: push: + pull_request: branches: - - main + - [main, master] + jobs: - build: + eslint: + name: ESLint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout Code + - uses: actions/checkout@v3 + - name: Install modules run: npm ci + - name: Run ESLint run: npx eslint . --ext .js,.jsx,.ts,.tsx From dfd1070a0bd4a884a01dcb192b2312c4403d9ae4 Mon Sep 17 00:00:00 2001 From: chvmvd Date: Sat, 10 Dec 2022 09:19:39 +0900 Subject: [PATCH 03/10] Update Prettier GitHub Actions --- .github/workflows/prettier.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index adbb2cd04..e71ce3a47 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -1,25 +1,22 @@ name: Prettier -# This action works with pull requests and pushes on: - pull_request: push: + pull_request: branches: - - main + - [master, main] jobs: prettier: + name: Prettier runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout Code + uses: actions/checkout@v3 with: - # Make sure the actual branch is checked out when running on pull requests ref: ${{ github.head_ref }} - - name: Prettify code + - name: Run Prettier uses: creyD/prettier_action@v4.2 with: - # This part is also where you can pass other options, for example: prettier_options: --write . From 139f8eac9b004e38bafd9306de48865d3caa5de5 Mon Sep 17 00:00:00 2001 From: chvmvd Date: Sat, 10 Dec 2022 09:24:48 +0900 Subject: [PATCH 04/10] Update Super Linter GitHub Actions --- .github/workflows/linter.yml | 49 ------------------------------ .github/workflows/super_linter.yml | 23 ++++++++++++++ 2 files changed, 23 insertions(+), 49 deletions(-) delete mode 100644 .github/workflows/linter.yml create mode 100644 .github/workflows/super_linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml deleted file mode 100644 index 8fa5f8d29..000000000 --- a/.github/workflows/linter.yml +++ /dev/null @@ -1,49 +0,0 @@ ---- -################################# -################################# -## Super Linter GitHub Actions ## -################################# -################################# -name: Lint Code Base - -############################# -# Start the job on all push # -############################# -on: - push: - pull_request: - branches: [master, main] - -############### -# Set the Job # -############### -jobs: - build: - # Name the Job - name: Lint Code Base - # Set the agent to run on - runs-on: ubuntu-latest - - ################## - # Load all steps # - ################## - steps: - ########################## - # Checkout the code base # - ########################## - - name: Checkout Code - uses: actions/checkout@v3 - with: - # Full git history is needed to get a proper - # list of changed files within `super-linter` - fetch-depth: 0 - - ################################ - # Run Linter against code base # - ################################ - - name: Lint Code Base - uses: github/super-linter@v4 - env: - VALIDATE_ALL_CODEBASE: false - DEFAULT_BRANCH: main - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/super_linter.yml b/.github/workflows/super_linter.yml new file mode 100644 index 000000000..a0b0d38b8 --- /dev/null +++ b/.github/workflows/super_linter.yml @@ -0,0 +1,23 @@ +name: Super Linter + +on: + push: + pull_request: + branches: [master, main] + +jobs: + super-linter: + name: Super Linter + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Run Super Linter + uses: github/super-linter@v4 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: main + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 1faf61549b2ecd34d6f40ecc5cecdcae3a1de8b8 Mon Sep 17 00:00:00 2001 From: chvmvd Date: Sat, 10 Dec 2022 09:27:04 +0900 Subject: [PATCH 05/10] Update deploy GitHub Actions --- .github/workflows/deploy.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e2f15f420..fc1f05bc4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,19 +1,23 @@ name: Build and Deploy + on: push: branches: - main + permissions: contents: write + jobs: build-and-deploy: - concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. + name: Build and Deploy + concurrency: ci-${{ github.ref }} runs-on: ubuntu-latest steps: - - name: Checkout 🛎️ + - name: Checkout Code uses: actions/checkout@v3 - - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. + - name: Install and Build 🔧 run: | npm ci npm run build @@ -22,4 +26,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@v4 with: clean-exclude: pr-preview/ - folder: build # The folder the action should deploy. + folder: build From 9d237669651d894e6bfe10a0c01549625a28b92c Mon Sep 17 00:00:00 2001 From: chvmvd Date: Sat, 10 Dec 2022 09:28:08 +0900 Subject: [PATCH 06/10] Update preview GitHub Actions --- .github/workflows/preview.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 99b41e2b1..af002e49f 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -12,10 +12,11 @@ concurrency: preview-${{ github.ref }} jobs: deploy-preview: - runs-on: ubuntu-20.04 + name: Deploy PR previews + runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 + - name: Checkout Code + uses: actions/checkout@v3 - name: Install and Build run: | From e454f3dcd81b0d3b97184299c21a652d60c5a465 Mon Sep 17 00:00:00 2001 From: chvmvd Date: Sat, 10 Dec 2022 09:37:31 +0900 Subject: [PATCH 07/10] Fix error in super linter --- .github/workflows/black.yml | 1 + .github/workflows/deploy.yml | 1 + .github/workflows/eslint.yml | 1 + .github/workflows/prettier.yml | 1 + .github/workflows/preview.yml | 1 + .github/workflows/super_linter.yml | 1 + 6 files changed, 6 insertions(+) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 4cd381740..95df2fe1f 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -1,3 +1,4 @@ +--- name: Black on: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fc1f05bc4..66e7b9278 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,3 +1,4 @@ +--- name: Build and Deploy on: diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 026b77dae..d1652dd78 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -1,3 +1,4 @@ +--- name: ESLint on: diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index e71ce3a47..0f5835ee9 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -1,3 +1,4 @@ +--- name: Prettier on: diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index af002e49f..9757a3e2e 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -1,3 +1,4 @@ +--- name: Deploy PR previews on: diff --git a/.github/workflows/super_linter.yml b/.github/workflows/super_linter.yml index a0b0d38b8..0766f335f 100644 --- a/.github/workflows/super_linter.yml +++ b/.github/workflows/super_linter.yml @@ -1,3 +1,4 @@ +--- name: Super Linter on: From 7469152f58076e7d704cd40987ea79b62c172498 Mon Sep 17 00:00:00 2001 From: chvmvd Date: Sat, 10 Dec 2022 09:43:48 +0900 Subject: [PATCH 08/10] Fix GitHub Actions error --- .github/workflows/black.yml | 3 +-- .github/workflows/deploy.yml | 3 +-- .github/workflows/eslint.yml | 3 +-- .github/workflows/prettier.yml | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 95df2fe1f..2d84a0675 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -4,8 +4,7 @@ name: Black on: push: pull_request: - branches: - - [main, master] + branches: [main, master] jobs: black: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 66e7b9278..97846de43 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,8 +3,7 @@ name: Build and Deploy on: push: - branches: - - main + branches: main permissions: contents: write diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index d1652dd78..fa93d942b 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -4,8 +4,7 @@ name: ESLint on: push: pull_request: - branches: - - [main, master] + branches: [main, master] jobs: eslint: diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 0f5835ee9..46feabf38 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -4,8 +4,7 @@ name: Prettier on: push: pull_request: - branches: - - [master, main] + branches: [master, main] jobs: prettier: From 29dfd510cd5b416a4706b6989984090fb469e8c5 Mon Sep 17 00:00:00 2001 From: chvmvd Date: Sat, 10 Dec 2022 00:44:22 +0000 Subject: [PATCH 09/10] Prettified Code! --- docs/03extras/04website/02docusaurus/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/03extras/04website/02docusaurus/index.mdx b/docs/03extras/04website/02docusaurus/index.mdx index e25fff602..2ae44e710 100644 --- a/docs/03extras/04website/02docusaurus/index.mdx +++ b/docs/03extras/04website/02docusaurus/index.mdx @@ -176,7 +176,7 @@ import LifeGame from "@site/src/components/LifeGame/LifeGame"; ::: :::tip -Docusaurus で数式を表示するには、以下のようにします。(2022年12月時点)[Docusaurus の公式サイトの説明](https://docusaurus.io/docs/markdown-features/math-equations)を参考にしてください。 +Docusaurus で数式を表示するには、以下のようにします。(2022 年 12 月時点)[Docusaurus の公式サイトの説明](https://docusaurus.io/docs/markdown-features/math-equations)を参考にしてください。 1. ターミナルで以下を実行して、プラグインをインストールします。 From eb3aaa16bec945853727086ed0cbfc192211c8d6 Mon Sep 17 00:00:00 2001 From: chvmvd Date: Sat, 10 Dec 2022 09:49:09 +0900 Subject: [PATCH 10/10] Fix GitHub Actions error --- .github/workflows/black.yml | 4 ++-- .github/workflows/eslint.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 2d84a0675..7aa3895bd 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -12,10 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - - uses: actions/checkout@v3 + uses: actions/checkout@v3 - name: Run Black - - uses: psf/black@stable + uses: psf/black@stable with: options: '--exclude="docs/01python/07for/_samples/sum_1to100.ipynb"' jupyter: true diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index fa93d942b..784d3e380 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - - uses: actions/checkout@v3 + uses: actions/checkout@v3 - name: Install modules run: npm ci