Skip to content

Commit 3c18ca5

Browse files
committed
🎨 Format with prettier
1 parent 4d432ab commit 3c18ca5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1598
-1557
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
workflow_dispatch:
7-
7+
88
permissions:
99
contents: read
1010
pages: write
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: Checkout your repository using git
1818
uses: actions/checkout@v3
19-
19+
2020
- name: Install, build, and upload your site output
2121
uses: withastro/action@v0
2222

@@ -26,7 +26,7 @@ jobs:
2626
environment:
2727
name: github-pages
2828
url: ${{ steps.deployment.outputs.page_url }}
29-
29+
3030
steps:
3131
- name: Deploy to GitHub Pages
3232
id: deployment

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Astro site
1+
name: Build Astro site
22

33
on:
44
- push

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pnpm create astro@latest -- --template advanced-astro/astro-docs-template
1313
1414
![docs](https://user-images.githubusercontent.com/4677417/186189283-0831b9ab-d6b9-485d-8955-3057e532ab31.png)
1515

16-
## Features
16+
## Key Features
1717

1818
- 📝 **Full Markdown and MDX support**
1919
- 📱 **Responsive mobile-friendly design**
@@ -89,15 +89,15 @@ The sidebar navigation is controlled by the `SIDEBAR` variable in your `src/conf
8989
```ts
9090
export const SIDEBAR = {
9191
en: [
92-
{ text: "Section Header", header: true },
93-
{ text: "Introduction", link: "en/introduction" },
94-
{ text: "Page 2", link: "en/page-2" },
95-
{ text: "Page 3", link: "en/page-3" },
92+
{ text: 'Section Header', header: true },
93+
{ text: 'Introduction', link: 'en/introduction' },
94+
{ text: 'Page 2', link: 'en/page-2' },
95+
{ text: 'Page 3', link: 'en/page-3' },
9696

97-
{ text: "Another Section", header: true },
98-
{ text: "Page 4", link: "en/page-4" },
99-
],
100-
};
97+
{ text: 'Another Section', header: true },
98+
{ text: 'Page 4', link: 'en/page-4' }
99+
]
100+
}
101101
```
102102

103103
Note the top-level `en` key: This is needed for multi-language support. You can change it to whatever language you'd like, or add new languages as you go. More details on this below.

astro.config.mjs

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
import { defineConfig } from 'astro/config';
2-
import mdx from '@astrojs/mdx';
3-
import preact from '@astrojs/preact';
4-
import react from '@astrojs/react';
5-
import minifier from 'astro-html-minifier';
1+
import { defineConfig } from 'astro/config'
2+
import mdx from '@astrojs/mdx'
3+
import preact from '@astrojs/preact'
4+
import react from '@astrojs/react'
5+
import minifier from 'astro-html-minifier'
66

77
export default defineConfig({
8-
integrations: [
9-
mdx(),
10-
minifier(),
11-
preact(),
12-
react(),
13-
],
14-
base: `/`,
15-
site: `https://advanced-astro.dev`,
16-
});
8+
integrations: [mdx(), minifier(), preact(), react()],
9+
base: `/`,
10+
site: `https://advanced-astro.dev`
11+
})

prettier.config.cjs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module.exports = {
2-
plugins: [require.resolve('prettier-plugin-astro')],
3-
overrides: [
4-
{
5-
files: '*.astro',
6-
options: {
7-
parser: 'astro'
8-
}
9-
}
10-
],
11-
singleQuote: true,
12-
semi: false,
13-
trailingComma: 'none'
14-
}
2+
plugins: [require.resolve('prettier-plugin-astro')],
3+
overrides: [
4+
{
5+
files: '*.astro',
6+
options: {
7+
parser: 'astro'
8+
}
9+
}
10+
],
11+
singleQuote: true,
12+
semi: false,
13+
trailingComma: 'none'
14+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Array.from(document.getElementsByTagName('pre')).forEach((element) => {
2-
element.setAttribute('tabindex', '0');
3-
});
2+
element.setAttribute('tabindex', '0')
3+
})

renovate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:base"
5-
]
3+
"extends": ["config:base"]
64
}

0 commit comments

Comments
 (0)