tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dkupp...@apache.org
Subject [tinkerpop] branch TINKERPOP-2002 updated: fixed JSDocs publish directory
Date Tue, 13 Nov 2018 19:36:19 GMT
This is an automated email from the ASF dual-hosted git repository.

dkuppitz pushed a commit to branch TINKERPOP-2002
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/TINKERPOP-2002 by this push:
     new 0272809  fixed JSDocs publish directory
0272809 is described below

commit 02728090a6fd48fd969f3ff5849242cca25c59fa
Author: Daniel Kuppitz <daniel_kuppitz@hotmail.com>
AuthorDate: Tue Nov 13 12:36:08 2018 -0700

    fixed JSDocs publish directory
---
 bin/publish-docs.sh | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/bin/publish-docs.sh b/bin/publish-docs.sh
index 788add8..9043430 100755
--- a/bin/publish-docs.sh
+++ b/bin/publish-docs.sh
@@ -54,9 +54,13 @@ mkdir -p "javadocs/${VERSION}/core"
 mkdir -p "javadocs/${VERSION}/full"
 mkdir -p "jsdocs/${VERSION}"
 
+mkdir -p ../jsdocs
+rm -rf ../jsdocs/*
+cp -R ../../gremlin-javascript/src/main/javascript/gremlin-javascript/doc/ ../jsdocs/
+
 diff -rq -I '^Last updated' docs/${VERSION}/ ../docs/htmlsingle/ | awk -f ../../bin/publish-docs.awk
| sed 's/^\(.\) \//\1 /g' > ../publish-docs.docs
 diff -rq -I 'Generated by javadoc' -I '^<meta name="date"' javadocs/${VERSION}/ ../site/apidocs/
| awk -f ../../bin/publish-docs.awk | sed 's/^\(.\) \//\1 /g' > ../publish-docs.javadocs
-diff -rq -I 'Generated by jsdoc' -I '^<meta name="date"' jsdocs/${VERSION}/ ../../gremlin-javascript/src/main/javascript/gremlin-javascript/doc/
| awk -f ../../bin/publish-docs.awk | sed 's/^\(.\) \//\1 /g' > ../publish-docs.jsdocs
+diff -rq -I 'Generated by jsdoc' -I '^<meta name="date"' jsdocs/${VERSION}/ ../jsdocs/doc/
| awk -f ../../bin/publish-docs.awk | sed 's/^\(.\) \//\1 /g' > ../publish-docs.jsdocs
 
 # copy new / modified files
 for file in $(cat ../publish-docs.docs | awk '/^[AU]/ {print $2}' | grep -v '.graffle$')
@@ -77,10 +81,10 @@ do
 done
 for file in $(cat ../publish-docs.jsdocs | awk '/^[AU]/ {print $2}')
 do
-  if [ -d "../../gremlin-javascript/src/main/javascript/gremlin-javascript/doc/${file}" ];
then
-    mkdir -p "javadocs/${VERSION}/${file}" && cp -r "../../gremlin-javascript/src/main/javascript/gremlin-javascript/doc/${file}"/*
"$_"
+  if [ -d "../jsdocs/doc/${file}" ]; then
+    mkdir -p "jsdocs/${VERSION}/${file}" && cp -r "../jsdocs/doc/${file}"/* "$_"
   else
-    mkdir -p "javadocs/${VERSION}/`dirname ${file}`" && cp "../../gremlin-javascript/src/main/javascript/gremlin-javascript/doc/${file}"
"$_"
+    mkdir -p "jsdocs/${VERSION}/`dirname ${file}`" && cp "../jsdocs/doc/${file}"
"$_"
   fi
 done
 


Mime
View raw message