You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by wa...@apache.org on 2020/11/06 19:14:10 UTC

[openoffice-org] branch main updated: Update baking scripts to twice bake

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

wave pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openoffice-org.git


The following commit(s) were added to refs/heads/main by this push:
     new bce9eb7  Update baking scripts to twice bake
bce9eb7 is described below

commit bce9eb7f489addc1605374bf804e13e1a31fe9d1
Author: Dave Fisher <da...@davefisher.tech>
AuthorDate: Fri Nov 6 11:13:47 2020 -0800

    Update baking scripts to twice bake
---
 build_local.sh         | 2 ++
 build_site.sh          | 6 ++++++
 build_staging.sh       | 6 ++++++
 part2/jbake.properties | 1 -
 part2/templates        | 1 +
 5 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/build_local.sh b/build_local.sh
index 81483e5..00da03a 100755
--- a/build_local.sh
+++ b/build_local.sh
@@ -7,6 +7,8 @@ rm -rf $WORKDIR
 mkdir -p $WORKDIR
 cp assets/.htaccess $WORKDIR
 
+# we twice bake because we have more files to precess than 16384
+# bake part2 content first.
 cd part2
 ../bake.sh -b . $WORKDIR
 cd ..
diff --git a/build_site.sh b/build_site.sh
index c296a71..5b1d8db 100755
--- a/build_site.sh
+++ b/build_site.sh
@@ -8,6 +8,12 @@ rm -rf $WORKDIR
 mkdir -p $WORKDIR
 cp assets/.htaccess $WORKDIR
 
+# we twice bake because we have more files to precess than 16384
+# bake part2 content first.
+cd part2
+../bake.sh -b . $WORKDIR
+cd ..
+
 # now bake the site
 ./bake.sh -b . $WORKDIR
 
diff --git a/build_staging.sh b/build_staging.sh
index 8f3df7c..d6b03df 100755
--- a/build_staging.sh
+++ b/build_staging.sh
@@ -7,6 +7,12 @@ ME=`basename $0`
 rm -rf $WORKDIR
 mkdir -p $WORKDIR
 
+# we twice bake because we have more files to precess than 16384
+# bake part2 content first.
+cd part2
+../bake.sh -b . $WORKDIR
+cd ..
+
 # now bake the site
 ./bake.sh -b . $WORKDIR
 cp assets/.htaccess $WORKDIR
diff --git a/part2/jbake.properties b/part2/jbake.properties
index a583575..180dcc1 100644
--- a/part2/jbake.properties
+++ b/part2/jbake.properties
@@ -1,6 +1,5 @@
 #site.host=https://www.openofffice.org
 site.host=http://localhost:8820
-template.folder=../templates
 template.brand.file=brand.gsp
 template.navigator.file=navigator.gsp
 template.page.file=page.gsp
diff --git a/part2/templates b/part2/templates
new file mode 120000
index 0000000..564a409
--- /dev/null
+++ b/part2/templates
@@ -0,0 +1 @@
+../templates
\ No newline at end of file