This is an automated email from the ASF dual-hosted git repository.

mdrob pushed a commit to branch jira/solr-15556-antora
in repository https://gitbox.apache.org/repos/asf/solr.git

commit e9efc3e4979239f7aae5e1b19d447c95b747d82c
Author: Mike Drob <[email protected]>
AuthorDate: Tue Jan 25 17:42:58 2022 -0600

    Playbook file from properties
---
 solr/solr-ref-guide/build.gradle | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/solr/solr-ref-guide/build.gradle b/solr/solr-ref-guide/build.gradle
index 6fe28b9..5742aaf 100644
--- a/solr/solr-ref-guide/build.gradle
+++ b/solr/solr-ref-guide/build.gradle
@@ -302,16 +302,17 @@ node {
   // TODO figure out how to configure which directory npm will install into 
and then read from
   // This currently calls "npm install 
@antora/site-generator-default@`antoraVersion`"
   // 
https://gitlab.com/antora/antora-gradle-plugin/-/blob/main/src/main/java/io/github/rwinch/antora/AntoraPlugin.java#L61
+  // If we were launching commands directly I think we could do `npm install 
--prefix $dir` and `npx -w $dir`
   npmWorkDir = file("${project.buildDir}/npm") // this doesn't seem to do it
 }
 
 
-// TODO Pull playbook file from command-line param
 // Documentation for Antora-Gradle plugin at
 // https://gitlab.com/antora/antora-gradle-plugin
 // Can possibly add some attributes to arguments?
 antora {
-  playbookFile = file("playbook.yml")
+    // TODO document these properties in help
+  playbookFile = file(propertyOrEnvOrDefault("refguide.playbook", 
"REFGUIDE_PLAYBOOK", "playbook.yml"));
   antoraVersion = "3.0.1"
   arguments = ["--fetch"]
 }

Reply via email to