Skip to content

Commit e1a7e59

Browse files
authored
Rewrite in Svelte (#9)
* chore!: delete nuxt website * feat: setup sveltekit template * feat: switch to static rendering * fix: remove favicon * fix: move `+layout.js` to `routes` folder * feat: setup stylesheet * feat: setup layout with mobile responsiveness * refactor: move `style.css` into `+layout.svelte` * feat: switch `layout.js` to typescript and populate home page * feat: add global allocators test post * feat: improve home page and add post list * chore: small cleanups * feat: create callout component * chore: other small tweaks * feat: add history page * refactor: make the homepage a `.svelte` file again * feat: center content and increase mobile width boundary * feat: bump deps and install `feed` * feat: move post loading logic to separate file * feat: support rss and atom * feat: sort posts by date * feat: add rust pointer metadata article * feat: add probability article * feat: ticklowerperm mod announcement * feat: 4 years of bevy post * fix: discord link * feat: add github-flavored markdown formatter * fix: add key to post listing * fix: switch to `remark-footnotes` Nothing else works with `mdsvex` D: * refactor: make footnotes consistent * feat: add title * feat: add syntax highlighting * feat: automatic deployment in ci * fix: remove erroneous fallback page
1 parent eeb6010 commit e1a7e59

File tree

44 files changed

+2141
-10666
lines changed

Some content is hidden

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

44 files changed

+2141
-10666
lines changed

.eslintrc

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,23 @@ jobs:
3030
- name: Install pnpm
3131
uses: pnpm/action-setup@v4
3232
with:
33-
version: 9
33+
version: 10
3434

3535
- name: Install Node.js
3636
uses: actions/setup-node@v4
3737
with:
38-
node-version: 18
38+
node-version: 23
3939
cache: pnpm
4040

4141
- name: Build site
4242
run: |
4343
pnpm install
44-
pnpm generate
44+
pnpm build
4545
4646
- name: Upload site artifact
4747
uses: actions/upload-pages-artifact@v3
4848
with:
49-
path: .output/public
49+
path: build
5050

5151
# Download build's artifact and publish site
5252
deploy:
@@ -57,4 +57,5 @@ jobs:
5757
needs: build
5858
steps:
5959
- name: Deploy to Github Pages
60+
id: deployment
6061
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
# Nuxt dev/build outputs
2-
.output
3-
.nuxt
4-
.nitro
5-
.cache
6-
dist
7-
8-
# Node dependencies
91
node_modules
102

11-
# Logs
12-
logs
13-
*.log
3+
# Output
4+
.output
5+
.vercel
6+
.netlify
7+
.wrangler
8+
/.svelte-kit
9+
/build
1410

15-
# Misc
11+
# OS
1612
.DS_Store
17-
.fleet
18-
.idea
13+
Thumbs.db
1914

20-
# Local env files
15+
# Env
2116
.env
2217
.env.*
2318
!.env.example
19+
!.env.test
20+
21+
# Vite
22+
vite.config.js.timestamp-*
23+
vite.config.ts.timestamp-*

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
shamefully-hoist=true
1+
engine-strict=true

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Package Managers
2+
package-lock.json
3+
pnpm-lock.yaml
4+
yarn.lock

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"useTabs": false,
3+
"singleQuote": false,
4+
"trailingComma": "all",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"overrides": [
8+
{
9+
"files": "*.svelte",
10+
"options": {
11+
"parser": "svelte"
12+
}
13+
}
14+
]
15+
}

app.vue

Lines changed: 0 additions & 46 deletions
This file was deleted.

assets/_g.scss

Lines changed: 0 additions & 17 deletions
This file was deleted.

assets/syntax.scss

Lines changed: 0 additions & 19 deletions
This file was deleted.

components/HistoryEntry.vue

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)