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

djencks pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-antora.git


The following commit(s) were added to refs/heads/master by this push:
     new 702717c  start on a publish script
702717c is described below

commit 702717c878b0727877befc5fc92f389cf6a64c29
Author: David Jencks <[email protected]>
AuthorDate: Sat Aug 22 15:14:40 2020 -0700

    start on a publish script
---
 antora-playbook.yml |  4 ++--
 build-publish.sh    | 20 ++++++++++++++++++++
 package.json        |  3 ++-
 3 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/antora-playbook.yml b/antora-playbook.yml
index ec39bd6..362a3e8 100644
--- a/antora-playbook.yml
+++ b/antora-playbook.yml
@@ -22,5 +22,5 @@ ui:
   #currently .htaccess has to be copied by hand, see 
https://gitlab.com/antora/antora/-/issues/627 and package.json
   supplemental_files: ./supplemental-ui
 
-output:
-  clean: true
+#output:
+#  clean: true
diff --git a/build-publish.sh b/build-publish.sh
new file mode 100644
index 0000000..a6ef2fe
--- /dev/null
+++ b/build-publish.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+#npm run clean-install
+
+rm -rf build
+mkdir -p build/site
+# clone the aries-site-pub repo
+(
+cd build/site
+git clone --depth 1 [email protected]:apache/aries-site-pub.git .
+git rm -r .
+)
+
+npm run build-noclean
+
+(
+cd build/site
+git add .
+git commit -m "site build"
+)
diff --git a/package.json b/package.json
index 53c6057..2c75fd8 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,8 @@
   "scripts": {
     "clean-build": "npm run clean-install;npm run build",
     "clean-install": "rm -rf node_modules/ .cache/ package-lock.json;npm i 
--cache=.cache/npm",
-    "build": "node_modules/.bin/antora antora-playbook.yml --stacktrace 
--fetch --clean;cp ./supplemental-ui/.htaccess ./build/site/"
+    "build": "node_modules/.bin/antora antora-playbook.yml --stacktrace 
--fetch --clean;cp ./supplemental-ui/.htaccess ./build/site/",
+    "build-noclean": "node_modules/.bin/antora antora-playbook.yml 
--stacktrace --fetch;cp ./supplemental-ui/.htaccess ./build/site/"
   },
   "devDependencies": {
     "@antora/cli": "^2.3.3",

Reply via email to