Replace tabs with double spaces (#6562)
This commit is contained in:
parent
7f17ab8029
commit
67d3d1d65a
6 changed files with 41 additions and 41 deletions
|
@ -116,18 +116,18 @@ When providing a formatted RSS item list, see the `RSSFeedItem` type reference b
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
type RSSFeedItem = {
|
type RSSFeedItem = {
|
||||||
/** Link to item */
|
/** Link to item */
|
||||||
link: string;
|
link: string;
|
||||||
/** Title of item */
|
/** Title of item */
|
||||||
title: string;
|
title: string;
|
||||||
/** Publication date of item */
|
/** Publication date of item */
|
||||||
pubDate: Date;
|
pubDate: Date;
|
||||||
/** Item description */
|
/** Item description */
|
||||||
description?: string;
|
description?: string;
|
||||||
/** Full content of the item, should be valid HTML */
|
/** Full content of the item, should be valid HTML */
|
||||||
content?: string;
|
content?: string;
|
||||||
/** Append some other XML-valid data to this item */
|
/** Append some other XML-valid data to this item */
|
||||||
customData?: string;
|
customData?: string;
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -506,7 +506,7 @@ import { defineConfig } from 'astro/config';
|
||||||
import image from '@astrojs/image';
|
import image from '@astrojs/image';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
integrations: [image({
|
integrations: [image({
|
||||||
// may be useful if your hosting provider allows caching between CI builds
|
// may be useful if your hosting provider allows caching between CI builds
|
||||||
cacheDir: "./.cache/image"
|
cacheDir: "./.cache/image"
|
||||||
})]
|
})]
|
||||||
|
|
|
@ -113,21 +113,21 @@ import markdoc from '@astrojs/markdoc';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
integrations: [
|
integrations: [
|
||||||
markdoc({
|
markdoc({
|
||||||
tags: {
|
tags: {
|
||||||
aside: {
|
aside: {
|
||||||
render: 'Aside',
|
render: 'Aside',
|
||||||
attributes: {
|
attributes: {
|
||||||
// Component props as attribute definitions
|
// Component props as attribute definitions
|
||||||
// See Markdoc's documentation on defining attributes
|
// See Markdoc's documentation on defining attributes
|
||||||
// https://markdoc.dev/docs/attributes#defining-attributes
|
// https://markdoc.dev/docs/attributes#defining-attributes
|
||||||
type: { type: String },
|
type: { type: String },
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -159,11 +159,11 @@ import markdoc from '@astrojs/markdoc';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
integrations: [
|
integrations: [
|
||||||
markdoc({
|
markdoc({
|
||||||
nodes: {
|
nodes: {
|
||||||
heading: {
|
heading: {
|
||||||
render: 'Heading',
|
render: 'Heading',
|
||||||
// Markdoc requires type defs for each attribute.
|
// Markdoc requires type defs for each attribute.
|
||||||
// These should mirror the `Props` type of the component
|
// These should mirror the `Props` type of the component
|
||||||
// you are rendering.
|
// you are rendering.
|
||||||
|
@ -172,10 +172,10 @@ export default defineConfig({
|
||||||
attributes: {
|
attributes: {
|
||||||
level: { type: String },
|
level: { type: String },
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@ After verifying that the sitemaps are built, you can add them to your site's `<h
|
||||||
```html ins={3}
|
```html ins={3}
|
||||||
// src/layouts/Layout.astro
|
// src/layouts/Layout.astro
|
||||||
<head>
|
<head>
|
||||||
<link rel="sitemap" href="/sitemap-index.xml">
|
<link rel="sitemap" href="/sitemap-index.xml">
|
||||||
</head>
|
</head>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ __`svelte.config.js`__
|
||||||
import { vitePreprocess } from '@astrojs/svelte';
|
import { vitePreprocess } from '@astrojs/svelte';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -108,8 +108,8 @@ The `exclude` option receives a list of WebAPIs to exclude from polyfilling.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
polyfill(globalThis, {
|
polyfill(globalThis, {
|
||||||
// disables polyfills for setTimeout clearTimeout
|
// disables polyfills for setTimeout clearTimeout
|
||||||
exclude: 'setTimeout clearTimeout',
|
exclude: 'setTimeout clearTimeout',
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -117,22 +117,22 @@ The `exclude` option accepts shorthands to exclude multiple polyfills. These sho
|
||||||
|
|
||||||
```js
|
```js
|
||||||
polyfill(globalThis, {
|
polyfill(globalThis, {
|
||||||
// disables polyfills for setTimeout clearTimeout
|
// disables polyfills for setTimeout clearTimeout
|
||||||
exclude: 'Timeout+',
|
exclude: 'Timeout+',
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
polyfill(globalThis, {
|
polyfill(globalThis, {
|
||||||
// disables polyfills for Node, Window, Document, HTMLElement, etc.
|
// disables polyfills for Node, Window, Document, HTMLElement, etc.
|
||||||
exclude: 'Node+',
|
exclude: 'Node+',
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
```js
|
```js
|
||||||
polyfill(globalThis, {
|
polyfill(globalThis, {
|
||||||
// disables polyfills for Event, EventTarget, Node, Window, Document, HTMLElement, etc.
|
// disables polyfills for Event, EventTarget, Node, Window, Document, HTMLElement, etc.
|
||||||
exclude: 'Event+',
|
exclude: 'Event+',
|
||||||
})
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue