File tree 4 files changed +14
-17
lines changed
4 files changed +14
-17
lines changed Original file line number Diff line number Diff line change
1
+ <script >
2
+ import { base as baseUrl } from " $app/paths"
3
+ </script >
4
+
1
5
<h1 >404</h1 >
2
6
<blockquote >
3
7
<p >Not Found</p >
4
- <p >Take me <a href =" /eslint-plugin-svelte /" >home</a ></p >
8
+ <p >Take me <a href =" { baseUrl } /" >home</a ></p >
5
9
</blockquote >
6
10
7
11
<style >
Original file line number Diff line number Diff line change 8
8
</script >
9
9
10
10
<script >
11
+ import { base as baseUrl } from " $app/paths"
11
12
export let status, error
12
13
</script >
13
14
14
15
<h1 >{status }</h1 >
15
16
<blockquote >
16
17
<p >{error .message }</p >
17
- <p >Take me <a href =" /eslint-plugin-svelte /" >home</a ></p >
18
+ <p >Take me <a href =" { baseUrl } /" >home</a ></p >
18
19
</blockquote >
Original file line number Diff line number Diff line change 118
118
"stylelint" : " ^14.0.0" ,
119
119
"stylelint-config-standard" : " ^24.0.0" ,
120
120
"svelte" : " ^3.37.0" ,
121
+ "svelte-adapter-ghpages" : " 0.0.1" ,
121
122
"ts-node" : " ^10.0.0" ,
122
123
"typescript" : " ^4.5.2" ,
123
124
"vite-plugin-svelte-md" : " ^0.1.3" ,
Original file line number Diff line number Diff line change 1
1
/* global __dirname -- __dirname */
2
- import staticAdapter from "@sveltejs/ adapter-static "
2
+ import ghpagesAdapter from "svelte- adapter-ghpages "
3
3
import path from "path"
4
4
import svelteMd from "vite-plugin-svelte-md"
5
5
import svelteMdOption from "./docs-svelte-kit/tools/vite-plugin-svelte-md-option.mjs"
@@ -14,11 +14,6 @@ const dirname =
14
14
return path . dirname ( new URL ( metaUrl ) . pathname )
15
15
} ) ( )
16
16
17
- const baseStaticAdapter = staticAdapter ( {
18
- // default options are shown
19
- pages : "build" ,
20
- assets : "build" ,
21
- } )
22
17
/** @type {import('@sveltejs/kit').Config } */
23
18
const config = {
24
19
compilerOptions : {
@@ -29,15 +24,11 @@ const config = {
29
24
paths : {
30
25
base : "/eslint-plugin-svelte" ,
31
26
} ,
32
- adapter : {
33
- name : baseStaticAdapter . name ,
34
-
35
- async adapt ( arg ) {
36
- await baseStaticAdapter . adapt ( arg )
37
- arg . utils . copy ( "build/404/index.html" , "build/404.html" )
38
- arg . utils . rimraf ( "build/404" )
39
- } ,
40
- } ,
27
+ adapter : ghpagesAdapter ( {
28
+ // default options are shown
29
+ pages : "build" ,
30
+ assets : "build" ,
31
+ } ) ,
41
32
42
33
// hydrate the <div id="svelte"> element in src/app.html
43
34
target : "#svelte" ,
You can’t perform that action at this time.
0 commit comments