From 7757eab714393c8824417501d5bf0a3653005aae Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 6 Dec 2022 14:17:36 -0700 Subject: [PATCH] add Asciidoctor Tabs, tabs migration, code chomping & code folding to production site --- antora-playbook.yml | 8 ++++++++ build.gradle | 6 ++++-- local-antora-playbook.yml | 10 +++++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/antora-playbook.yml b/antora-playbook.yml index 91234035f5..839ae5643d 100644 --- a/antora-playbook.yml +++ b/antora-playbook.yml @@ -6,6 +6,10 @@ antora: - ./lib/antora/extensions/version-fix.js - '@antora/atlas-extension' - '@opendevise/antora-release-line-extension' + - require: '@springio/asciidoctor-extensions/tabs-migration-antora-extension' + # uncomment this option to save the migrated content to the worktree + #save_result: true + unwrap_example_block: always site: title: Spring Security url: https://docs.spring.io/spring-security/reference @@ -22,6 +26,10 @@ asciidoc: attributes: page-pagination: '' hide-uri-scheme: '@' + tabs-sync-option: '@' + extensions: + - '@asciidoctor/tabs' + - '@springio/asciidoctor-extensions' urls: latest_version_segment_strategy: redirect:to latest_version_segment: '' diff --git a/build.gradle b/build.gradle index ac8fc60454..71f0f7cda7 100644 --- a/build.gradle +++ b/build.gradle @@ -9,11 +9,13 @@ antora { environment = [ 'ALGOLIA_API_KEY': '82c7ead946afbac3cf98c32446154691', 'ALGOLIA_APP_ID': '244V8V9FGG', - 'ALGOLIA_INDEX_NAME': 'security-docs' + 'ALGOLIA_INDEX_NAME': 'security-docs', ] dependencies = [ '@antora/atlas-extension': '1.0.0-alpha.1', '@antora/collector-extension': '1.0.0-alpha.2', - '@opendevise/antora-release-line-extension': '1.0.0-alpha.2' + '@asciidoctor/tabs': '1.0.0-alpha.8', + '@opendevise/antora-release-line-extension': '1.0.0-alpha.2', + '@springio/asciidoctor-extensions': '1.0.0-alpha.4', ] } diff --git a/local-antora-playbook.yml b/local-antora-playbook.yml index 1103d955e1..530ba43b34 100644 --- a/local-antora-playbook.yml +++ b/local-antora-playbook.yml @@ -4,6 +4,10 @@ antora: - '@antora/collector-extension' - ./lib/antora/extensions/version-fix.js - '@opendevise/antora-release-line-extension' + - require: '@springio/asciidoctor-extensions/tabs-migration-antora-extension' + # uncomment this option to save the migrated content to the worktree + #save_result: true + unwrap_example_block: always site: title: Spring Security url: https://docs.spring.io/spring-security/reference @@ -12,7 +16,7 @@ git: content: sources: - url: . - branches: [main, '5.{{6..9},{1..9}+({0..9})}.x'] + branches: [main, '5.{{6..9},{1..9}+({0..9})}.x', '6.+({0..9}).x'] worktrees: true # automatically discovers worktrees, if present; otherwise, will use git tree tags: ['5.{{6..9},{1..9}+({0..9})}.+({0..9})?(-RC+({0..9}))', '6.+({0..9}).+({0..9})?(-{RC,M}*)'] start_path: docs @@ -20,6 +24,10 @@ asciidoc: attributes: page-pagination: '' hide-uri-scheme: '@' + tabs-sync-option: '@' + extensions: + - '@asciidoctor/tabs' + - '@springio/asciidoctor-extensions' urls: latest_version_segment: '' ui: