Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions config/custom-environment-variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,3 @@ algolia:
apiKey: ALGOLIA_API_KEY
indexName: ALGOLIA_INDEX_NAME
libraryIndexName: ALGOLIA_LIBRARY_INDEX_NAME

# Posthog Analytics tracking config
posthog:
apiKey: CONFIG_POSTHOG_API_KEY
appUrl: CONFIG_POSTHOG_APP_URL
15 changes: 0 additions & 15 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ const { redirects } = require("./src/redirects.js")

const algoliaConfig = cfg.has("algolia") ? cfg.get("algolia") : undefined

const posthogConfig = cfg.has("posthog") ? cfg.get("posthog") : undefined

// 10-6-2025 - disabling posthog in docusaurus config as we deploy it to the page via Google Tag Manager instead
const enablePosthog = false //posthogConfig && posthogConfig.apiKey

const googleAnalyticsConfig = cfg.has("googleAnalytics")
? cfg.get("googleAnalytics")
: undefined
Expand All @@ -35,10 +30,6 @@ const buildVersion = cfg.has("app.buildVersion")

const plugins = ["plugin-image-zoom"]

if (enablePosthog) {
plugins.push("posthog-docusaurus")
}

const redirectPlugin = [
"@docusaurus/plugin-client-redirects",
{
Expand Down Expand Up @@ -449,12 +440,6 @@ async function createConfig() {
}
: undefined,
zoomSelector: ".markdown :not(em) > img:not(.no-zoom)",
posthog: enablePosthog
? {
apiKey: posthogConfig.apiKey,
appUrl: posthogConfig.appUrl,
}
: undefined,
metadata: [
// https://docusaurus.io/docs/2.x/seo#global-metadata
// This would become <meta name="keywords" content="..."/> in the generated HTML
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"file-loader": "^6.2.0",
"path": "^0.12.7",
"plugin-image-zoom": "ataft/plugin-image-zoom",
"posthog-docusaurus": "^1.0.3",
"prism-react-renderer": "^2.1.0",
"raw-loader": "^4.0.2",
"react": "^18.2.0",
Expand Down
2 changes: 0 additions & 2 deletions scripts/push-to-s3-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ export CONFIG_GOOGLE_ANALYTICS_TRACKING_ID="GTM-5TTJJGTL"
export ALGOLIA_INDEX_NAME="docs_site_prod"
export ALGOLIA_API_KEY="49a495ba4c210780a28feed306d05522" # This is a search only key. It is safe to check in.

export CONFIG_POSTHOG_API_KEY="phc_ktdClyvZqCHAYrs5dIf1QmKKdswYqCknfrolP83cPjS"

yarn && yarn build

aws s3 sync build/ s3://docs.gruntwork.io --delete # Delete option ensures deleted files get removed from the bucket
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13835,11 +13835,6 @@ postcss@^8.4.21, postcss@^8.4.24, postcss@^8.4.26, postcss@^8.4.33, postcss@^8.4
picocolors "^1.1.0"
source-map-js "^1.2.1"

posthog-docusaurus@^1.0.3:
version "1.0.5"
resolved "https://registry.yarnpkg.com/posthog-docusaurus/-/posthog-docusaurus-1.0.5.tgz#836ae512521bbc6b81f8a54df74ab70deac7afab"
integrity sha512-XmNB3VkiSiiOIWfI5K140kPraN3aqwLu6uWcoYH3smYkrGuAYOw+kGm0ozMNaZlmDBaWENK7yy9SLVgl8i5bcg==

prepend-http@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
Expand Down