Skip to content

Conversation

cabljac
Copy link
Contributor

@cabljac cabljac commented Oct 18, 2022

Created this new PR with formatted code. Will review and manual test this.

aggmoulik and others added 2 commits October 1, 2022 20:12
Signed-off-by: Moulik Aggarwal <qwertymoulik@gmail.com>
@cabljac cabljac mentioned this pull request Oct 18, 2022

| Key | Type | Default |
| -------------------- | -------- | ------- |
| `plausibleAnalytics` | `string` | |
Copy link
Contributor

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;
Copy link
Contributor

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?

@@ -137,6 +141,8 @@ export interface OutputConfig {
experimentalMath: boolean;
// automatically infer next/previous
automaticallyInferNextPrevious: boolean;
// Adds Plausible Analytics to your documentation pages.
plausibleAnalytics: string;
Copy link
Contributor

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: '',
Copy link
Contributor

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?


### `plausibleAnalytics`

If provided, Plausible Analytics will be added to all of your documentation pages.
Copy link
Contributor

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?

@Ehesp Ehesp marked this pull request as ready for review December 8, 2022 10:50
@Ehesp Ehesp merged commit 187a0be into main Dec 8, 2022
@Ehesp Ehesp deleted the gh-224-plausible branch December 8, 2022 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants