[ci] format
This commit is contained in:
parent
2552db0d09
commit
c2ed6fe360
2 changed files with 36 additions and 36 deletions
|
@ -112,7 +112,7 @@
|
||||||
import netlify from '@astrojs/netlify/functions';
|
import netlify from '@astrojs/netlify/functions';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
adapter: netlify(),
|
adapter: netlify(),
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@
|
||||||
import nodejs from '@astrojs/node';
|
import nodejs from '@astrojs/node';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
adapter: nodejs(),
|
adapter: nodejs(),
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@
|
||||||
import nodejs from '@astrojs/node';
|
import nodejs from '@astrojs/node';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
adapter: nodejs(),
|
adapter: nodejs(),
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -288,7 +288,7 @@
|
||||||
import { defineConfig } from 'astro/config';
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
renderers: [],
|
renderers: [],
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -326,9 +326,9 @@
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "astro build --legacy-build"
|
"build": "astro build --legacy-build"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -348,7 +348,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');
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -432,7 +432,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');
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -456,9 +456,9 @@
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "astro build --legacy-build"
|
"build": "astro build --legacy-build"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -570,12 +570,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/',
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -737,12 +737,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/',
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -2097,10 +2097,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' }]],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -2120,10 +2120,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'],
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -199,10 +199,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' }]],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue