You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by dk...@apache.org on 2017/10/03 15:19:13 UTC

tinkerpop git commit: Update links to all docs pages in Docker build and emulate the published directory structure. This way the docs are easier to navigate in local builds.

Repository: tinkerpop
Updated Branches:
  refs/heads/tp32 7b0bd9574 -> 5e3977184


Update links to all docs pages in Docker build and emulate the published directory structure. This way the docs are easier to navigate in local builds.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/5e397718
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/5e397718
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/5e397718

Branch: refs/heads/tp32
Commit: 5e3977184523e005ac60e3dcaac199f3d63335fd
Parents: 7b0bd95
Author: Daniel Kuppitz <da...@hotmail.com>
Authored: Fri Sep 29 10:14:46 2017 -0700
Committer: Daniel Kuppitz <da...@hotmail.com>
Committed: Mon Oct 2 09:58:59 2017 -0700

----------------------------------------------------------------------
 docker/scripts/build.sh | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/5e397718/docker/scripts/build.sh
----------------------------------------------------------------------
diff --git a/docker/scripts/build.sh b/docker/scripts/build.sh
index bc22de9..5ef74fc 100755
--- a/docker/scripts/build.sh
+++ b/docker/scripts/build.sh
@@ -96,8 +96,14 @@ if [ ! -z "${BUILD_USER_DOCS}" ]; then
   mkdir -p ~/.groovy
   cp docker/resources/groovy/grapeConfig.xml ~/.groovy/
   rm -rf /tmp/neo4j
+  grep -l 'http://tinkerpop.apache.org/docs/x.y.z' $(find docs/src -name "*.asciidoc" | grep -v '^.docs/src/upgrade/') | xargs sed -i 's@http://tinkerpop.apache.org/docs/x.y.z@/docs/x.y.z@g'
   bin/process-docs.sh || exit 1
 
+  # emulate published directory structure
+  VERSION=$(cat pom.xml | grep -A1 '<artifactId>tinkerpop</artifactId>' | grep '<version>' | awk -F '>' '{print $2}' | awk -F '<' '{print $1}')
+  mkdir target/docs/htmlsingle/docs
+  ln -s .. target/docs/htmlsingle/docs/${VERSION}
+
   # start a simple HTTP server
   IP=$(ifconfig | grep -o 'inet addr:[0-9.]*' | cut -f2 -d ':' | head -n1)
   cd target/docs/htmlsingle/