[ci] format

This commit is contained in:
natemoo-re 2022-03-10 23:36:11 +00:00 committed by GitHub Actions
parent fb7b09253f
commit 3a6ef130dd

View file

@ -10,13 +10,13 @@
```ts ```ts
// astro.config.ts // astro.config.ts
import type { AstroUserConfig } from 'astro' import type { AstroUserConfig } from 'astro';
const config: AstroUserConfig = { const config: AstroUserConfig = {
sitemap: true, sitemap: true,
sitemapFilter: (page: string) => !page.includes('secret-page') sitemapFilter: (page: string) => !page.includes('secret-page'),
} };
export default config export default config;
``` ```
* [#2750](https://github.com/withastro/astro/pull/2750) [`79fc3204`](https://github.com/withastro/astro/commit/79fc320480b2a638ef707079a624519bd54f1550) Thanks [@FredKSchott](https://github.com/FredKSchott)! - update esbuild@0.14.25 * [#2750](https://github.com/withastro/astro/pull/2750) [`79fc3204`](https://github.com/withastro/astro/commit/79fc320480b2a638ef707079a624519bd54f1550) Thanks [@FredKSchott](https://github.com/FredKSchott)! - update esbuild@0.14.25
@ -43,7 +43,7 @@
```ts ```ts
if (Astro.slots.has('default')) { if (Astro.slots.has('default')) {
const content = await Astro.slots.render('default'); const content = await Astro.slots.render('default');
} }
``` ```
@ -67,9 +67,9 @@
```json ```json
{ {
"scripts": { "scripts": {
"build": "astro build --legacy-build" "build": "astro build --legacy-build"
} }
} }
``` ```
@ -181,12 +181,12 @@
```typescript ```typescript
// src/pages/company.json.ts // src/pages/company.json.ts
export async function get() { export async function get() {
return { return {
body: JSON.stringify({ body: JSON.stringify({
name: 'Astro Technology Company', name: 'Astro Technology Company',
url: 'https://astro.build/', url: 'https://astro.build/',
}), }),
}; };
} }
``` ```
@ -348,12 +348,12 @@
```typescript ```typescript
// src/pages/company.json.ts // src/pages/company.json.ts
export async function get() { export async function get() {
return { return {
body: JSON.stringify({ body: JSON.stringify({
name: 'Astro Technology Company', name: 'Astro Technology Company',
url: 'https://astro.build/', url: 'https://astro.build/',
}), }),
}; };
} }
``` ```
@ -1708,10 +1708,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
```js ```js
export default { export default {
markdownOptions: { markdownOptions: {
remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]], remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]], rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]],
}, },
}; };
``` ```
@ -1731,10 +1731,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
```js ```js
export default { export default {
name: '@matthewp/my-renderer', name: '@matthewp/my-renderer',
server: './server.js', server: './server.js',
client: './client.js', client: './client.js',
hydrationPolyfills: ['./my-polyfill.js'], hydrationPolyfills: ['./my-polyfill.js'],
}; };
``` ```