Skip to content

Commit

Permalink
docs: remove CSS modules example, add docusaurus-plugin-plausible
Browse files Browse the repository at this point in the history
It doesn’t work with Shadow DOM
  • Loading branch information
gpbl committed Nov 29, 2024
1 parent af97f1d commit c9f9957
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions website/docs/docs/styling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ export function MyDatePicker() {
}
```

<BrowserWindow>
<Examples.CssModules />
</BrowserWindow>

## Custom Class Names

Use the `classNames` prop to apply custom class names instead of the default ones. The [`ClassNames`](../api/type-aliases/ClassNames.md) type lists all the class names used by DayPicker.
Expand Down
6 changes: 6 additions & 0 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ const config: Config = {
}
]
}
],
[
"docusaurus-plugin-plausible",
{
domain: "daypicker.dev"
}
]
],

Expand Down
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@docusaurus/theme-common": "^3.6.1",
"@mdx-js/react": "^3.1.0",
"date-fns-jalali": "^3.6.0-1",
"docusaurus-plugin-plausible": "^0.0.5",
"prism-react-renderer": "^2.4.0",
"react": "^18.3.1",
"react-day-picker": "workspace:^",
Expand Down

0 comments on commit c9f9957

Please sign in to comment.