Skip to content

Commit 80e7e14

Browse files
committed
Adding to GitHub
0 parents  commit 80e7e14

43 files changed

Lines changed: 4261 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/FUNDING.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ko_fi: cssnr

‎.github/dependabot.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
#open-pull-requests-limit: 1
8+
9+
- package-ecosystem: "npm"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
#open-pull-requests-limit: 1

‎.github/workflows/lint.yaml‎

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: "Lint"
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches: [master]
7+
push:
8+
branches: [master]
9+
10+
jobs:
11+
lint:
12+
name: "Lint"
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 5
15+
if: ${{ !contains(github.event.head_commit.message, '#nolint') }}
16+
17+
steps:
18+
- name: "Checkout"
19+
uses: actions/checkout@v5
20+
21+
- name: "Setup Node 22"
22+
uses: actions/setup-node@v5
23+
with:
24+
node-version: 22
25+
#cache: npm
26+
27+
- name: "Install"
28+
run: |
29+
npm ci
30+
31+
- name: "Build"
32+
if: ${{ !cancelled() }}
33+
run: |
34+
npm run build
35+
36+
#- name: "ESLint"
37+
# if: ${{ !cancelled() }}
38+
# run: |
39+
# npm run lint
40+
41+
- name: "Prettier"
42+
if: ${{ !cancelled() }}
43+
run: |
44+
npm run prettier
45+
46+
- name: "Yamllint"
47+
if: ${{ !cancelled() }}
48+
env:
49+
CONFIG: "{extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
50+
run: |
51+
echo "::group::List Files"
52+
yamllint -d '${{ env.CONFIG }}' --list-files .
53+
echo "::endgroup::"
54+
yamllint -d '${{ env.CONFIG }}' .
55+
56+
- name: "Actionlint"
57+
if: ${{ !cancelled() }}
58+
run: |
59+
echo "::group::Download"
60+
loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
61+
echo "loc: ${loc}"
62+
tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
63+
echo "tag: ${tag}"
64+
url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
65+
echo "url: ${url}"
66+
curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
67+
file "${RUNNER_TEMP}/actionlint"
68+
"${RUNNER_TEMP}/actionlint" --version
69+
echo "::endgroup::"
70+
"${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=

‎.github/workflows/pages.yaml‎

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: "Pages"
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
paths:
8+
- "docs/**"
9+
- ".vitepress/**"
10+
- "package.json"
11+
- ".github/workflows/pages.yaml"
12+
workflow_dispatch:
13+
14+
env:
15+
CRAWLER_ID: ""
16+
17+
permissions:
18+
contents: read
19+
20+
concurrency:
21+
group: pages
22+
cancel-in-progress: false
23+
24+
jobs:
25+
build:
26+
name: "Build"
27+
runs-on: ubuntu-latest
28+
timeout-minutes: 10
29+
30+
steps:
31+
- name: "Checkout"
32+
uses: actions/checkout@v5
33+
with:
34+
fetch-depth: 0
35+
36+
- name: "Setup Node 22"
37+
uses: actions/setup-node@v5
38+
with:
39+
node-version: 22
40+
cache: npm
41+
42+
- name: "Configure Pages"
43+
uses: actions/configure-pages@v5
44+
45+
- name: "Install Dependencies"
46+
run: |
47+
npm ci
48+
49+
- name: "Run Build"
50+
run: |
51+
npm run build
52+
53+
- name: "Upload Pages Artifact"
54+
uses: actions/upload-pages-artifact@v4
55+
with:
56+
path: .vitepress/dist
57+
58+
deploy:
59+
name: "Deploy"
60+
runs-on: ubuntu-latest
61+
timeout-minutes: 5
62+
needs: build
63+
64+
permissions:
65+
pages: write
66+
id-token: write
67+
68+
environment:
69+
name: github-pages
70+
url: ${{ steps.deployment.outputs.page_url }}
71+
72+
steps:
73+
- name: "Deploy Pages"
74+
id: deployment
75+
uses: actions/deploy-pages@v4
76+
77+
- name: "Send Deploy Notification"
78+
if: ${{ !cancelled() }}
79+
continue-on-error: true
80+
uses: sarisia/actions-status-discord@v1
81+
with:
82+
webhook: ${{ secrets.DISCORD_WEBHOOK }}
83+
84+
post:
85+
name: "Post-Deploy"
86+
runs-on: ubuntu-latest
87+
timeout-minutes: 5
88+
needs: deploy
89+
90+
steps:
91+
- name: "Algolia Crawler"
92+
if: ${{ env.CRAWLER_ID != '' }}
93+
uses: cssnr/algolia-crawler-action@v1
94+
with:
95+
crawler_id: ${{ env.CRAWLER_ID }}
96+
crawler_user_id: ${{ secrets.CRAWLER_USER_ID }}
97+
crawler_api_key: ${{ secrets.CRAWLER_API_KEY }}
98+
99+
- name: "Send Post-Deploy Notification"
100+
if: ${{ failure() }}
101+
uses: sarisia/actions-status-discord@v1
102+
with:
103+
webhook: ${{ secrets.DISCORD_WEBHOOK }}

‎.gitignore‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.idea/
2+
*.iml
3+
.vscode/
4+
**/dist/
5+
build/
6+
node_modules/
7+
.vitepress/cache
8+
.vitepress/contributors.json

‎.prettierignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.idea/
2+
.vscode/
3+
dist/
4+
node_modules/
5+
package-lock.json

‎.prettierrc.json‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"trailingComma": "es5",
3+
"semi": false,
4+
"singleQuote": true,
5+
"printWidth": 110,
6+
"overrides": [
7+
{
8+
"files": ["**/*.html", "**/*.yaml", "**/*.yml"],
9+
"options": {
10+
"singleQuote": false
11+
}
12+
},
13+
{
14+
"files": ["**/*.js", "**/*.css", "**/*.scss"],
15+
"options": {
16+
"tabWidth": 4
17+
}
18+
}
19+
]
20+
}

0 commit comments

Comments
 (0)