[ci] format

This commit is contained in:
FredKSchott 2022-04-02 19:50:17 +00:00 committed by GitHub Actions
parent 7fe149ae43
commit d63213f119
3 changed files with 37 additions and 37 deletions

View file

@ -99,7 +99,7 @@
import netlify from '@astrojs/netlify/functions'; import netlify from '@astrojs/netlify/functions';
export default defineConfig({ export default defineConfig({
adapter: netlify(), adapter: netlify(),
}); });
``` ```
@ -119,7 +119,7 @@
import nodejs from '@astrojs/node'; import nodejs from '@astrojs/node';
export default { export default {
adapter: nodejs(), adapter: nodejs(),
}; };
``` ```
@ -179,7 +179,7 @@
import nodejs from '@astrojs/node'; import nodejs from '@astrojs/node';
export default { export default {
adapter: nodejs(), adapter: nodejs(),
}; };
``` ```
@ -275,7 +275,7 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
export default defineConfig({ export default defineConfig({
renderers: [], renderers: [],
}); });
``` ```
@ -313,9 +313,9 @@
```json ```json
{ {
"scripts": { "scripts": {
"build": "astro build --legacy-build" "build": "astro build --legacy-build"
} }
} }
``` ```
@ -335,7 +335,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');
} }
``` ```
@ -419,7 +419,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');
} }
``` ```
@ -443,9 +443,9 @@
```json ```json
{ {
"scripts": { "scripts": {
"build": "astro build --legacy-build" "build": "astro build --legacy-build"
} }
} }
``` ```
@ -557,12 +557,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/',
}), }),
}; };
} }
``` ```
@ -724,12 +724,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/',
}), }),
}; };
} }
``` ```
@ -2084,10 +2084,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' }]],
}, },
}; };
``` ```
@ -2107,10 +2107,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'],
}; };
``` ```

View file

@ -19,6 +19,6 @@
import netlify from '@astrojs/netlify/functions'; import netlify from '@astrojs/netlify/functions';
export default defineConfig({ export default defineConfig({
adapter: netlify(), adapter: netlify(),
}); });
``` ```

View file

@ -193,10 +193,10 @@
```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' }]],
}, },
}; };
``` ```