File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
sites/docs/src/routes/docs Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 38
38
import { goto } from ' $app/navigation' ;
39
39
import { page } from ' $app/stores' ;
40
40
41
- $ : [type , name ] = $page .url .pathname .split (' /' ).slice (2 ) ?? [];
41
+ $ : [packageName , name ] = $page .url .pathname .split (' /' ).slice (2 ) ?? [];
42
42
$ : title = $page .data .meta ?.title ?? name ;
43
- $ : pageUrl = ` src/routes/docs/${ type }/${name }/+page.svelte?plain=1` ;
44
- $ : sourceUrl = ` src/lib/${type }/${ name }.${ type === ' components ' ? ' svelte ' : ' ts ' } ` ;
43
+ $ : pageUrl = ` ${ packageName }/${name }/+page.svelte?plain=1` ;
44
+ $ : sourceUrl = ` ${ packageName }/ src/lib/${name }.ts ` ;
45
45
$ : ({
46
46
description ,
47
47
features ,
101
101
<div class =" inline-block text-xs font-bold text-surface-content/50 capitalize" >Docs</div >
102
102
<Icon data ={mdiChevronRight } class =" divider opacity-25" />
103
103
<div class =" inline-block text-xs font-bold text-primary capitalize" >
104
- {type }
104
+ {packageName }
105
105
</div >
106
106
</div >
107
107
131
131
label =" Source"
132
132
{source }
133
133
href ={sourceUrl
134
- ? ` https://github.com/techniq/svelte-ux /blob/main/packages/svelte-ux /${sourceUrl } `
134
+ ? ` https://github.com/techniq/layerstack /blob/main/packages/${sourceUrl } `
135
135
: ' ' }
136
136
icon ={mdiCodeTags }
137
137
/>
140
140
label =" Page source"
141
141
source ={pageSource }
142
142
href ={pageUrl
143
- ? ` https://github.com/techniq/svelte-ux /blob/main/packages/svelte-ux /${pageUrl } `
143
+ ? ` https://github.com/techniq/layerstack /blob/main/sites/docs/src/routes/docs /${pageUrl } `
144
144
: ' ' }
145
145
icon ={mdiFileDocumentEditOutline }
146
146
/>
You can’t perform that action at this time.
0 commit comments