From ea5260adad09ddf9cacd96dc2f81e4ce93158e73 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 6 Jan 2023 14:12:37 -0700 Subject: [PATCH] add playbook template to support local build in content branches (#12497) --- .../templates/per-branch-antora-playbook.yml | 19 +++++++++++++++++++ local-antora-playbook.yml | 2 -- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 lib/antora/templates/per-branch-antora-playbook.yml diff --git a/lib/antora/templates/per-branch-antora-playbook.yml b/lib/antora/templates/per-branch-antora-playbook.yml new file mode 100644 index 0000000000..85d4338a18 --- /dev/null +++ b/lib/antora/templates/per-branch-antora-playbook.yml @@ -0,0 +1,19 @@ +# The purpose of this Antora playbook is to generate a preview of the docs in the current branch. +site: + title: Spring Security Reference +content: + sources: + - url: ./.. + branches: HEAD + start_path: docs + worktrees: true +asciidoc: + attributes: + page-pagination: '' + hide-uri-scheme: '@' +urls: + latest_version_segment: '' +ui: + bundle: + url: https://github.com/spring-io/antora-ui-spring/releases/download/latest/ui-bundle.zip + snapshot: true diff --git a/local-antora-playbook.yml b/local-antora-playbook.yml index 530ba43b34..b1a8df19ff 100644 --- a/local-antora-playbook.yml +++ b/local-antora-playbook.yml @@ -11,8 +11,6 @@ antora: site: title: Spring Security url: https://docs.spring.io/spring-security/reference -git: - ensure_git_suffix: false content: sources: - url: .