Skip to content

Commit 48c2f50

Browse files
committed
wip
1 parent 353ca2f commit 48c2f50

File tree

10 files changed

+74
-164
lines changed

10 files changed

+74
-164
lines changed

β€Ždocs/.vitepress/config.tsβ€Ž

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,50 @@
11
import { defineConfig } from 'vitepress';
22

33
export default defineConfig({
4-
title: 'sv-router documentation',
4+
title: 'sv-router',
55
description: 'Modern Svelte routing',
6+
head: [['link', { rel: 'icon', href: '/favicon.ico' }]],
67
cleanUrls: true,
78
themeConfig: {
89
nav: [
9-
{ text: 'Home', link: '/' },
10-
{ text: 'Examples', link: '/markdown-examples' },
11-
],
12-
sidebar: [
10+
{ text: 'Guide', link: '/guide/why', activeMatch: '/guide/' },
11+
{ text: 'Reference', link: '/reference/foo', activeMatch: '/reference/' },
12+
{ text: 'Examples', link: 'https://github.com/colinlienard/sv-router/tree/main/examples' },
1313
{
14-
text: 'Examples',
15-
items: [
16-
{ text: 'Markdown Examples', link: '/markdown-examples' },
17-
{ text: 'Runtime API Examples', link: '/api-examples' },
18-
],
14+
text: 'Changelog',
15+
link: 'https://github.com/colinlienard/sv-router/blob/main/CHANGELOG.md',
1916
},
2017
],
18+
sidebar: {
19+
'/guide': [
20+
{
21+
text: 'Introduction',
22+
items: [
23+
{ text: 'Why sv-router?', link: '/guide/why' },
24+
{ text: 'Getting Started', link: '/guide/getting-started' },
25+
],
26+
},
27+
],
28+
'/reference': [
29+
{
30+
text: 'Reference',
31+
items: [
32+
{ text: 'foo', link: '/reference/foo' },
33+
{ text: 'bar', link: '/reference/bar' },
34+
],
35+
},
36+
],
37+
},
2138
socialLinks: [
2239
{ icon: 'github', link: 'https://github.com/colinlienard/sv-router' },
2340
{ icon: 'x', link: 'https://x.com/colinlienard' },
2441
],
42+
footer: {
43+
message: 'Released under the MIT License.',
44+
copyright: 'Copyright Β© 2025 Colin Lienard',
45+
},
46+
search: {
47+
provider: 'local',
48+
},
2549
},
2650
});

β€Ždocs/api-examples.mdβ€Ž

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Getting Started
2+
3+
Welcome to the sv-router documentation! This guide will help you get started with the library, from installation to basic usage.

β€Ždocs/guide/why.mdβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Why sv-router?
2+
3+
sv-router is a feature-rich yet intuitive routing library for Svelte SPAs. It was designed to provide a modern and flexible routing solution that is easy to use and understand. Here are some reasons why you should consider using sv-router for your next project:

β€Ždocs/index.mdβ€Ž

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,37 @@
11
---
2-
# https://vitepress.dev/reference/default-theme-home-page
32
layout: home
43

54
hero:
6-
name: 'sv-router documentation'
7-
text: 'Modern Svelte routing'
8-
tagline: My great project tagline
5+
name: sv-router
6+
text: Modern Svelte routing
7+
tagline: A feature-rich yet intuitive routing library for Svelte SPAs.
8+
image:
9+
src: /logo.png
910
actions:
1011
- theme: brand
11-
text: Markdown Examples
12-
link: /markdown-examples
12+
text: Get Started
13+
link: /guide/getting-started
1314
- theme: alt
14-
text: API Examples
15-
link: /api-examples
15+
text: Why sv-router?
16+
link: /guide/why
17+
- theme: alt
18+
text: GitHub
19+
link: https://github.com/colinlienard/sv-router
1620

1721
features:
18-
- title: Feature A
19-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
20-
- title: Feature B
21-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
22-
- title: Feature C
23-
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
22+
- icon:
23+
src: /typescript.svg
24+
title: Typesafe navigation
25+
details: Get autocomplete and type checking for your routes, ensuring reliable navigation.
26+
- icon:
27+
src: /vitejs.svg
28+
title: File-based routing (optional)
29+
details: Enjoy the DX of a meta-framework-like approach with a Vite plugin.
30+
- icon: 🌿
31+
title: Nested routes
32+
details: Create complex layouts with ease, thanks to intuitive route nesting.
33+
- icon:
34+
src: /svelte.svg
35+
title: Made for Svelte 5
36+
details: Benefit from faster performance and a smaller bundle size, built natively for the latest Svelte.
2437
---

β€Ždocs/markdown-examples.mdβ€Ž

Lines changed: 0 additions & 85 deletions
This file was deleted.

β€Ždocs/public/svelte.svgβ€Ž

Lines changed: 4 additions & 0 deletions
Loading

β€Ždocs/public/typescript.svgβ€Ž

Lines changed: 1 addition & 0 deletions
Loading

β€Ždocs/public/vitejs.svgβ€Ž

Lines changed: 1 addition & 0 deletions
Loading

β€Ždocs/reference/foo.mdβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Foo

0 commit comments

Comments
Β (0)