File tree Expand file tree Collapse file tree 4 files changed +14
-17
lines changed
Expand file tree Collapse file tree 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+
15<h1 >404</h1 >
26<blockquote >
37 <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 >
59</blockquote >
610
711<style >
Original file line number Diff line number Diff line change 88 </script >
99
1010<script >
11+ import { base as baseUrl } from " $app/paths"
1112 export let status, error
1213 </script >
1314
1415<h1 >{status }</h1 >
1516<blockquote >
1617 <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 >
1819</blockquote >
Original file line number Diff line number Diff line change 118118 "stylelint" : " ^14.0.0" ,
119119 "stylelint-config-standard" : " ^24.0.0" ,
120120 "svelte" : " ^3.37.0" ,
121+ "svelte-adapter-ghpages" : " 0.0.1" ,
121122 "ts-node" : " ^10.0.0" ,
122123 "typescript" : " ^4.5.2" ,
123124 "vite-plugin-svelte-md" : " ^0.1.3" ,
Original file line number Diff line number Diff line change 11/* global __dirname -- __dirname */
2- import staticAdapter from "@sveltejs/ adapter-static "
2+ import ghpagesAdapter from "svelte- adapter-ghpages "
33import path from "path"
44import svelteMd from "vite-plugin-svelte-md"
55import svelteMdOption from "./docs-svelte-kit/tools/vite-plugin-svelte-md-option.mjs"
@@ -14,11 +14,6 @@ const dirname =
1414 return path . dirname ( new URL ( metaUrl ) . pathname )
1515 } ) ( )
1616
17- const baseStaticAdapter = staticAdapter ( {
18- // default options are shown
19- pages : "build" ,
20- assets : "build" ,
21- } )
2217/** @type {import('@sveltejs/kit').Config } */
2318const config = {
2419 compilerOptions : {
@@ -29,15 +24,11 @@ const config = {
2924 paths : {
3025 base : "/eslint-plugin-svelte" ,
3126 } ,
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+ } ) ,
4132
4233 // hydrate the <div id="svelte"> element in src/app.html
4334 target : "#svelte" ,
You can’t perform that action at this time.
0 commit comments