Browse Source

add playbook template to support local build in content branches (#12497)

Dan Allen 2 years ago
parent
commit
ea5260adad
2 changed files with 19 additions and 2 deletions
  1. 19 0
      lib/antora/templates/per-branch-antora-playbook.yml
  2. 0 2
      local-antora-playbook.yml

+ 19 - 0
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

+ 0 - 2
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: .