From 433c4c0477c6dfcde68ed5b1eb98f1811095f050 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Mon, 7 Nov 2016 13:17:11 +0100 Subject: Change '/text' to just 'text' on many places. With this, the pages start appearing even locally with just pointing the browser to file:///.../help_git_repo/source/index.html --- source/get_bookmark.sh | 18 +++++++++--------- source/get_bookmark.xsl | 12 +++++++++++- source/index.html | 22 +++++++++++----------- source/online_transform.xsl | 22 ++++++++++------------ 4 files changed, 41 insertions(+), 33 deletions(-) diff --git a/source/get_bookmark.sh b/source/get_bookmark.sh index a64ee2402f..af2edd88d5 100755 --- a/source/get_bookmark.sh +++ b/source/get_bookmark.sh @@ -11,54 +11,54 @@ stub2='' ffile=bookmark_calc.html rm -f $ffile echo $stub1 > $ffile -find ../source/text/scalc -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile +find text/scalc -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile echo $stub2 >> $ffile ffile=bookmark_writer.html rm -f $ffile echo $stub1 > $ffile -find ../source/text/swriter -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile +find text/swriter -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile echo $stub2 >> $ffile ffile=bookmark_draw.html rm -f $ffile echo $stub1 > $ffile -find ../source/text/sdraw -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile +find text/sdraw -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile echo $stub2 >> $ffile ffile=bookmark_impress.html rm -f $ffile echo $stub1 > $ffile -find ../source/text/simpress -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile +find text/simpress -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile echo $stub2 >> $ffile ffile=bookmark_shared.html rm -f $ffile echo $stub1 > $ffile -find ../source/text/shared -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile +find text/shared -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile echo $stub2 >> $ffile ffile=bookmark_chart.html rm -f $ffile echo $stub1 > $ffile -find ../source/text/schart -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile +find text/schart -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile echo $stub2 >> $ffile ffile=bookmark_math.html rm -f $ffile echo $stub1 > $ffile -find ../source/text/smath -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile +find text/smath -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile echo $stub2 >> $ffile ffile=bookmark_basic.html rm -f $ffile echo $stub1 > $ffile -find ../source/text/sbasic -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile +find text/sbasic -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile echo $stub2 >> $ffile ffile=bookmark_base.html rm -f $ffile echo $stub1 > $ffile -find ../source/text/shared/explorer/database -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile +find text/shared/explorer/database -type f -name "*.xhp" -exec xsltproc get_bookmark.xsl {} + >> $ffile echo $stub2 >> $ffile diff --git a/source/get_bookmark.xsl b/source/get_bookmark.xsl index b3e65ebfe3..3b1be23b0f 100644 --- a/source/get_bookmark.xsl +++ b/source/get_bookmark.xsl @@ -23,7 +23,17 @@ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> # Variables and Parameters # ############################ //--> - + + + + + + + + + + + diff --git a/source/index.html b/source/index.html index 11e30200bd..90b5726f3c 100644 --- a/source/index.html +++ b/source/index.html @@ -19,15 +19,15 @@
- - - - - - - - - + + + + + + + + +

Calc

Writer

Impress

Draw

Chart

Basic

Math

Base

Guide

Calc

Writer

Impress

Draw

Chart

Basic

Math

Base

Guide

@@ -39,9 +39,9 @@ if (window.location.href.indexOf('?') && getParameterByName('page')) { var language = getParameterByName("Language"); var system = getParameterByName("System"); var usedb = getParameterByName("UseDB"); - displayResult('../source/text/' + getParameterByName('page') + '&DbPAR='+module+'&Language='+language+'&System='+system+'&UseDB='+usedb); + displayResult('text/' + getParameterByName('page') + '&DbPAR='+module+'&Language='+language+'&System='+system+'&UseDB='+usedb); } else { - displayResult('../source/text/shared/main0108.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=shared','shared'); + displayResult('text/shared/main0108.xhp?Language=en-US&System=WIN&UseDB=no&DbPAR=shared','shared'); } diff --git a/source/online_transform.xsl b/source/online_transform.xsl index 2d18765016..b5f11579c4 100644 --- a/source/online_transform.xsl +++ b/source/online_transform.xsl @@ -110,7 +110,7 @@ - + @@ -159,15 +159,15 @@