Skip to content

Commit aa5c0dd

Browse files
committed
wip: add vite-plugin-svelte docs
1 parent 69cb697 commit aa5c0dd

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ If you're creating a documentation PR, make sure you're targeting the right repo
99
- `docs/svelte` -> https://github.com/sveltejs/svelte
1010
- `docs/kit` -> https://github.com/sveltejs/kit
1111
- `docs/cli` -> https://github.com/sveltejs/cli
12+
- `docs/vite-plugin-svelte` -> https://github.com/sveltejs/vite-plugin-svelte
1213

1314
The tutorial, blog and examples are maintained within this repository.
1415

@@ -17,6 +18,6 @@ The tutorial, blog and examples are maintained within this repository.
1718
```
1819
pnpm install
1920
cd apps/svelte.dev
20-
USE_GIT=true pnpm sync-docs
21+
pnpm sync-docs -p
2122
pnpm run dev
2223
```

apps/svelte.dev/scripts/sync-docs/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ const packages: Package[] = [
149149
pkg: 'packages/cli',
150150
docs: 'documentation/docs',
151151
types: null
152+
},
153+
{
154+
name: 'vite-plugin-svelte',
155+
repo: `${parsed.values.owner}/vite-plugin-svelte`,
156+
branch: branches['vite-plugin-svelte'] ?? 'docs/omni-site-reformat',
157+
pkg: 'packages/vite-plugin-svelte',
158+
docs: 'documentation/docs',
159+
types: null
152160
}
153161
];
154162

apps/svelte.dev/src/routes/+layout.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const nav_links: NavigationLink[] = [
99
{
1010
title: 'Docs',
1111
slug: 'docs',
12-
sections: [docs.topics['docs/svelte'], docs.topics['docs/kit'], docs.topics['docs/cli']].map(
12+
sections: [docs.topics['docs/svelte'], docs.topics['docs/kit'], docs.topics['docs/cli'], docs.topics['docs/vite-plugin-svelte']].map(
1313
(topic) => ({
1414
title: topic.metadata.title,
1515
path: '/' + topic.slug, // this will make the UI show a flyout menu for the docs nav entry

0 commit comments

Comments
 (0)