Skip to content

Commit e5b32da

Browse files
committed
Merge branch 'main' into add-cli-docs
2 parents acda30f + 70dc159 commit e5b32da

File tree

295 files changed

+7261
-3338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

295 files changed

+7261
-3338
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### A note on documentation PRs
2+
3+
If this is a documentation PR (i.e. changing content within `apps/svelte.dev/content/docs`), then this is the wrong repository to make those changes. The content in this folder is synced from other repositories. Therefore, these changes should be made in their respective repositories (at https://github.com/sveltejs/svelte or https://github.com/sveltejs/kit, or example).
4+
5+
### Before submitting the PR, please make sure you do the following
6+
7+
- [ ] It's really useful if your PR references an issue where it is discussed ahead of time.
8+
- [ ] Prefix your PR title with `feat:`, `fix:`, `chore:`, or `docs:`.
9+
- [ ] This message body should clearly illustrate what problems it solves.

.github/workflows/release.yml

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

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ dist
55
pnpm-lock.yaml
66
.vercel
77
_generated.md
8-
land-110m.json
8+
land-110m.json
9+
/apps/svelte.dev/content/docs

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# svelte.dev
2+
3+
This is the repository behind [svelte.dev](https://svelte.dev), the official Svelte site, and the related packages that it relies on.
4+
5+
## Documentation PRs
6+
7+
If you're creating a documentation PR, make sure you're targeting the right repository. More specifically, changes to content within `apps/svelte.dev/content/docs` are synced from other repositories, and documentation changes within those folder should therefore be made in those repositories:
8+
9+
- `docs/svelte` -> https://github.com/sveltejs/svelte
10+
- `docs/kit` -> https://github.com/sveltejs/kit
11+
- `docs/cli` -> https://github.com/sveltejs/cli
12+
13+
The tutorial, blog and examples are maintained within this repository.
14+
15+
## Setup
16+
17+
```
18+
pnpm install
19+
cd apps/svelte.dev
20+
USE_GIT=true pnpm sync-docs
21+
pnpm run dev
22+
```

apps/kit.svelte.dev/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kit.svelte.dev once was the home for SvelteKit, now its deployment just ensures that we redirect to the corresponding pages on svelte.dev

apps/kit.svelte.dev/vercel.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"$schema": "https://openapi.vercel.sh/vercel.json",
3+
"redirects": [
4+
{
5+
"source": "/",
6+
"destination": "https://svelte.dev/",
7+
"permanent": true
8+
},
9+
{
10+
"source": "/docs/layouts",
11+
"destination": "https://svelte.dev/docs/kit/routing",
12+
"permanent": true
13+
},
14+
{
15+
"source": "/docs/loading",
16+
"destination": "https://svelte.dev/docs/kit/load",
17+
"permanent": true
18+
},
19+
{
20+
"source": "/docs/modules",
21+
"destination": "https://svelte.dev/docs/kit/@sveltejs-kit"
22+
},
23+
{
24+
"source": "/docs/types",
25+
"destination": "https://svelte.dev/docs/kit/@sveltejs-kit"
26+
},
27+
{
28+
"source": "/docs",
29+
"destination": "https://svelte.dev/docs/kit",
30+
"permanent": true
31+
},
32+
{
33+
"source": "/docs/(.*)",
34+
"destination": "https://svelte.dev/docs/kit/$1",
35+
"permanent": true
36+
},
37+
{
38+
"source": "/(.*)",
39+
"destination": "https://svelte.dev"
40+
}
41+
]
42+
}

apps/learn.svelte.dev/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
learn.svelte.dev once was the home for the Svelte(Kit) tutorial, now its deployment just ensures that we redirect to the corresponding pages on svelte.dev

0 commit comments

Comments
 (0)