[ci] format
This commit is contained in:
parent
c78d7a46c9
commit
1e5ea20694
2 changed files with 34 additions and 34 deletions
|
@ -16,7 +16,7 @@
|
|||
import nodejs from '@astrojs/node';
|
||||
|
||||
export default {
|
||||
adapter: nodejs(),
|
||||
adapter: nodejs(),
|
||||
};
|
||||
```
|
||||
|
||||
|
@ -112,7 +112,7 @@
|
|||
import { defineConfig } from 'astro/config';
|
||||
|
||||
export default defineConfig({
|
||||
renderers: [],
|
||||
renderers: [],
|
||||
});
|
||||
```
|
||||
|
||||
|
@ -150,9 +150,9 @@
|
|||
|
||||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"build": "astro build --legacy-build"
|
||||
}
|
||||
"scripts": {
|
||||
"build": "astro build --legacy-build"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -172,7 +172,7 @@
|
|||
|
||||
```ts
|
||||
if (Astro.slots.has('default')) {
|
||||
const content = await Astro.slots.render('default');
|
||||
const content = await Astro.slots.render('default');
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -256,7 +256,7 @@
|
|||
|
||||
```ts
|
||||
if (Astro.slots.has('default')) {
|
||||
const content = await Astro.slots.render('default');
|
||||
const content = await Astro.slots.render('default');
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -280,9 +280,9 @@
|
|||
|
||||
```json
|
||||
{
|
||||
"scripts": {
|
||||
"build": "astro build --legacy-build"
|
||||
}
|
||||
"scripts": {
|
||||
"build": "astro build --legacy-build"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -394,12 +394,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/',
|
||||
}),
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -561,12 +561,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/',
|
||||
}),
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -1921,10 +1921,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' }]],
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
|
@ -1944,10 +1944,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'],
|
||||
};
|
||||
```
|
||||
|
||||
|
|
|
@ -174,10 +174,10 @@
|
|||
|
||||
```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' }]],
|
||||
},
|
||||
};
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue