[ci] format

This commit is contained in:
FredKSchott 2022-03-22 03:28:33 +00:00 committed by GitHub Actions
parent d082689385
commit 1378a9ed7c

View file

@ -60,7 +60,7 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
export default defineConfig({ export default defineConfig({
renderers: [], renderers: [],
}); });
``` ```
@ -98,9 +98,9 @@
```json ```json
{ {
"scripts": { "scripts": {
"build": "astro build --legacy-build" "build": "astro build --legacy-build"
} }
} }
``` ```
@ -120,7 +120,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');
} }
``` ```
@ -204,7 +204,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');
} }
``` ```
@ -228,9 +228,9 @@
```json ```json
{ {
"scripts": { "scripts": {
"build": "astro build --legacy-build" "build": "astro build --legacy-build"
} }
} }
``` ```
@ -342,12 +342,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/',
}), }),
}; };
} }
``` ```
@ -509,12 +509,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/',
}), }),
}; };
} }
``` ```
@ -1869,10 +1869,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' }]],
}, },
}; };
``` ```
@ -1892,10 +1892,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'],
}; };
``` ```