Skip to content

Commit

Permalink
migrate to flat config (#3746)
Browse files Browse the repository at this point in the history
* aa

* more

* more

* more

* more

* more

* more

* more

* more

* more

* more

* more

* more

* more

* more
  • Loading branch information
dimaMachina authored Nov 28, 2024
1 parent 4d808bd commit dcd4174
Show file tree
Hide file tree
Showing 27 changed files with 1,218 additions and 1,103 deletions.
306 changes: 0 additions & 306 deletions .eslintrc.cjs

This file was deleted.

6 changes: 3 additions & 3 deletions docs/app/_components/i18n-demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ export const I18n: FC = () => {
))}
</div>
<ArrowRightIcon width="1.2em" />
<div className="overflow-auto rounded-md bg-white py-1 text-sm shadow-lg ring-1 ring-black/5 dark:bg-neutral-800 dark:ring-white/20">
<div className="overflow-auto rounded-md bg-white py-1 text-sm ring-1 shadow-lg ring-black/5 dark:bg-neutral-800 dark:ring-white/20">
{LANGUAGES.map(({ lang, name }) => (
<div
key={lang}
onPointerOver={() => setActive(lang)}
// eslint-disable-next-line tailwindcss/no-custom-classname -- TODO: configure eslint-plugin-tailwindcss to import nextra-theme-docs styles so below classes could be removed
className={cn(
'relative cursor-default select-none whitespace-nowrap px-4 py-1.5',
'relative cursor-default px-4 py-1.5 whitespace-nowrap select-none',
active === lang
? 'x:text-primary-600 x:bg-primary-50 x:dark:bg-primary-500/10'
: 'text-gray-800 dark:text-gray-100 '
: 'text-gray-800 dark:text-gray-100'
)}
>
{name}
Expand Down
2 changes: 1 addition & 1 deletion docs/app/blog/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function BlogPage() {
].map(page => (
<div key={page.route} className="mt-12">
<h3 className="text-2xl font-semibold">{page.title}</h3>
<p className="opacity-80 my-6 leading-7">
<p className="my-6 leading-7 opacity-80">
{page.description}{' '}
{page.date && <Link href={page.route}>Read more</Link>}
</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/app/docs/advanced/playground/_demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Z --> G
}, []) // eslint-disable-line react-hooks/exhaustive-deps -- only on mount

return (
<div className="grid grid-cols-1 lg:grid-cols-2 gap-2 mt-6">
<div className="mt-6 grid grid-cols-1 gap-2 lg:grid-cols-2">
<Pre
data-filename="MDX"
icon={<MdxIcon height="16" className="shrink-0" />}
Expand Down
4 changes: 2 additions & 2 deletions docs/app/docs/built-ins/head/_slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const Slider: FC = ({
min="0"
max={max}
/>
<label className="text-sm text-gray-500 w-14" />
<label className="w-14 text-sm text-gray-500" />
</div>
)
}
Expand Down Expand Up @@ -66,7 +66,7 @@ export const BackgroundColor: FC = () => {
)
}}
/>
<label className="text-sm text-gray-500 w-20" />
<label className="w-20 text-sm text-gray-500" />
</div>
)
}
2 changes: 1 addition & 1 deletion docs/app/docs/guide/syntax-highlighting/_dynamic-code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const DynamicCode: FC<{ children: ReactNode }> = ({ children }) => {
<div ref={ref} className="mt-6">
{children}
</div>
<div className="flex mt-3 gap-3 justify-center text-sm">
<div className="mt-3 flex justify-center gap-3 text-sm">
<Button
variant="outline"
onClick={() => {
Expand Down
2 changes: 1 addition & 1 deletion docs/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const RootLayout: FC<{
<NextraLogo
height="20"
className={cn(
'[mask-position:0] [mask-size:400%] [mask-image:linear-gradient(60deg,#000_25%,rgba(0,0,0,.2)_50%,#000_75%)]',
'[mask-image:linear-gradient(60deg,#000_25%,rgba(0,0,0,.2)_50%,#000_75%)] [mask-position:0] [mask-size:400%]',
'hover:[mask-position:100%] hover:[transition:mask-position_1s_ease]'
)}
/>
Expand Down
Loading

0 comments on commit dcd4174

Please sign in to comment.