[ci] format
This commit is contained in:
parent
779b5dd37c
commit
068e3b4dee
1 changed files with 32 additions and 32 deletions
|
@ -33,7 +33,7 @@
|
|||
import netlify from '@astrojs/netlify/functions';
|
||||
|
||||
export default defineConfig({
|
||||
adapter: netlify(),
|
||||
adapter: netlify(),
|
||||
});
|
||||
```
|
||||
|
||||
|
@ -53,7 +53,7 @@
|
|||
import nodejs from '@astrojs/node';
|
||||
|
||||
export default {
|
||||
adapter: nodejs(),
|
||||
adapter: nodejs(),
|
||||
};
|
||||
```
|
||||
|
||||
|
@ -113,7 +113,7 @@
|
|||
import nodejs from '@astrojs/node';
|
||||
|
||||
export default {
|
||||
adapter: nodejs(),
|
||||
adapter: nodejs(),
|
||||
};
|
||||
```
|
||||
|
||||
|
@ -209,7 +209,7 @@
|
|||
import { defineConfig } from 'astro/config';
|
||||
|
||||
export default defineConfig({
|
||||
renderers: [],
|
||||
renderers: [],
|
||||
});
|
||||
```
|
||||
|
||||
|
@ -247,9 +247,9 @@
|
|||
|
||||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"build": "astro build --legacy-build"
|
||||
}
|
||||
"scripts": {
|
||||
"build": "astro build --legacy-build"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -269,7 +269,7 @@
|
|||
|
||||
```ts
|
||||
if (Astro.slots.has('default')) {
|
||||
const content = await Astro.slots.render('default');
|
||||
const content = await Astro.slots.render('default');
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -353,7 +353,7 @@
|
|||
|
||||
```ts
|
||||
if (Astro.slots.has('default')) {
|
||||
const content = await Astro.slots.render('default');
|
||||
const content = await Astro.slots.render('default');
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -377,9 +377,9 @@
|
|||
|
||||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"build": "astro build --legacy-build"
|
||||
}
|
||||
"scripts": {
|
||||
"build": "astro build --legacy-build"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -491,12 +491,12 @@
|
|||
```typescript
|
||||
// src/pages/company.json.ts
|
||||
export async function get() {
|
||||
return {
|
||||
body: JSON.stringify({
|
||||
name: 'Astro Technology Company',
|
||||
url: 'https://astro.build/',
|
||||
}),
|
||||
};
|
||||
return {
|
||||
body: JSON.stringify({
|
||||
name: 'Astro Technology Company',
|
||||
url: 'https://astro.build/',
|
||||
}),
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -658,12 +658,12 @@
|
|||
```typescript
|
||||
// src/pages/company.json.ts
|
||||
export async function get() {
|
||||
return {
|
||||
body: JSON.stringify({
|
||||
name: 'Astro Technology Company',
|
||||
url: 'https://astro.build/',
|
||||
}),
|
||||
};
|
||||
return {
|
||||
body: JSON.stringify({
|
||||
name: 'Astro Technology Company',
|
||||
url: 'https://astro.build/',
|
||||
}),
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -2018,10 +2018,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
|
|||
|
||||
```js
|
||||
export default {
|
||||
markdownOptions: {
|
||||
remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
|
||||
rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]],
|
||||
},
|
||||
markdownOptions: {
|
||||
remarkPlugins: ['remark-slug', ['remark-autolink-headings', { behavior: 'prepend' }]],
|
||||
rehypePlugins: ['rehype-slug', ['rehype-autolink-headings', { behavior: 'prepend' }]],
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
|
@ -2041,10 +2041,10 @@ For convenience, you may now also move your `astro.config.js` file to a top-leve
|
|||
|
||||
```js
|
||||
export default {
|
||||
name: '@matthewp/my-renderer',
|
||||
server: './server.js',
|
||||
client: './client.js',
|
||||
hydrationPolyfills: ['./my-polyfill.js'],
|
||||
name: '@matthewp/my-renderer',
|
||||
server: './server.js',
|
||||
client: './client.js',
|
||||
hydrationPolyfills: ['./my-polyfill.js'],
|
||||
};
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue