Skip to content

Commit

Permalink
chore(docs): prepare for examples on github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
smukkejohan committed Nov 23, 2023
1 parent 3a98acb commit c26cf52
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 160 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/git": "^10.0.1",
"@sveltejs/adapter-auto": "2.1.0",
"@sveltejs/adapter-node": "^1.3.1",
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/kit": "^1.27.6",
"@sveltejs/package": "^2.2.2",
"@typescript-eslint/eslint-plugin": "^6.12.0",
Expand Down
154 changes: 6 additions & 148 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const prerender = true
19 changes: 9 additions & 10 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
//import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-node';
import preprocess from 'svelte-preprocess';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/kit/vite';

/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess({
postcss: true
})
],

preprocess: [vitePreprocess({
postcss: true
})],
kit: {
adapter: adapter()
adapter: adapter(),
paths: {
base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
}
}
};

Expand Down

0 comments on commit c26cf52

Please sign in to comment.