Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ If you're creating a documentation PR, make sure you're targeting the right repo
- `docs/svelte` -> https://github.com/sveltejs/svelte
- `docs/kit` -> https://github.com/sveltejs/kit
- `docs/cli` -> https://github.com/sveltejs/cli
- `docs/vite-plugin-svelte` -> https://github.com/sveltejs/vite-plugin-svelte

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

Expand All @@ -17,6 +18,6 @@ The tutorial, blog and examples are maintained within this repository.
```
pnpm install
cd apps/svelte.dev
USE_GIT=true pnpm sync-docs
pnpm sync-docs -p
pnpm run dev
```
8 changes: 8 additions & 0 deletions apps/svelte.dev/scripts/sync-docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ const packages: Package[] = [
pkg: 'packages/cli',
docs: 'documentation/docs',
types: null
},
{
name: 'vite-plugin-svelte',
repo: `${parsed.values.owner}/vite-plugin-svelte`,
branch: branches['vite-plugin-svelte'] ?? 'docs/omni-site-reformat',
pkg: 'packages/vite-plugin-svelte',
docs: 'documentation/docs',
types: null
}
];

Expand Down
2 changes: 1 addition & 1 deletion apps/svelte.dev/src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const nav_links: NavigationLink[] = [
{
title: 'Docs',
slug: 'docs',
sections: [docs.topics['docs/svelte'], docs.topics['docs/kit'], docs.topics['docs/cli']].map(
sections: [docs.topics['docs/svelte'], docs.topics['docs/kit'], docs.topics['docs/cli'], docs.topics['docs/vite-plugin-svelte']].map(
(topic) => ({
title: topic.metadata.title,
path: '/' + topic.slug, // this will make the UI show a flyout menu for the docs nav entry
Expand Down
Loading