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


The following commit(s) were added to refs/heads/jira/solr-15556-antora by this 
push:
     new 6eb235c  Another approach at moving node_modules out
6eb235c is described below

commit 6eb235c458535c72277a09cb8dcdc2b912baecd6
Author: Mike Drob <[email protected]>
AuthorDate: Tue Jan 25 20:11:29 2022 -0600

    Another approach at moving node_modules out
---
 solr/solr-ref-guide/build.gradle | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/solr/solr-ref-guide/build.gradle b/solr/solr-ref-guide/build.gradle
index df2b9fa..b929256 100644
--- a/solr/solr-ref-guide/build.gradle
+++ b/solr/solr-ref-guide/build.gradle
@@ -308,6 +308,9 @@ node {
   // 
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
+
+  // This would move package.json and node_modules to a different location, 
but antora also expects playbook file to be in the same location
+  // nodeProjectDir = file("${project.buildDir}/node-project")
 }
 
 
@@ -315,7 +318,7 @@ node {
 // https://gitlab.com/antora/antora-gradle-plugin
 antora {
     // TODO document these properties in help
-  playbookFile = file(propertyOrEnvOrDefault("refguide.playbook", 
"REFGUIDE_PLAYBOOK", "playbook.yml"));
+  playbookFile = file(propertyOrEnvOrDefault("refguide.playbook", 
"REFGUIDE_PLAYBOOK", "playbook.yml"))
   antoraVersion = "3.0.1"
     // TODO this is duplicated but I think the other instance of this is going 
away because it's specific to jekyll?
     // Set these dependency versions as lazy gstrings so that they're resolved 
after evaluation.

Reply via email to