Skip to content

Commit a3fcc90

Browse files
authored
handle @SInCE tags (#392)
* handle @SInCE tags * sync
1 parent 06e755b commit a3fcc90

File tree

6 files changed

+27
-7
lines changed

6 files changed

+27
-7
lines changed

apps/svelte.dev/content/docs/kit/25-build-and-deploy/30-adapter-auto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ When you create a new SvelteKit project with `npm create svelte@latest`, it inst
88
- [`@sveltejs/adapter-netlify`](adapter-netlify) for [Netlify](https://netlify.com/)
99
- [`@sveltejs/adapter-vercel`](adapter-vercel) for [Vercel](https://vercel.com/)
1010
- [`svelte-adapter-azure-swa`](https://github.com/geoffrich/svelte-adapter-azure-swa) for [Azure Static Web Apps](https://docs.microsoft.com/en-us/azure/static-web-apps/)
11-
- [`svelte-kit-sst`](https://github.com/sst/sst/tree/master/packages/svelte-kit-sst) for [AWS via SST](https://docs.sst.dev/start/svelte)
11+
- [`svelte-kit-sst`](https://github.com/sst/sst/tree/master/packages/svelte-kit-sst) for [AWS via SST](https://sst.dev/docs/start/aws/svelte)
1212
- [`@sveltejs/adapter-node`](https://kit.svelte.dev/docs/adapter-node) for [Google Cloud Run](https://cloud.google.com/run)
1313

1414
It's recommended to install the appropriate adapter to your `devDependencies` once you've settled on a target environment, since this will add the adapter to your lockfile and slightly improve install times on CI.

apps/svelte.dev/content/docs/kit/40-best-practices/05-performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ If you see in the network tab of your browser that an API call is taking a long
3737

3838
### Images
3939

40-
Reducing the size of image files is often one of the most impactful changes you can make to a site's performance. Svelte provides the `@sveltejs/enhanced-image` package, detailed on the [images](images) page, for making this easier. Additionally, Lighthouse is useful for identifying the worst offenders.
40+
Reducing the size of image files is often one of the most impactful changes you can make to a site's performance. Svelte provides the `@sveltejs/enhanced-img` package, detailed on the [images](images) page, for making this easier. Additionally, Lighthouse is useful for identifying the worst offenders.
4141

4242
### Videos
4343

apps/svelte.dev/content/docs/kit/98-reference/50-configuration.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ privatePrefix?: string;
409409
<div class="ts-block-property-bullets">
410410

411411
- <span class="tag">default</span> `""`
412+
- <span class="tag since">available since</span> v1.21.0
412413

413414
</div>
414415

@@ -509,6 +510,7 @@ universal?: string;
509510
<div class="ts-block-property-bullets">
510511

511512
- <span class="tag">default</span> `"src/hooks"`
513+
- <span class="tag since">available since</span> v2.3.0
512514

513515
</div>
514516

@@ -710,6 +712,7 @@ preloadStrategy?: 'modulepreload' | 'preload-js' | 'preload-mjs';
710712
<div class="ts-block-property-bullets">
711713

712714
- <span class="tag">default</span> `"modulepreload"`
715+
- <span class="tag since">available since</span> v1.8.4
713716

714717
</div>
715718

@@ -786,6 +789,7 @@ relative?: boolean;
786789
<div class="ts-block-property-bullets">
787790

788791
- <span class="tag">default</span> `true`
792+
- <span class="tag since">available since</span> v1.9.0
789793

790794
</div>
791795

@@ -886,6 +890,7 @@ handleHttpError?: PrerenderHttpErrorHandlerValue;
886890
<div class="ts-block-property-bullets">
887891

888892
- <span class="tag">default</span> `"fail"`
893+
- <span class="tag since">available since</span> v1.15.7
889894

890895
</div>
891896

@@ -931,6 +936,7 @@ handleMissingId?: PrerenderMissingIdHandlerValue;
931936
<div class="ts-block-property-bullets">
932937

933938
- <span class="tag">default</span> `"fail"`
939+
- <span class="tag since">available since</span> v1.15.7
934940

935941
</div>
936942

@@ -955,6 +961,7 @@ handleEntryGeneratorMismatch?: PrerenderEntryGeneratorMismatchHandlerValue;
955961
<div class="ts-block-property-bullets">
956962

957963
- <span class="tag">default</span> `"fail"`
964+
- <span class="tag since">available since</span> v1.16.0
958965

959966
</div>
960967

@@ -1066,6 +1073,7 @@ config?: (config: Record<string, any>) => Record<string, any> | void;
10661073
<div class="ts-block-property-bullets">
10671074
10681075
- <span class="tag">default</span> `(config) => config`
1076+
- <span class="tag since">available since</span> v1.3.0
10691077
10701078
</div>
10711079

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ function munge_type_element(member: ts.TypeElement, depth = 1): TypeElement | un
249249
bullets.push(`- <span class="tag deprecated">deprecated</span> ${tag.comment || ''}`);
250250
break;
251251

252+
case 'since':
253+
bullets.push(`- <span class="tag since">available since</span> v${tag.comment}`);
254+
break;
255+
252256
default:
253257
console.log(`unhandled JSDoc tag: ${type}`);
254258
}

packages/site-kit/src/lib/components/Text.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@
370370
li::before {
371371
content: '';
372372
position: absolute;
373-
top: 1.4rem;
373+
top: calc(50% - 0.3rem);
374374
left: -1.8rem;
375375
background-color: var(--sk-back-5);
376376
width: 0.6rem;

packages/site-kit/src/lib/styles/text.css

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@
2929
margin: 0rem -1rem 0rem 1rem;
3030
}
3131

32-
.ts-block-property-bullets .tag {
33-
font-size: 1.4rem;
34-
text-transform: uppercase;
35-
color: #666;
32+
.ts-block-property-bullets {
33+
li {
34+
&::before {
35+
content: none !important;
36+
}
37+
}
38+
39+
.tag {
40+
font: var(--sk-font-ui-medium);
41+
text-transform: uppercase;
42+
color: var(--sk-text-4);
43+
}
3644
}
3745

3846
.ts-block-property ul:last-child {

0 commit comments

Comments
 (0)