-
Notifications
You must be signed in to change notification settings - Fork 85
feat: PlausibleHQ support #233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Moulik Aggarwal <qwertymoulik@gmail.com>
docs/configuration.mdx
Outdated
|
||
| Key | Type | Default | | ||
| -------------------- | -------- | ------- | | ||
| `plausibleAnalytics` | `string` | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be a bool, the value of the string is never used?
@@ -85,6 +87,8 @@ export interface ConfigWithLocales { | |||
experimentalMath: boolean; | |||
// automatically infer next/previous | |||
automaticallyInferNextPrevious: boolean; | |||
// Adds Plausible Analytics to your documentation pages. | |||
plausibleAnalytics: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be a bool, the value of the string is never used?
packages/server/src/types.ts
Outdated
@@ -137,6 +141,8 @@ export interface OutputConfig { | |||
experimentalMath: boolean; | |||
// automatically infer next/previous | |||
automaticallyInferNextPrevious: boolean; | |||
// Adds Plausible Analytics to your documentation pages. | |||
plausibleAnalytics: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be a bool, the value of the string is never used?
@@ -158,6 +164,7 @@ export const defaultConfig: OutputConfig = { | |||
experimentalCodehike: false, | |||
experimentalMath: false, | |||
automaticallyInferNextPrevious: true, | |||
plausibleAnalytics: '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be a bool, the value of the string is never used?
docs/configuration.mdx
Outdated
|
||
### `plausibleAnalytics` | ||
|
||
If provided, Plausible Analytics will be added to all of your documentation pages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe note that this only works for custom domains?
Created this new PR with formatted code. Will review and manual test this.