Skip to content

Commit 3fd81fb

Browse files
committed
chore: initialized website
0 parents  commit 3fd81fb

File tree

249 files changed

+17204
-0
lines changed

Some content is hidden

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

249 files changed

+17204
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages.
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
15+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
19+
20+
# Default to bash
21+
defaults:
22+
run:
23+
shell: bash
24+
25+
env:
26+
HUGO_VERSION: 0.147.2
27+
HUGO_ENVIRONMENT: production
28+
29+
jobs:
30+
# Test job
31+
test:
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Install Hugo CLI
35+
run: |
36+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
37+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
38+
39+
- name: Checkout
40+
uses: actions/checkout@v4
41+
with:
42+
submodules: recursive
43+
fetch-depth: 0
44+
45+
- name: Install dependencies
46+
run: "[[ -f package-lock.json ]] && npm ci || true"
47+
48+
- name: Install Playwright Browsers
49+
run: npx playwright install --with-deps
50+
51+
- name: Build with Hugo
52+
run: |
53+
hugo \
54+
--gc \
55+
--minify \
56+
--baseURL "${{ steps.pages.outputs.base_url }}/"
57+
58+
- name: Run all tests
59+
run: npm run test:all
60+
61+
# Build job
62+
build:
63+
runs-on: ubuntu-latest
64+
needs: test
65+
steps:
66+
- name: Install Hugo CLI
67+
run: |
68+
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
69+
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
70+
71+
- name: Checkout
72+
uses: actions/checkout@v4
73+
with:
74+
submodules: recursive
75+
fetch-depth: 0
76+
77+
- name: Setup Pages
78+
id: pages
79+
uses: actions/configure-pages@v5
80+
81+
- name: Install dependencies
82+
run: "[[ -f package-lock.json ]] && npm ci || true"
83+
84+
- name: Build with Hugo
85+
run: |
86+
hugo \
87+
--gc \
88+
--minify \
89+
--baseURL "${{ steps.pages.outputs.base_url }}/"
90+
91+
- name: Upload artifact
92+
uses: actions/upload-pages-artifact@v3
93+
with:
94+
path: ./public
95+
96+
# Deployment job
97+
deploy:
98+
environment:
99+
name: github-pages
100+
url: ${{ steps.deployment.outputs.page_url }}
101+
runs-on: ubuntu-latest
102+
needs: build
103+
steps:
104+
- name: Deploy to GitHub Pages
105+
id: deployment
106+
uses: actions/deploy-pages@v4
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Update Downloads
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
update_and_commit:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v4
12+
13+
- name: Install dependencies
14+
run: "[[ -f package-lock.json ]] && npm ci || true"
15+
16+
- name: Update downloads
17+
run: npm run update-downloads
18+
19+
- name: Commit and push changes
20+
run: |
21+
git config --global user.name 'github-actions[bot]'
22+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
23+
git add .
24+
if ! git diff --staged --quiet; then
25+
git commit -m "Update download information"
26+
git push origin main
27+
else
28+
echo "No changes to commit."
29+
fi

.gitignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Hugo default output directory
2+
public/
3+
4+
# Hugo generated resources directory
5+
resources/
6+
7+
# Generated files by hugo
8+
.hugo_build.lock
9+
10+
# Test files
11+
test-results
12+
playwright-report
13+
14+
# Temporary files
15+
.temp
16+
.tmp
17+
.cache
18+
*.swp
19+
*.swo
20+
*~
21+
22+
# Linter cache files
23+
.eslintcache
24+
.stylelintcache
25+
.htmlhintrc.json
26+
27+
# Node.js dependencies
28+
node_modules/
29+
npm-debug.log
30+
yarn-debug.log
31+
yarn-error.log
32+
33+
# IDE specific files
34+
.idea/
35+
.vscode/
36+
*.sublime-project
37+
*.sublime-workspace
38+
39+
# Environment variables
40+
.env
41+
.env.*
42+
!.env.example
43+
44+
# OS generated files
45+
.DS_Store
46+
.DS_Store?
47+
._*
48+
.Spotlight-V100
49+
.Trashes
50+
ehthumbs.db
51+
Thumbs.db

.htmlhintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"tagname-lowercase": true,
3+
"attr-lowercase": true,
4+
"attr-value-double-quotes": true,
5+
"attr-value-not-empty": false,
6+
"attr-no-duplication": true,
7+
"doctype-first": false,
8+
"tag-pair": false,
9+
"tag-self-close": false,
10+
"spec-char-escape": false,
11+
"id-unique": true,
12+
"src-not-empty": true,
13+
"title-require": false,
14+
"alt-require": true,
15+
"doctype-html5": true,
16+
"style-disabled": false,
17+
"space-tab-mixed-disabled": "space",
18+
"id-class-ad-disabled": false,
19+
"href-abs-or-rel": false,
20+
"attr-unsafe-chars": true,
21+
"head-script-disabled": false
22+
}

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

0 commit comments

Comments
 (0)