Unverified Commit ba0fe7f3 authored by Amy Stamile's avatar Amy Stamile Committed by GitHub
Browse files

Isis docs fixes (#5440)

* Update version numbers in docs

* updated urls

* remove redirect.xml

* remove redirect.xsl
parent 9b479f93
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -85,8 +85,6 @@ function(build_upper_level)

  # These folders are populated inside "build_documents_folder"
  
  # Create a redirect for the top level index file. It points to the version index file
  execute_process(COMMAND ${XALAN} ${XALAN_VALIDATE_OPTION} ${XALAN_PARAM_OPTION} menuPath \"${docVersion}/\" ${XALAN_OUTFILE_OPTION} ${docInstallFolder}/index.html ${XALAN_INFILE_OPTION} ${docBuildFolder}/build/redirect.xml ${XALAN_XSL_OPTION} ${docBuildFolder}/build/redirect.xsl)
  # Create the main documentaion page. This is located in the version directory 
  execute_process(COMMAND ${XALAN} ${XALAN_VALIDATE_OPTION} ${XALAN_PARAM_OPTION} menuPath \"\" ${XALAN_OUTFILE_OPTION} ${docInstallFolder}/${docVersion}/index.html ${XALAN_INFILE_OPTION} ${docBuildFolder}/build/homepage.xml ${XALAN_XSL_OPTION} ${docBuildFolder}/build/main.xsl)

+26 −8
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ Deborah Lee Soltesz
    </div>

    <div>
      <a href="https://github.com/USGS-Astrogeology/ISIS3">
      <a href="https://github.com/DOI-USGS/ISIS3">
      GitHub</a>
    </div>

@@ -106,13 +106,31 @@ Deborah Lee Soltesz
    </h2>

    <div>
      <label for="Versions"></label>
      <select name="Versions" id="Versions">
        <option value="Public Release" onClick="location.href='https://isis.astrogeology.usgs.gov'" selected="Public Release">Public Release</option> 
        <option value="6.0.0" onClick="location.href='https://isis.astrogeology.usgs.gov/6.0.0/index.html'">6.0.0</option>
        <option value="3.9.0" onClick="location.href='https://isis.astrogeology.usgs.gov/3.9.0/index.html'">3.9.0</option>
        <option value="3.5.0" onClick="location.href='https://isis.astrogeology.usgs.gov/3.5.0/index.html'">3.5.0</option>
      </select>
      <a href="https://isis.astrogeology.usgs.gov">Public Release</a>
    </div>
    <div>
      <a href="https://isis.astrogeology.usgs.gov/8.1.0/">8.1.0</a>
    </div>
    <div>
      <a href="https://isis.astrogeology.usgs.gov/8.0.0/">8.0.0</a>
    </div>  
    <div>
      <a href="https://isis.astrogeology.usgs.gov/7.2.0/">7.2.0</a>
    </div>
    <div>
      <a href="https://isis.astrogeology.usgs.gov/7.1.0/">7.1.0</a>
    </div>
    <div>
      <a href="https://isis.astrogeology.usgs.gov/7.0.0/">7.0.0</a>
    </div>
    <div>
      <a href="https://isis.astrogeology.usgs.gov/6.0.0/">6.0.0</a>
    </div>
    <div>
      <a href="https://isis.astrogeology.usgs.gov/3.9.0/">3.9.0</a>
    </div>
    <div>
      <a href="https://isis.astrogeology.usgs.gov/3.5.0/">3.5.0</a>
    </div>

    <hr/>
+0 −23
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<redirectPage>
  <div class="isisNavigationBar">
  <table>
    <tr>
      <td><img src="assets/banners/banner.jpg" width="600" height="106" alt="[USGS Banner]" border="0" usemap="#bannermap"/>
        <map name="bannermap" id="bannermap">
          <area shape="rect" target="_top" alt="Visit the USGS Home Page" coords="2,1,186,73" href="http://www.usgs.gov"
            title="Visit the USGS Home Page"/>
          <area shape="rect" target="_top" alt="Go to the Astrogeology Research Program Home Page" coords="2,75,249,102"
            href="http://astrogeology.usgs.gov"   title="Go to the Astrogeology Research Program Home Page"/>
          <area shape="default" alt="USGS" nohref="nohref"/>
        </map>
      </td>
    </tr>
  </table>
  </div>

  <meta http-equiv="refresh" content="0; url='7.0.0/index.html'" />

  <p>You were not rediected to the new home for ISIS documentation. Please follow: <a href="'7.0.0/index.html'">this link</a>.</p>

</redirectPage>
+0 −106
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    xmlns:fo="http://www.w3.org/1999/XSL/Format" 
    exclude-result-prefixes="xmlns fo">

<!--

This stylesheet will be used to generate the top level index page which redirects to the current public release docs

Author
Deborah Lee Soltesz
04/15/2003

Updated to be just a redirect page
03/15/2022
-->

<xsl:include href="menu.xsl"/>

<xsl:output 
  media-type="text/html" 
  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
  indent="yes"
  encoding="utf-8"
  omit-xml-declaration="yes">
  <xsl:template match="/">
     <xsl:apply-templates select="//redirectPage" />
  </xsl:template>
</xsl:output>

  <xsl:template match="//redirectPage">
      <html>
      <head>
        <title>USGS Isis: Planetary Image Processing Software</title>
        <meta name="keywords" content="Isis, image processing, software, open source, remote sensing, planetary science, astrogeology"/>
        <!-- need ratings tag -->
        <meta name="description" content="Integrated Software for Imagers and Spectrometers (ISIS), created and managed by the USGS Astrogeology Research Program. ISIS provides a comprehensive, user-friendly, portable tool for processing, analyzing, and displaying remotely sensed image data."/>
        <meta name="publisher" content="USGS - GD - Astrogeology Program"/>
        <meta name="author" content="Deborah Lee Soltesz, webteam@astrogeology.usgs.gov"/>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta name="country" content="USA"/>
        <meta name="state" content="AZ"/>
        <meta name="county" content="Coconino"/>
        <meta name="city" content="Flagstaff"/>
        <meta name="zip" content="86001"/>

        <link rel="stylesheet" href="assets/styles/IsisStyleCommon.css"/>
        <link rel="stylesheet" href="assets/styles/main.css"/>
        <link rel="stylesheet" href="assets/styles/menu.css"/>
        <link rel="stylesheet" media="print" href="assets/styles/print.css"/>

        <script type="text/javascript" src="assets/scripts/homepage.js"></script>
        <!-- Dynamic analytics insertion to prevent running on local URLs -->
        <xsl:text>&#xa;</xsl:text>
        <script type="text/javascript">
          //<xsl:comment><![CDATA[
	  (function() {
            var usgsAnalytics = document.createElement('script');
            usgsAnalytics.type = 'text/javascript';
            usgsAnalytics.async = true;
            usgsAnalytics.src = 'http://www.usgs.gov/scripts/analytics/usgs-analytics.js';
            if('http:' == document.location.protocol) {
              var s = document.getElementsByTagName('script')[0];
              s.parentNode.insertBefore(usgsAnalytics, s);
            }
          })(); 
          ]]></xsl:comment>
        <xsl:text>&#xa;</xsl:text>
        </script>
      <!-- ** end  PAGE HEADER needs these scripts  ** -->

      </head>

      <body>

        <div class="isisMenu">
          <xsl:call-template  name="writeMenu"/>
         </div>

       <div class="isisContent">
        <!--xsl:copy-of select="."/-->
        <xsl:apply-templates select="* | text()" mode="copyContents"/>
       </div>

      <!-- end of body -->
      </body>
      </html>

  </xsl:template>

  <xsl:template match="*" mode="copyContents">
    <xsl:element name="{name()}" namespace="{namespace-uri()}">
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates mode="copyContents"/>
    </xsl:element>
  </xsl:template>

  <xsl:template match="text()" mode="copyContents">
      <xsl:value-of select="."/>
      <xsl:apply-templates mode="copyContents"/>
  </xsl:template>

</xsl:stylesheet>