⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 site.jsl

📁 数据仓库工具
💻 JSL
📖 第 1 页 / 共 2 页
字号:
<?xml version="1.0"?>
<!-- stylesheet to be used -->
<jsl:stylesheet select="$doc"
  xmlns:define="jelly:define"
  xmlns:j="jelly:core"
  xmlns:jsl="jelly:jsl"
  xmlns:log="jelly:log"
  xmlns:util="jelly:util"
  xmlns:x="jelly:xml"
  xmlns:doc="doc"
  xmlns="dummy" trim="false">
  <jsl:template match="document" trim="false">
    <j:useBean var="navbean" class="org.apache.maven.NavBean"/>
	<j:set var="location" value="${outFile.substring(destdir.length())}"/>
	<util:replace var="location" oldChar="\" newChar="/" value="${location}"/>

    <!-- Stores location for publish date / version -->
    <j:set var="date">${maven.xdoc.date}</j:set>
      
	<j:setProperties 
		object="${navbean}"
  		document="${doc}"
  		location="${location}"/>
	
	<x:doctype name="html"
      publicId="-//CollabNet//DTD XHTML 1.0 Transitional//EN"
      systemId="http://www.collabnet.com/dtds/collabnet_transitional_10.dtd"/>

    <html>
      <head>
        <j:set var="docTitle">
          <x:expr select="./properties/title"/>
        </j:set>
        <x:if select="$nav/title">
          <title>
            <x:expr select="$nav/title"/> - ${docTitle}
          </title>
        </x:if>
        <x:if select="not($nav/title)">
          <title>${pom.name} - ${docTitle}</title>
        </x:if>
        
        <style type="text/css"><![CDATA[
          @import url("${relativePath}/style/tigris.css");
          @import url("${relativePath}/style/maven.css");
        ]]></style>
        
        <util:file var="projectCssFile" name="${maven.docs.src}/style/project.css"/>
        <j:if test="${projectCssFile.exists()}">
          <style type="text/css"><![CDATA[
            @import url("${relativePath}/style/project.css");
          ]]></style>
        </j:if>
        
        <!-- FIXME: once someone works out how to stop this breaking
        <x:element name="script"><x:attribute name="type">text/javascript</x:attribute>
          if (document.layers) {
                document.writeln(''+
                '<link rel="stylesheet" type="text/css" href="${relativePath}/style/ns4_only.css" media="screen" /><link rel="stylesheet" type="text/css" href="${relativePath}/style/maven_ns4_only.css" media="screen"/>');
              }
            </x:element>
        -->
        <link rel="stylesheet" type="text/css" href="${relativePath}/style/print.css" media="print"/>
        <x:forEach var="author" select="./properties/author">
          <meta name="author" value="${author.text}"/>
          <meta name="email" value="${author.attribute('email').value}"/>
        </x:forEach>
      </head>

      <body class="composite" marginwidth="0" marginheight="0">
        <div id="banner">
          <table border="0" cellspacing="0" cellpadding="8" width="100%">
            <tr>
              <!-- organization logo -->
              <td>
                <j:set var="logo" value="${pom.organization.logo}"/>
                <j:if test="${!empty(logo)}">
                  <!-- set url to org or project url -->
                  <j:set var="url" value="${pom.organization.url}"/>
                  <j:if test="${!empty(url)}">
                    <j:set var="home" value="${pom.organization.url}"/>
                  </j:if>
                  <j:if test="${empty(url)}">
                    <j:set var="home" value="${pom.url}"/>
                  </j:if>
                  <!-- set image to relative or complete -->
                  <j:set var="image" value="${pom.organization.logo}"/>
                  <j:if test="${!image.startsWith('http://')}">
                    <j:set var="image" value="${relativePath}${image}"/>
                  </j:if>
                  <a href="${home}">
                    <img src="${image}" align="left" alt="${pom.organization.name}" border="0"/>
                  </a>
                </j:if>
              </td>
              
              <!-- project logo and link -->
              <td>
                <div align="right" id="login">
                  <j:set var="logo" value="${pom.logo}"/>
                  <j:if test="${logo != null and logo != ''}">
                    <!-- set image to relative or complete -->
                    <j:set var="image" value="${pom.logo}"/>
                    <j:if test="${!image.startsWith('http://')}">
                      <j:set var="image" value="${relativePath}${image}"/>
                    </j:if>

                    <a href="${pom.url}">
                      <img src="${image}" align="right" alt="${pom.name}" border="0"/>
                    </a>
                  </j:if>
                </div>
                <j:if test="${logo == null or logo == ''}">
              		<h1>${pom.name}</h1>
                </j:if>
              </td>
            </tr>
          </table>
        </div>
        
        
        
        <div id="breadcrumbs">
          <table border="0" cellspacing="0" cellpadding="4" width="100%">
            <tr>
              <j:if test="${date == 'left'}">
                <j:set var="version" value="${maven.xdoc.version}"/>
                <td>Last published: ${build.date}
                  <j:if test="${!empty(version)}">| Doc for ${version}</j:if>
                </td>
              </j:if>
              <td>
                <div align="right">
                  <j:if test="${date == 'right'}">
                    Last published: ${build.date}
                    <x:if select="$nav/body/links">|</x:if>
                  </j:if>
                  <!-- render links -->
                  <x:if select="$nav/body/links">
                    <jsl:applyTemplates select="$nav/body/links"/>
                  </x:if>
                  <x:if select="not($nav/body/links)">
                    <!-- FIXME &nbsp; -->
                  </x:if>
                </div>
              </td>
            </tr>
          </table>
        </div>
        <!-- Body of the page -->
        <table border="0" cellspacing="0" cellpadding="8" width="100%"> <!--id="main" -->
          <tr valign="top">
            <td id="leftcol" width="20%">
              <div id="navcolumn">
                <j:if test="${date == 'navigation-top'}">
                  <div>
                    <small>Last published: ${build.date}</small>
                  </div>
                </j:if>

                <x:if select="$nav">
                  <jsl:applyTemplates select="$nav/body/menu[not(@type) | @type='header']"/>
                </x:if>
                
                <!-- Standard Maven Navigation -->
                <j:set var="fileName">${file}</j:set>

                <!-- 
                 ! Check to see if the user wishes to include the
                 ! maven-generated docs on their site.
                 !-->
                <j:if test="${includeProjectDocumentation.equals('yes')}">
                <div>
                  <strong>Project Documentation</strong>
                  <div>
                    <small>
                      <a href="${relativePath}/index.html">Front Page</a>
                    </small>
                  </div>
                  <div>
                    <small>
                      <a href="${relativePath}/project-info.html">Project Info</a>
                    </small>
                    <util:tokenize var="projectInfoFiles" delim=",">${maven.xdoc.projectInfo}</util:tokenize>
                    <j:forEach var="infoFile" items="${projectInfoFiles}">
                      <j:if test="${relativePath == '.' and fileName.endsWith(infoFile)}">
                        <div>
                          <small>
                            <a href="${relativePath}/mail-lists.html">Mailing Lists</a>
                          </small>
                        </div>
                        <div>
                          <small>
                            <a href="${relativePath}/team-list.html">Project Team</a>
                          </small>
                        </div>
                        <div>
                          <small>
                            <a href="${relativePath}/dependencies.html">Dependencies</a>
                          </small>
                        </div>
                      </j:if>
                    </j:forEach>
                  </div>
                  <div>
                    <small>
                      <a href="${relativePath}/maven-reports.html">Project Reports</a>
                    </small>
                    
					<!--
                     | Check to see if we need to include the report
                     | links in this document.  The only time we
                     | need to do this is when the current document
                     | either the maven-reports.xml doc (the page
                     | is displayed when clicking on Project
                     | Reports) or when the current document is one
                     | of the actual reports (in which case we want
                     | to leave the project report links expanded.
                     |-->
                    <j:set var="includeReportLinks" value="false"/>
                    <j:forEach var="report" items="${reports}">
                      <j:set var="linkWithXmlExt" value="${report.link}.xml"/>
                      <j:if test="${relativePath == '.' and (fileName.endsWith('maven-reports.xml') or fileName.endsWith(linkWithXmlExt))}">
                      <j:set var="includeReportLinks" value="true"/>
                      </j:if>
                    </j:forEach>
                    
                    <!--
                     | If we need to include the report links, then
                     | do so.  This is determined by the above
                     | block.
                     |-->
                    <j:if test="${includeReportLinks == 'true'}">
                      <j:forEach var="report" items="${reports}">
                        <div>
                          <small>
                            <a href="${relativePath}/${report.link}.html">
                              ${report.name}
                            </a>
                          </small>
                        </div>
                      </j:forEach>
                    </j:if>
                  </div>
                  <j:if test="${pom.reports.isEmpty()}">
                    <j:if test="${sourcesPresent}">
                      <div>
                        <small>
                          <a href="${relativePath}/apidocs/index.html">JavaDocs</a>
                        </small>
                      </div>
                      <div>
                        <small>
                          <a href="${relativePath}/xref/index.html">Source XReference</a>
                        </small>
                      </div>
                      <j:if test="${unitTestSourcesPresent == 'true'}">
                        <div>
                          <small>
                            <a href="${relativePath}/xref-test/index.html">Test XReference</a>
                          </small>
                        </div>
                      </j:if>
                    </j:if>
                  </j:if>
                  <j:set var="devProcess" value="false"/>
                  <util:available file="${maven.docs.src}/development-process.xml">
                    <j:set var="devProcess" value="true"/>
                  </util:available>
                  <j:if test="${devProcess}">
                    <div>
                      <small>
                        <a href="${relativePath}/development-process.html">Development Process</a>
                      </small>
                    </div>
                  </j:if>
                  <j:if test="${!devProcess}">
                    <div>
                      <small>
                        <j:set var="devProcess">${maven.xdoc.developmentProcessUrl}</j:set>
                        <a href="${devProcess}">Development Process</a>
                      </small>
                    </div>
                  </j:if>
                </div>
              </j:if>
              
                <j:set var="poweredbyimage">${maven.xdoc.poweredby.image}</j:set>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -