diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..87779752c1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: something +install: +- echo "Installed" +script: + - sh .travis/publish.sh +after_success: + - sh .travis/deploy.sh +env: + global: + - DITAMAP=DITA/UserManual.ditamap + - DITAVAL=DITA/author.ditaval + - ANT_OPTS=-Xmx1024M + - secure: eDx05nCQBkMghcyW2gDBwpOEkb3mg2wYd+B3qdyfLidkHXWxluECt1pau9E0m4c7vVzaY5nH5GRm9aePkLhxTbqVcAaLd84JBkszxyBIGMK95r5LxQC8vjnc+UKDL7t9sPVeXavmyLarOuRWD0ZPTF7GsEdmap/HYO5fUEhUKjiae5xp//JV3bOrvKBqXkk0XdCpUwJWyGqp5X/Nx8BtAYWW3aJs6xRT5PQueHPH3QYUlsV/BstKHFkgNmCL/Kc47JTAUgd46fxH4FerKpDq44hK9sOMqlvLFshmbmRqfaaLynpwfM6QtS9jp3ZZQ9bt8oXucM5NYNdK6VXG7gEQkKP0EW2/NfODzB/E6E10B2jY6C6KqoJ2xfsdgT1DQnrlTUz3eOCTfdY873AWNuWfHv9UlP5QIrCYWqVktJCkJWDdlG2VhWCieUkUx5C2nh50ZkGALRBP8gs8ztQ5hwifdbuqBd3lVYYi6ZPl0JIUDRK68O2rX1sr4+9P0HCLuSOTSnN9H1QMvM8X2aBZxtuk0rhcQLqPvY5EV8kj3R2tfemq3jIDDBZD0EMuQVR8Ilza2AZPJhtCwMzrd6+JrVk5UWfNtTN2dUhUNBwt8Zr/GmnKhbg0H0ZWhXtd+zDfwCpAazGllncwadfF2DP2hVSyBy4vN5ijL3lxTFxN/IiJYg8= +before_install: +- openssl aes-256-cbc -K $encrypted_44bb9a165316_key -iv $encrypted_44bb9a165316_iv + -in licenseKey.txt.enc -out licenseKey.txt -d diff --git a/.travis/deploy.sh b/.travis/deploy.sh new file mode 100644 index 0000000000..be3a9bb4f8 --- /dev/null +++ b/.travis/deploy.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +set -o errexit -o nounset + +if [ "$TRAVIS_BRANCH" != "master" ] +then + echo "This commit was made against the $TRAVIS_BRANCH and not the master! No deploy!" + exit 0 +fi + +rev=$(git rev-parse --short HEAD) + +REPONAME=`basename $PWD` +PARENTDIR=`dirname $PWD` +USERNAME=`basename $PARENTDIR` +cd out + +git init +git config user.name "oXygen XML Deployer" +git config user.email "support@oxygenxml.com" + +git remote add upstream "https://$GH_TOKEN@github.com/$USERNAME/$REPONAME.git" +git fetch upstream +git reset upstream/gh-pages + +touch . + +ls +git status + +git add -A . +git commit -m "rebuild pages at ${rev}" +git push -q upstream HEAD:gh-pages diff --git a/.travis/publish.sh b/.travis/publish.sh new file mode 100644 index 0000000000..311cc4db4f --- /dev/null +++ b/.travis/publish.sh @@ -0,0 +1,30 @@ +wget http://mirror.oxygenxml.com/InstData/Editor/Webhelp/oxygen-webhelp.zip +unzip oxygen-webhelp.zip + +wget https://github.com/dita-ot/dita-ot/releases/download/2.2.3/dita-ot-2.2.3.zip +unzip dita-ot-2.2.3.zip + +cp -R com.oxygenxml.* dita-ot-2.2.3/plugins/ +mv dita-ot-2.2.3/plugins/com.oxygenxml.webhelp/plugin_2.x.xml dita-ot-2.2.3/plugins/com.oxygenxml.webhelp/plugin.xml +# Add the editlink plugin +git clone https://github.com/ctalau/ditaot-editlink-plugin dita-ot-2.2.3/plugins/com.oxygenxml.editlink/ + +cd dita-ot-2.2.3/ +bin/ant -f integrator.xml +cd .. + +cp licenseKey.txt dita-ot-2.2.3/plugins/com.oxygenxml.webhelp/licensekey.txt + +rm -rf out + +REPONAME=`basename $PWD` +PARENTDIR=`dirname $PWD` +USERNAME=`basename $PARENTDIR` + +# Send some parameters to the "editlink" plugin as system properties +export ANT_OPTS="$ANT_OPTS -Dditamap.path=$DITAMAP" +export ANT_OPTS="$ANT_OPTS -Dcwd=`pwd`" +export ANT_OPTS="$ANT_OPTS -Drepo.url=github://getFileContent/$USERNAME/$REPONAME/$TRAVIS_BRANCH/" +export ANT_OPTS="$ANT_OPTS -Dwebapp.url=https://www.oxygenxml.com/webapp-demo-aws/" + +dita-ot-2.2.3/bin/dita -i $DITAMAP -f webhelp-responsive -filter=$DITAVAL diff --git a/DITA/concepts/installation-options.dita b/DITA/concepts/installation-options.dita index 7a545ad6e6..8190bc14cd 100644 --- a/DITA/concepts/installation-options.dita +++ b/DITA/concepts/installation-options.dita @@ -4,7 +4,7 @@
You can install
http://dita.oasis-open.org/architecture/2005/namespace. This enhanced case of matching is only applied when the
Welcome to the User Manual of