Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yujonglee committed Aug 28, 2024
1 parent 68e1f1c commit e5bf0a1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
"styl",
"tses",
"undici",
"vimrc"
"vimrc",
"pagefind",
"getcanary",
"searchbar",
"seperator"
]
}
2 changes: 1 addition & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import compress from '@playform/compress'
import { fileURLToPath } from 'node:url'
import browserslist from 'browserslist'
import sitemap from '@astrojs/sitemap'
import pagefind from 'astro-pagefind'
import svelte from '@astrojs/svelte'
import mdx from '@astrojs/mdx'
import path from 'node:path'
import pagefind from 'astro-pagefind'

import { remarkHeadings } from './docs/plugins/remark-headings'
import { colorTheme } from './docs/utils/shiki-theme'
Expand Down
13 changes: 7 additions & 6 deletions docs/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ let { border = false } = Astro.props
<canary-search slot="mode">
<canary-search-input slot="input"></canary-search-input>
<canary-search-results-tabs
slot="body"
tabs={JSON.stringify([
{ name: 'All', pattern: '**/*' },
{ name: 'Guide', pattern: '/guide/**' },
{ name: 'Configs', pattern: '/configs/**' },
{ name: 'Rules', pattern: '/rules/**' },
])}></canary-search-results-tabs>
{ pattern: '**/*', name: 'All' },
{ pattern: '/guide/**', name: 'Guide' },
{ pattern: '/configs/**', name: 'Configs' },
{ pattern: '/rules/**', name: 'Rules' },
])}
slot="body"></canary-search-results-tabs>
</canary-search>
</canary-content>
</canary-modal>
Expand Down Expand Up @@ -196,6 +196,7 @@ let { border = false } = Astro.props
canary-trigger-searchbar::part(button) {
background-color: var(--color-background-primary);
}

canary-trigger-searchbar::part(kbd) {
background-color: var(--color-background-primary-hover);
}
Expand Down

0 comments on commit e5bf0a1

Please sign in to comment.