From b22b1e911ea3067f6685f32ed3668bc6ad03820c Mon Sep 17 00:00:00 2001 From: Ethan Ferguson Date: Sun, 30 Jun 2024 14:59:59 -0400 Subject: [PATCH] Fix svelte --- .github/workflows/deploy.yml | 2 +- .gitignore | 3 ++- src/lib/markdown/svelte-pages.md | 2 +- src/routes/projects/+page.svelte | 20 +++++++------------- svelte.config.js | 2 +- 5 files changed, 12 insertions(+), 17 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 449d21e1..aa140299 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,7 +27,7 @@ jobs: npm run build - name: Upload Artifacts - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: "build/" diff --git a/.gitignore b/.gitignore index e1327b5c..4118a558 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .vscode .svelte-kit -node_modules \ No newline at end of file +node_modules +build diff --git a/src/lib/markdown/svelte-pages.md b/src/lib/markdown/svelte-pages.md index a3751e8f..540d8e84 100644 --- a/src/lib/markdown/svelte-pages.md +++ b/src/lib/markdown/svelte-pages.md @@ -15,7 +15,7 @@ npm i -D @sveltejs/adapter-static ## Modify svelte.config.js ```js -import adapter from "@sveltejs/adapter-auto"; +import adapter from "@sveltejs/adapter-static"; import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; /** @type {import('@sveltejs/kit').Config} */ diff --git a/src/routes/projects/+page.svelte b/src/routes/projects/+page.svelte index 3fee0346..580b3274 100644 --- a/src/routes/projects/+page.svelte +++ b/src/routes/projects/+page.svelte @@ -1,6 +1,6 @@

Projects and Writeups

@@ -9,7 +9,7 @@

How many golf balls would it take to fill the oceans? How many Empire @@ -54,7 +54,7 @@ The overall process is is to go from SMILES string (a) to 3D grid (f). For more info, take a look at the paper!

- The principle of ParticleGrid + The principle of ParticleGrid
- + +

Everyone knows dark mode is best. Or something. But what if... you had the option to choose? Well, some brilliant people have decided to make that @@ -80,11 +77,8 @@ using any JS.

- + +

Mobile pop-out menus are super nice, but you'd expect to need JS for something that complex. But what if... you didn't? Similarly to my no-JS diff --git a/svelte.config.js b/svelte.config.js index 49edf62c..7fe70b15 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,4 +1,4 @@ -import adapter from '@sveltejs/adapter-auto'; +import adapter from '@sveltejs/adapter-static'; import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'; /** @type {import('@sveltejs/kit').Config} */