Skip to content

AV-57335 POC for analytics include using collector #699

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

Closed
wants to merge 2 commits into from
Closed
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
6 changes: 6 additions & 0 deletions antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ antora:
extensions:
- '@antora/site-generator-ms'
- ./lib/embargo.js
- '@antora/collector-extension'

site:
title: Couchbase Docs
Expand Down Expand Up @@ -73,9 +74,14 @@ content:
start_path: docs
# - url: https://[email protected]/couchbase/docs-connectors-talend
- url: https://github.com/couchbase/docs-connectors-talend

# - url: https://[email protected]/couchbase/docs-analytics
- url: https://github.com/couchbase/docs-analytics
branches: [release/7.2, release/7.1, release/7.0, release/6.6, release/6.5, release/6.0]
- url: https://github.com/couchbase/asterixdb
branches: [master]
start_path: asterixdb/asterix-doc/

- url: https://github.com/couchbase/couchbase-cli
branches: [neo, 7.1.x-docs, cheshire-cat, mad-hatter, 6.5.x-docs, alice]
start_path: docs
Expand Down
11 changes: 11 additions & 0 deletions home/modules/contribute/pages/extensions-collector-analytics.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
= Collector extension

See https://gitlab.com/antora/antora-collector-extension

Here's an include from the AsterixDB project which uses collector to put the
content in a place that Antora understands it.

[markdown]
--
include::analytics:asterixdb:partial$builtins/14_window.md[]
--
2 changes: 1 addition & 1 deletion lib/markdown-block.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const md = require('markdown-it')()
const md = require('markdown-it')({ html: true })

module.exports = function (registry) {
registry.block(function () {
Expand Down
134 changes: 82 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"homepage": "https://docs.couchbase.com",
"private": true,
"dependencies": {
"antora": "~3.1",
"@antora/collector-extension": "^1.0.0-alpha.3",
"@antora/site-generator-ms": "git+https://gitlab.com/opendevise/oss/antora-site-generator-ms#as-extension",
"antora": "~3.1",
"asciidoctor-external-callout": "~1.2.0",
"asciidoctor-kroki": "0.15.4",
"gulp": "~4.0",
Expand Down