Skip to content

Commit 25acd96

Browse files
committed
fix: add info about dark logo and add prettier plugin for astro
1 parent 4e47ae9 commit 25acd96

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
lines changed

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"useTabs": false,
55
"tabWidth": 2,
66
"semi": true,
7-
"bracketSpacing": true
7+
"bracketSpacing": true,
8+
"plugins": ["prettier-plugin-astro"]
89
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"husky": "^9.0.11",
2121
"is-ci": "^3.0.1",
2222
"prettier": "^3.3.1",
23+
"prettier-plugin-astro": "^0.13.0",
2324
"tempfile": "^5.0.0"
2425
},
2526
"lint-staged": {},

packages/astro/src/default/components/Logo.astro

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ const logo = readLogoFile('logo');
3030
const logoDark = readLogoFile('logo-dark') ?? logo;
3131
3232
if (!logo) {
33-
console.warn(`No logo found in public/. Supported filenames are: logo.(${LOGO_EXTENSIONS.join('|')})`);
33+
console.warn(
34+
[
35+
`No logo found in public/. Supported filenames are: logo.(${LOGO_EXTENSIONS.join('|')}) `,
36+
`(for the light theme) and logo-dark.(${LOGO_EXTENSIONS.join('|')}) (for the dark theme).`,
37+
].join(''),
38+
);
3439
}
3540
---
3641

packages/astro/src/default/components/ResizablePanel.astro

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,14 @@ if (!hasSidePanel) {
5555
<slot name="a" />
5656
</div>
5757
{
58-
hasSidePanel &&
59-
(
58+
hasSidePanel && (
59+
<>
6060
<div class="panel">
6161
<slot name="b" />
6262
</div>
63-
<div class="divider"></div>
64-
)
63+
<div class="divider" />
64+
</>
65+
)
6566
}
6667
</div>
6768
</resizable-panel>

pnpm-lock.yaml

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)