Skip to content

Commit 7cb58f6

Browse files
committed
separate code spans
1 parent 0c74098 commit 7cb58f6

File tree

17 files changed

+27
-26
lines changed

17 files changed

+27
-26
lines changed

.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

apps/svelte.dev/content/docs/kit/20-core-concepts/10-routing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ To create a layout that applies to every page, make a file called `src/routes/+l
170170
<slot></slot>
171171
```
172172

173-
If we create pages for `/`, `/about` and `/settings`...
173+
If we create pages for ` / `, `/about` and `/settings`...
174174

175175
```html
176176
/// file: src/routes/+page.svelte
@@ -291,7 +291,7 @@ If an error is thrown (either `error(...)` or an unexpected error), the response
291291
292292
### Receiving data
293293
294-
By exporting `POST`/`PUT`/`PATCH`/`DELETE`/`OPTIONS`/`HEAD` handlers, `+server.js` files can be used to create a complete API:
294+
By exporting `POST` / `PUT` / `PATCH` / `DELETE` / `OPTIONS` / `HEAD` handlers, `+server.js` files can be used to create a complete API:
295295
296296
```svelte
297297
<!--- file: src/routes/add/+page.svelte --->
@@ -362,8 +362,8 @@ export async function fallback({ request }) {
362362
363363
`+server.js` files can be placed in the same directory as `+page` files, allowing the same route to be either a page or an API endpoint. To determine which, SvelteKit applies the following rules:
364364
365-
- `PUT`/`PATCH`/`DELETE`/`OPTIONS` requests are always handled by `+server.js` since they do not apply to pages
366-
- `GET`/`POST`/`HEAD` requests are treated as page requests if the `accept` header prioritises `text/html` (in other words, it's a browser page request), else they are handled by `+server.js`.
365+
- `PUT` / `PATCH` / `DELETE` / `OPTIONS` requests are always handled by `+server.js` since they do not apply to pages
366+
- `GET` / `POST` / `HEAD` requests are treated as page requests if the `accept` header prioritises `text/html` (in other words, it's a browser page request), else they are handled by `+server.js`.
367367
- Responses to `GET` requests will include a `Vary: Accept` header, so that proxies and browsers cache HTML and JSON responses separately.
368368
369369
## $types

apps/svelte.dev/content/docs/kit/20-core-concepts/30-form-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const actions = {
6868
};
6969
```
7070
71-
To invoke a named action, add a query parameter with the name prefixed by a `/` character:
71+
To invoke a named action, add a query parameter with the name prefixed by a ` / ` character:
7272
7373
```svelte
7474
<!--- file: src/routes/login/+page.svelte --->

apps/svelte.dev/content/docs/kit/20-core-concepts/40-page-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ SvelteKit will discover pages to prerender automatically, by starting at _entry
9494
/blog/[slug] # dynamic, because of `[slug]`
9595
```
9696

97-
...SvelteKit will prerender `/` and `/blog`, and in the process discover links like `<a href="/blog/hello-world">` which give it new pages to prerender.
97+
...SvelteKit will prerender ` / ` and `/blog`, and in the process discover links like `<a href="/blog/hello-world">` which give it new pages to prerender.
9898

9999
Most of the time, that's enough. In some situations, links to pages like `/blog/hello-world` might not exist (or might not exist on prerendered pages), in which case we need to tell SvelteKit about their existence.
100100

apps/svelte.dev/content/docs/kit/25-build-and-deploy/55-single-page-apps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The `fallback` page is an HTML page created by SvelteKit from your page template
3535

3636
On some hosts it may be `index.html` or something else entirely — consult your platform's documentation.
3737

38-
> [!NOTE] Note that the fallback page will always contain absolute asset paths (i.e. beginning with `/` rather than `.`) regardless of the value of [`paths.relative`](configuration#paths), since it is used to respond to requests for arbitrary paths.
38+
> [!NOTE] Note that the fallback page will always contain absolute asset paths (i.e. beginning with ` / ` rather than `.`) regardless of the value of [`paths.relative`](configuration#paths), since it is used to respond to requests for arbitrary paths.
3939
4040
## Apache
4141

apps/svelte.dev/content/docs/kit/30-advanced/10-advanced-routing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ src/routes/[...catchall]/+page.svelte
128128

129129
## Encoding
130130

131-
Some characters can't be used on the filesystem — `/` on Linux and Mac, `\ / : * ? " < > |` on Windows. The `#` and `%` characters have special meaning in URLs, and the `[ ] ( )` characters have special meaning to SvelteKit, so these also can't be used directly as part of your route.
131+
Some characters can't be used on the filesystem — ` / ` on Linux and Mac, `\ / : * ? " < > |` on Windows. The `#` and `%` characters have special meaning in URLs, and the `[ ] ( )` characters have special meaning to SvelteKit, so these also can't be used directly as part of your route.
132132

133133
To use these characters in your routes, you can use hexadecimal escape sequences, which have the format `[x+nn]` where `nn` is a hexadecimal character code:
134134

@@ -189,7 +189,7 @@ src/routes/
189189
└ +layout.svelte
190190
```
191191

192-
You can also put a `+page` directly inside a `(group)`, for example if `/` should be an `(app)` or a `(marketing)` page.
192+
You can also put a `+page` directly inside a `(group)`, for example if ` / ` should be an `(app)` or a `(marketing)` page.
193193

194194
### Breaking out of layouts
195195

apps/svelte.dev/content/docs/kit/30-advanced/40-service-workers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ self.addEventListener('fetch', (event) => {
6464
const url = new URL(event.request.url);
6565
const cache = await caches.open(CACHE);
6666

67-
// `build`/`files` can always be served from the cache
67+
// `build` / `files` can always be served from the cache
6868
if (ASSETS.includes(url.pathname)) {
6969
const response = await cache.match(url.pathname);
7070

apps/svelte.dev/content/docs/kit/30-advanced/70-packaging.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,10 @@ You should think carefully about whether or not the changes you make to your pac
222222

223223
`svelte-package` accepts the following options:
224224

225-
- `-w`/`--watch` — watch files in `src/lib` for changes and rebuild the package
226-
- `-i`/`--input` — the input directory which contains all the files of the package. Defaults to `src/lib`
227-
- `-o`/`--output` — the output directory where the processed files are written to. Your `package.json`'s `exports` should point to files inside there, and the `files` array should include that folder. Defaults to `dist`
228-
- `-t`/`--types` — whether or not to create type definitions (`d.ts` files). We strongly recommend doing this as it fosters ecosystem library quality. Defaults to `true`
225+
- `-w` / `--watch` — watch files in `src/lib` for changes and rebuild the package
226+
- `-i` / `--input` — the input directory which contains all the files of the package. Defaults to `src/lib`
227+
- `-o` / `--output` — the output directory where the processed files are written to. Your `package.json`'s `exports` should point to files inside there, and the `files` array should include that folder. Defaults to `dist`
228+
- `-t` / `--types` — whether or not to create type definitions (`d.ts` files). We strongly recommend doing this as it fosters ecosystem library quality. Defaults to `true`
229229
- `--tsconfig` - the path to a tsconfig or jsconfig. When not provided, searches for the next upper tsconfig/jsconfig in the workspace path.
230230

231231
## Publishing

apps/svelte.dev/content/docs/kit/40-best-practices/20-seo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const config = {
7575
export default config;
7676
```
7777

78-
...disabling `csr` in your root `+layout.js`/`+layout.server.js`...
78+
...disabling `csr` in your root `+layout.js` / `+layout.server.js`...
7979

8080
```js
8181
/// file: src/routes/+layout.server.js

apps/svelte.dev/content/docs/kit/60-appendix/10-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export function GET({ params, url }) {
177177
}
178178
```
179179
180-
(Note that you may also need to proxy `POST`/`PATCH` etc requests, and forward `request.headers`, depending on your needs.)
180+
(Note that you may also need to proxy `POST` / `PATCH` etc requests, and forward `request.headers`, depending on your needs.)
181181
182182
### How do I use middleware?
183183

0 commit comments

Comments
 (0)