Skip to content

Commit

Permalink
merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Sep 24, 2023
1 parent e7e5f97 commit e4730f8
Show file tree
Hide file tree
Showing 3 changed files with 763 additions and 678 deletions.
6 changes: 6 additions & 0 deletions packages/nextra-theme-docs/src/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ export const themeSchema = /* @__PURE__ */ (() =>
light: z.number()
})
),
primarySaturation: z.number().or(
z.strictObject({
dark: z.number(),
light: z.number()
})
),
project: z.strictObject({
icon: z.custom<ReactNode | FC>(...reactNode),
link: z.string().startsWith('https://').optional()
Expand Down
2 changes: 1 addition & 1 deletion packages/nextra/src/server/file-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CWD } from './constants.js'
export const { existsSync } = pkg

export function findPagesDirectory(): string {
const { pagesDir } = pkg.findPagesDir(CWD, false)
const { pagesDir } = pkg.findPagesDir(CWD)
if (!pagesDir) {
throw new Error('Unable to find `pages` directory')
}
Expand Down
Loading

0 comments on commit e4730f8

Please sign in to comment.