|
1 | | -<script> |
| 1 | +<script lang="ts"> |
2 | 2 | import { page } from '$app/stores' |
3 | 3 |
|
4 | 4 | import ResetItems from '$lib/components/reset-items.svelte' |
|
8 | 8 | import HeaderLink from '@nick-mazuk/ui-svelte/src/components/header/header-link/header-link.svelte' |
9 | 9 | import HeaderMobileLink from '@nick-mazuk/ui-svelte/src/components/header/header-mobile-link/header-mobile-link.svelte' |
10 | 10 | import HeaderMobileSubgroup from '@nick-mazuk/ui-svelte/src/components/header/header-mobile-subgroup/header-mobile-subgroup.svelte' |
| 11 | + import type { TocItems } from '@nick-mazuk/ui-svelte/src/components/table-of-contents' |
11 | 12 | import Github from '@nick-mazuk/ui-svelte/src/elements/icon/github.svelte' |
12 | 13 |
|
13 | 14 | import Footer from '@nick-mazuk/ui-svelte/src/components/footer/footer.svelte' |
|
19 | 20 | import { libraryPages } from '../lib/lib/library-pages' |
20 | 21 |
|
21 | 22 | const githubRepoUrl = 'https://github.com/Nick-Mazuk/jw-lua-scripts' |
| 23 | +
|
| 24 | + const helpPages: TocItems = [ |
| 25 | + { |
| 26 | + text: 'Install scripts', |
| 27 | + href: '/help/install', |
| 28 | + children: [ |
| 29 | + { |
| 30 | + text: 'macOS', |
| 31 | + href: '/help/install/mac', |
| 32 | + }, |
| 33 | + { |
| 34 | + text: 'Windows', |
| 35 | + href: '/help/install/windows', |
| 36 | + }, |
| 37 | + ], |
| 38 | + }, |
| 39 | + { |
| 40 | + text: 'Request script', |
| 41 | + href: 'https://github.com/Nick-Mazuk/jw-lua-scripts/issues/new/choose', |
| 42 | + }, |
| 43 | + { |
| 44 | + text: 'Report bug', |
| 45 | + href: 'https://github.com/Nick-Mazuk/jw-lua-scripts/issues/new/choose', |
| 46 | + }, |
| 47 | + { |
| 48 | + text: 'Contribute', |
| 49 | + href: '/docs/getting-started', |
| 50 | + }, |
| 51 | + ] |
22 | 52 | </script> |
23 | 53 |
|
24 | 54 | <svelte:head> |
|
30 | 60 | <Header sticky page="{$page.path}"> |
31 | 61 | <HeaderBrand text="JW Lua Scripts" slot="left" /> |
32 | 62 | <svelte:fragment slot="right"> |
| 63 | + <HeaderLink href="/help">Help</HeaderLink> |
33 | 64 | <HeaderLink href="/docs/getting-started">Develper docs</HeaderLink> |
34 | 65 | <HeaderLink href="{githubRepoUrl}"><Github title="Github" size="{6}" /></HeaderLink> |
35 | 66 | </svelte:fragment> |
36 | 67 | <svelte:fragment slot="mobile"> |
| 68 | + <HeaderMobileSubgroup items="{helpPages}" basePath="/help"> |
| 69 | + <HeaderMobileLink href="/help" slot="main">Help</HeaderMobileLink> |
| 70 | + </HeaderMobileSubgroup> |
37 | 71 | <HeaderMobileSubgroup items="{libraryPages}" basePath="/docs"> |
38 | 72 | <HeaderMobileLink href="/docs/getting-started" slot="main"> |
39 | 73 | Developer docs |
|
0 commit comments