Skip to content

Commit faedfc7

Browse files
authored
Merge branch 'main' into issue-1283
2 parents 33ac00e + 8999dfd commit faedfc7

File tree

106 files changed

+4123
-2063
lines changed

Some content is hidden

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

106 files changed

+4123
-2063
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
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).
1+
<!-- 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). -->
42

53
### Before submitting the PR, please make sure you do the following
64

.github/workflows/docs-preview-create.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
description: 'Branch (eg. my-feature-branch)'
2020
required: true
2121
type: string
22+
sha:
23+
description: 'The commit SHA responsible for triggering this workflow'
24+
required: false
25+
type: string
2226

2327
permissions:
2428
contents: write
@@ -62,9 +66,11 @@ jobs:
6266
6367
- name: Push
6468
id: push
65-
run: git add -A && git commit -m "sync docs" && git push -u origin ${{ env.BRANCH }} --force
69+
continue-on-error: true
70+
run: git add -A && git commit -m "sync docs for repo ${{ inputs.repo }}, pr ${{ inputs.pr }}, commit ${{ inputs.sha }}" && git push -u origin ${{ env.BRANCH }} --force
6671

6772
- name: Request preview comment
73+
if: ${{ steps.push.outcome == 'success' }}
6874
uses: peter-evans/repository-dispatch@v3
6975
with:
7076
event-type: 'request-preview-comment'
@@ -73,3 +79,15 @@ jobs:
7379
"repo": "${{ inputs.repo }}",
7480
"pr": "${{ inputs.pr }}"
7581
}
82+
83+
- name: Dispatch docs-unaffected
84+
if: ${{ steps.push.outcome != 'success' }}
85+
uses: peter-evans/repository-dispatch@v3
86+
with:
87+
event-type: 'docs-unaffected'
88+
client-payload: |-
89+
{
90+
"repo": "${{ inputs.repo }}",
91+
"pr": "${{ inputs.pr }}",
92+
"sha": "${{ inputs.sha }}"
93+
}

apps/kit.svelte.dev/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/kit.svelte.dev/vercel.json

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

apps/learn.svelte.dev/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)