Skip to content

Commit 8130e83

Browse files
committed
Swap to Vite
1 parent e82d037 commit 8130e83

37 files changed

Lines changed: 1251 additions & 89 deletions

.github/workflows/deploy.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy Vite app to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # or master, depending on your default branch
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
working-directory: site
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 20
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Build Vite app
36+
run: npm run build
37+
38+
- name: Upload build output
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: site/dist
42+
43+
deploy:
44+
needs: build
45+
runs-on: ubuntu-latest
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
steps:
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v4
53+
54+

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ venv.bak/
143143
# Rope project settings
144144
.ropeproject
145145

146-
# mkdocs documentation
147-
/site
148-
149146
# mypy
150147
.mypy_cache/
151148
.dmypy.json

site/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="description" content="LegoFan9 SWGoH Tools - About">
88
<meta name="author" content="LegoFan9">
99
<link rel="icon" href="../favicon.ico">
10-
<link rel="stylesheet" href="../utils/nav-bar/nav-bar.css">
10+
<link rel="stylesheet" href="../src/nav-bar.css">
1111
<link rel="stylesheet" href="style.css">
1212
<title>LegoFan9 Tools</title>
1313
<!-- Google tag (gtag.js) -->
@@ -30,9 +30,9 @@
3030
<ul class="nav-links">
3131
<li><a href="javascript:history.back()">Back</a></li>
3232
<li><a href="/">Home</a></li>
33-
<li><a href="/swgoh-portrait-maker">SWGoH Portrait Maker</a></li>
34-
<li><a href="/swgoh-updates">SWGoH Updates</a></li>
35-
<li><a href="/about">About</a></li>
33+
<li><a href="/swgoh-portrait-maker/">SWGoH Portrait Maker</a></li>
34+
<li><a href="/swgoh-updates/">SWGoH Updates</a></li>
35+
<li><a href="/about/">About</a></li>
3636
</ul>
3737
</div>
3838
</nav>
@@ -42,10 +42,10 @@
4242
<p>Hi! I'm LegoFan9, I made this site originally for portrait maker, however I have since added numerous tools. Here
4343
are some of the ones I find most worth sharing</p>
4444
<ul>
45-
<li><a href="../swgoh-updates">Update Notifier</a> A discord based automatic datamining tool for SWGoH</li>
46-
<li><a href="../swgoh-portrait-maker">SWGoH Portrait Maker</a> A tool that overlays custom SWGoH style borders over your images</li>
45+
<li><a href="../swgoh-updates/">Update Notifier</a> A discord based automatic datamining tool for SWGoH</li>
46+
<li><a href="../swgoh-portrait-maker/">SWGoH Portrait Maker</a> A tool that overlays custom SWGoH style borders over your images</li>
4747
<li><a href="https://github.com/Lego-Fan9/swgoh-assetapi">SWGoH AssetAPI</a> An asset datamining tool for SWGoH</li>
48-
<li><a href="../swgoh-updates/sprite-downloads">SWGoH Sprite Cutter</a> A tool that datamines SWGoH sprites. Closed source, but you can download
48+
<li><a href="../swgoh-updates/sprite-downloads/">SWGoH Sprite Cutter</a> A tool that datamines SWGoH sprites. Closed source, but you can download
4949
assets</li>
5050
</ul>
5151
<p>There are more plans for the future, but for now I think thats all. MTFBWY</p>

about/style.css renamed to site/about/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ ul li a:hover {
4040
p, ul {
4141
padding: 0 10px;
4242
}
43-
}
43+
}

index.html renamed to site/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta name="description" content="LegoFan9's Star Wars: Galaxy of Heroes Tools">
88
<meta name="author" content="LegoFan9">
9-
<link rel="icon" href="favicon.ico" type="image/x-icon">
10-
<link rel="stylesheet" href="utils/nav-bar/nav-bar.css">
9+
<link rel="icon" href="/favicon.ico" type="image/x-icon">
10+
<link rel="stylesheet" href="src/nav-bar.css">
1111
<title>LegoFan9's SWGoH Tools</title>
1212
<style>
1313
body {
@@ -94,9 +94,9 @@
9494
<ul class="nav-links">
9595
<li><a href="javascript:history.back()">Back</a></li>
9696
<li><a href="/">Home</a></li>
97-
<li><a href="/swgoh-portrait-maker">SWGoH Portrait Maker</a></li>
98-
<li><a href="/swgoh-updates">SWGoH Updates</a></li>
99-
<li><a href="/about">About</a></li>
97+
<li><a href="/swgoh-portrait-maker/">SWGoH Portrait Maker</a></li>
98+
<li><a href="/swgoh-updates/">SWGoH Updates</a></li>
99+
<li><a href="/about/">About</a></li>
100100
</ul>
101101
</div>
102102
</nav>

0 commit comments

Comments
 (0)