htmldoc-location
authorDebian GPS team <gpsbabel@packages.debian.org>
Sat, 25 Jun 2022 19:49:08 +0000 (20:49 +0100)
committerJochen Sprickerhof <jspricke@debian.org>
Sat, 25 Jun 2022 19:49:08 +0000 (20:49 +0100)
Gbp-Pq: Name htmldoc-location

gbversion.h.qmake.in
testo.d/serialization.test
tools/make_gpsbabel_org.sh
xmldoc/babelmain.xsl
xmldoc/gpsbabel_man.xml

index 1b50b954888dd533cd8d4da8c0078b0ceb7534db..71e92088f5c7939e413406a291e3c52515a91939 100644 (file)
@@ -14,5 +14,5 @@
 #else
 #define VERSION \"$${GB.MAJOR}.$${GB.MINOR}.$${GB.MICRO}$${GB.PACKAGE_RELEASE}\"
 constexpr char kVersionSHA[] = \"$${GB.SHA}\";
-#define WEB_DOC_DIR \"https://www.gpsbabel.org/htmldoc-$${DOCVERSION}\"
+#define WEB_DOC_DIR \"file:///usr/share/doc/gpsbabel/html\"
 #endif
index 3eadff6a014b18d70bf6b832e63d363fd03ce06a..f09f1e4eb7b8769915f2bdc3f9179b467d4cdfc1 100644 (file)
@@ -7,7 +7,7 @@
 # the GUI and the document.
 # We do a compare_nole as specific whitespace is part of deserialization.
 gpsbabel -^3 > ${TMPDIR}/format3.txt
-sed 's,https://www.gpsbabel.org/htmldoc-.[^/]*/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/format3.txt >${TMPDIR}/format3.fiddled.txt
+sed 's,file:///usr/share/doc/gpsbabel/html/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/format3.txt >${TMPDIR}/format3.fiddled.txt
 compare_nole ${REFERENCE}/format3.txt ${TMPDIR}/format3.fiddled.txt
 gpsbabel -^2 > ${TMPDIR}/format2.txt
 compare_nole ${REFERENCE}/format2.txt ${TMPDIR}/format2.txt
@@ -16,7 +16,7 @@ compare_nole ${REFERENCE}/format1.txt ${TMPDIR}/format1.txt
 gpsbabel -^0 > ${TMPDIR}/format0.txt
 compare_nole ${REFERENCE}/format0.txt ${TMPDIR}/format0.txt
 gpsbabel -%1 > ${TMPDIR}/filter1.txt
-sed 's,https://www.gpsbabel.org/htmldoc-.[^/]*/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/filter1.txt >${TMPDIR}/filter1.fiddled.txt
+sed 's,file:///usr/share/doc/gpsbabel/html/,https://www.gpsbabel.org/WEB_DOC_DIR/,' ${TMPDIR}/filter1.txt >${TMPDIR}/filter1.fiddled.txt
 compare_nole ${REFERENCE}/filter1.txt ${TMPDIR}/filter1.fiddled.txt
 gpsbabel -%0 > ${TMPDIR}/filter0.txt
 compare_nole ${REFERENCE}/filter0.txt ${TMPDIR}/filter0.txt
index f19b45c40ae0556ecc856071ff5085167933dff0..6066250cc8c2a22a24f1dd39a05248ce0e5da4e5 100755 (executable)
@@ -4,15 +4,12 @@ set -ex
 web=$1
 docversion=$2
 
-mkdir -p "${web}/htmldoc-${docversion}"
+mkdir -p "html"
 perl xmldoc/makedoc
 xmlwf xmldoc/readme.xml #check for well-formedness
 xmllint --noout --valid xmldoc/readme.xml #validate
 xsltproc \
-  --stringparam base.dir "${web}/htmldoc-${docversion}/" \
+  --stringparam base.dir "html" \
   --stringparam root.filename "index" \
   xmldoc/babelmain.xsl \
   xmldoc/readme.xml
-tools/fixdoc "${web}/htmldoc-${docversion}" "GPSBabel ${docversion}:"
-tools/mkcapabilities "${web}" "${web}/htmldoc-${docversion}"
-cp gpsbabel.pdf "${web}/htmldoc-${docversion}/gpsbabel-${docversion}.pdf"
index cdac5934f560d783931275551dc3050a1478943c..b0d192e98d237978c2ef772d17e1fa96d1d99554 100644 (file)
     <xsl:apply-imports/>
   </xsl:param>
 
-  {extends file="main.tpl"}
     <xsl:call-template name="html.head">
       <xsl:with-param name="prev" select="$prev"/>
       <xsl:with-param name="next" select="$next"/>
     </xsl:call-template>
       <xsl:call-template name="body.attributes"/>
-  {block name=body}{literal}
                       <xsl:call-template name="user.header.navigation"/>
 
                       <xsl:call-template name="header.navigation">
@@ -73,7 +71,6 @@
                       </xsl:call-template>
 
                       <xsl:call-template name="user.footer.navigation"/>
-      {/literal}{/block}
   <xsl:value-of select="$chunk.append"/>
 </xsl:template>
 
index ab169c7ce7409ad95e3843a3b48dd3ddd87e83ce..bef432d81057305d79f2194fd1d16d76988898c7 100644 (file)
@@ -127,7 +127,7 @@ or as the backend for other tools. </para>
         </listitem>
       </varlistentry>
     </variablelist>
-    <para>Lists of filters and formats are given in the doc at https://www.gpsbabel.org. </para>
+    <para>Lists of filters and formats are given in the doc at /usr/share/doc/gpsbabel/. </para>
   </refsect1>
   <refsect1>
     <title>See Also</title>