From a2a68df92e1db3cbfdf47c48f02b000a7c523f6a Mon Sep 17 00:00:00 2001 From: andatoshiki <101481353+andatoshiki@users.noreply.github.com> Date: Thu, 2 Mar 2023 10:13:22 +0800 Subject: [PATCH] refactor(lint): globally lint sources with prettier --- .github/workflows/deploy.yml | 30 ++++++++++---------- README.md | 3 +- docs/.vitepress/theme/styles/custom.scss | 2 +- docs/.vitepress/theme/styles/index.scss | 2 +- docs/academic/physics/ipho-formulas-jpn/1.md | 2 +- 5 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5a59ba6a..7f0a3c12 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,19 +4,19 @@ on: branches: - master jobs: - build-and-deploy: - concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. - runs-on: ubuntu-latest - steps: - - name: Perform check out - uses: actions/checkout@v3 + build-and-deploy: + concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. + runs-on: ubuntu-latest + steps: + - name: Perform check out + uses: actions/checkout@v3 - - name: ⚒️ Install dependencies and build/compile the site # 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. - run: | - yarn install --frozen-lockfile - yarn lint - yarn docs:build - - name: 🪗 Deploy to GitHub pages - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: dist # The folder the action should deploy. \ No newline at end of file + - name: ⚒️ Install dependencies and build/compile the site # 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. + run: | + yarn install --frozen-lockfile + yarn lint + yarn docs:build + - name: 🪗 Deploy to GitHub pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: dist # The folder the action should deploy. diff --git a/README.md b/README.md index 846baf25..ee93357e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # Toshiki's Notebook -> Toshiki's web notebook built upon Vitepress and deployed via Vercel!" \ No newline at end of file + +> Toshiki's web notebook built upon Vitepress and deployed via Vercel!" diff --git a/docs/.vitepress/theme/styles/custom.scss b/docs/.vitepress/theme/styles/custom.scss index 3c00fa07..b67996b1 100644 --- a/docs/.vitepress/theme/styles/custom.scss +++ b/docs/.vitepress/theme/styles/custom.scss @@ -134,4 +134,4 @@ img.VPImage.image-src { } // team member section styles end -// \ No newline at end of file +// diff --git a/docs/.vitepress/theme/styles/index.scss b/docs/.vitepress/theme/styles/index.scss index 29546a24..83fb6082 100644 --- a/docs/.vitepress/theme/styles/index.scss +++ b/docs/.vitepress/theme/styles/index.scss @@ -1,2 +1,2 @@ @import './custom.scss'; -@import './vars.scss' \ No newline at end of file +@import './vars.scss'; diff --git a/docs/academic/physics/ipho-formulas-jpn/1.md b/docs/academic/physics/ipho-formulas-jpn/1.md index 7d04ea2a..77d43b4e 100644 --- a/docs/academic/physics/ipho-formulas-jpn/1.md +++ b/docs/academic/physics/ipho-formulas-jpn/1.md @@ -161,4 +161,4 @@ ### 1.16: ベクトルの微分 & 積分 -16. ベクトルの微分と積分:成分ごとに微分/積分する.あるいは無限に近い$2$つのベクトルの差を求めることで 微分す. \ No newline at end of file +16. ベクトルの微分と積分:成分ごとに微分/積分する.あるいは無限に近い$2$つのベクトルの差を求めることで 微分す.