[ci] format

This commit is contained in:
natemoo-re 2022-03-11 22:48:55 +00:00 committed by GitHub Actions
parent 30e78a0bd8
commit d1a7f6a1c5

View file

@ -18,9 +18,9 @@
```json ```json
{ {
"scripts": { "scripts": {
"build": "astro build --legacy-build" "build": "astro build --legacy-build"
} }
} }
``` ```
@ -40,7 +40,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');
} }
``` ```
@ -50,13 +50,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;
``` ```
- [#2767](https://github.com/withastro/astro/pull/2767) [`2bb2c2f7`](https://github.com/withastro/astro/commit/2bb2c2f7d153863319652dbc93396bedd1a16756) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Update `@astrojs/compiler` to `0.12.0` - [#2767](https://github.com/withastro/astro/pull/2767) [`2bb2c2f7`](https://github.com/withastro/astro/commit/2bb2c2f7d153863319652dbc93396bedd1a16756) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Update `@astrojs/compiler` to `0.12.0`
@ -124,7 +124,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');
} }
``` ```
@ -148,9 +148,9 @@
```json ```json
{ {
"scripts": { "scripts": {
"build": "astro build --legacy-build" "build": "astro build --legacy-build"
} }
} }
``` ```
@ -262,12 +262,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/',
}), }),
}; };
} }
``` ```
@ -429,12 +429,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/',
}), }),
}; };
} }
``` ```
@ -1789,10 +1789,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' }]],
}, },
}; };
``` ```
@ -1812,10 +1812,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'],
}; };
``` ```