Skip to content

Commit 1669a66

Browse files
authored
📁 content update (#229)
2 parents de2bb51 + 596cadc commit 1669a66

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ jobs:
107107
id: docsearch-scrape
108108
uses: adapttive/algolia-docsearch-action@1.1.1
109109
env:
110-
APPLICATION_ID: ${{ secrets.DOCSEARCH_APP_ID }}
110+
APPLICATION_ID: ${{ secrets.DOCSEARCH_APP_ID_PREVIEW }}
111111
API_KEY: ${{ secrets.DOCSEARCH_WRITE_API_KEY_PREVIEW }}
112112
CONFIG: ${{ steps.docsearch-config.outputs.config }}

.github/workflows/deploy-production.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ jobs:
104104
id: docsearch-scrape
105105
uses: adapttive/algolia-docsearch-action@1.1.1
106106
env:
107-
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
108-
API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }}
107+
APPLICATION_ID: ${{ secrets.DOCSEARCH_APP_ID_PROD }}
108+
API_KEY: ${{ secrets.DOCSEARCH_WRITE_API_KEY_PROD }}
109109
CONFIG: ${{ steps.docsearch-config.outputs.config }}

content/docs/features/google-analytics.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,30 @@ To enable Google Analytics v4, simply provide your tracking ID in your configura
2323
{{% tab tabName="hugo.toml" %}}
2424

2525
```toml
26-
googleAnalytics = 'G-MEASUREMENT_ID'
26+
[services]
27+
[services.googleAnalytics]
28+
id = 'G-MEASUREMENT_ID'
2729
```
2830

2931
{{% /tab %}}
3032
{{% tab tabName="hugo.yaml" %}}
3133

3234
```yaml
33-
googleAnalytics: G-MEASUREMENT_ID
35+
services:
36+
googleAnalytics:
37+
id: G-MEASUREMENT_ID
3438
```
3539
3640
{{% /tab %}}
3741
{{% tab tabName="hugo.json" %}}
3842
3943
```json
4044
{
41-
"googleAnalytics": "G-MEASUREMENT_ID"
45+
"services": {
46+
"googleAnalytics": {
47+
"id": "G-MEASUREMENT_ID"
48+
}
49+
}
4250
}
4351
```
4452

hugo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ title = "Lotus Docs | A Hugo Documentation Theme"
55
contentDir = "content"
66
enableEmoji = true
77
enableGitInfo = true # N.B. .GitInfo does not currently function with submodule content directories
8-
# googleAnalytics = "G-VXQVVP7V8K" # (or set via env variable HUGO_GOOGLEANALYTICS)
8+
9+
# [services]
10+
# [services.googleAnalytics]
11+
# id = 'G-VXQVVP7V8K'
912

1013
[build]
1114
noJSConfigInAssets = true

0 commit comments

Comments
 (0)