Skip to content

Commit 064b2be

Browse files
DOC-3701: Migrate to official @asciidoctor/tabs extension (#22)
* Migrate to official @asciidoctor/tabs extension * Standardize Antora dependencies * Update GTM and Segment site keys
1 parent 85d4c0f commit 064b2be

File tree

5 files changed

+13
-93
lines changed

5 files changed

+13
-93
lines changed

.DS_Store

-6 KB
Binary file not shown.

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
"url": "git+https://github.com/datastax/pulsar-sink-docs.git"
1313
},
1414
"dependencies": {
15-
"@antora/cli": "~3.0.1",
16-
"@antora/site-generator-default": "~3.0.1",
17-
"linkinator": "~3.0.3",
15+
"@antora/cli": "~3.1",
16+
"@antora/site-generator": "~3.1",
17+
"@asciidoctor/tabs": "^1.0.0-beta.5",
1818
"async": "~3.2.4",
19+
"linkinator": "~3.0.3",
1920
"mobx": "~6.0.4",
2021
"react": "~16.8.4",
2122
"react-dom": "~16.8.4",
2223
"rxjs": "~7.0.1",
2324
"styled-components": "~5.1.1"
2425
}
25-
}
26+
}

playbooks/lib/tabs-block.js

Lines changed: 0 additions & 80 deletions
This file was deleted.

playbooks/site-local-pulsar-connector.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,4 @@ asciidoc:
4646
glossary-url: 'https://docs.datastax.com/en/glossary/docs/index.html#'
4747

4848
extensions:
49-
- ./lib/tabs-block.js
50-
51-
52-
49+
- '@asciidoctor/tabs'

playbooks/site-publish-pulsar-connector.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
site:
22
title: DataStax Pulsar Connector
33
url: https://docs.datastax.com/en/pulsar-connector
4-
# The keys.segmentIo site key must be in the site-publish playbook of each
5-
# docset. This loads Segment into the docset build, and is a requirement for
6-
# collecting site analytics.
4+
# The google_analytics and segment_io site keys must be in the release playbook
5+
# of each docset. This ensures that the Google Tag Manager (GTM) and Segment
6+
# scripts get loaded into the docsets that get published to docs.datastax.com.
77
keys:
8-
segmentIo: d24gQtyKIUu5mLdkp11xjfiXLhRqx0HH
8+
google_analytics: 'GTM-5FSG7Q'
9+
segment_io: 'd24gQtyKIUu5mLdkp11xjfiXLhRqx0HH'
10+
911

1012
output:
1113
# Bsys requires the output.dir in the site-publish playbook to be specifically
@@ -56,4 +58,4 @@ asciidoc:
5658
pulsar-sink-docs: 'ssh://github.com/datastax/pulsar-sink-docs.git'
5759

5860
extensions:
59-
- ~/work/pulsar-sink-docs/playbooks/lib/tabs-block.js
61+
- '@asciidoctor/tabs'

0 commit comments

Comments
 (0)