Updated gatkdocs template

This commit is contained in:
Geraldine Van der Auwera 2017-07-28 00:30:56 -04:00
parent be523df1b1
commit 8af62576cf
3 changed files with 40 additions and 13 deletions

View File

@ -5,9 +5,9 @@
--> -->
<#global siteRoot = "http://www.broadinstitute.org/gatk/" /> <#global siteRoot = "https://software.broadinstitute.org/gatk/" />
<#global guideIndex = "http://www.broadinstitute.org/gatk/guide/" /> <#global guideIndex = "https://software.broadinstitute.org/gatk/documentation/" />
<#global forum = "http://gatkforums.broadinstitute.org/" /> <#global forum = "https://gatkforums.broadinstitute.org/gatk" />
<#macro footerInfo> <#macro footerInfo>
<hr> <hr>

View File

@ -1,9 +1,14 @@
<?php <?php
include '../../../common/include/common.php'; define('noTWITTER', TRUE);
include_once '../../config.php'; include '../../../../common/include/common.php';
include_once '../../../config.php';
$module = modules::GATK; $module = modules::GATK;
printHeader($module, "GATK | Tool Documentation Index", "Guide"); printHeader($module, "GATK | Tool Documentation Index", "Documentation");
$dirs = array_diff(scandir("../", SCANDIR_SORT_DESCENDING), array('..', '.'));
$curr_version = file_get_contents(engConst::versions_dir.versionFiles::gatk);
?> ?>
<div class='row-fluid'> <div class='row-fluid'>
@ -43,10 +48,28 @@
</div> </div>
</#macro> </#macro>
<h1 id="top">Tool Documentation Index <div class="row-fluid">
<small>${version}</small> <div class="span6">
</h1> <h1 id="top"><i class='<?php print ico::toolDocsIcon; ?>'></i> Tool Documentation Index </h1>
<div class="accordion" id="index"> </div>
<div class="span6">
<div class="btn-group pull-right">
<a class="btn btn-warning dropdown-toggle" data-toggle="dropdown" href="#">
Version ${version}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<?php foreach($dirs as $dir) {
print "<li><a tabindex='-1' href='../".$dir."'>".$dir."</a></li>";
} ?>
</ul>
</div>
</div>
</div>
<h1><small>Showing docs for version ${version} | The current version is <?php print $curr_version; ?></small></h1>
<hr />
<div class="accordion" id="index">
<#assign seq = ["engine", "tools", "other", "utilities"]> <#assign seq = ["engine", "tools", "other", "utilities"]>
<#list seq as supercat> <#list seq as supercat>
<br /> <br />

View File

@ -1,9 +1,13 @@
<?php <?php
include '../../../common/include/common.php'; define('noTWITTER', TRUE);
include_once '../../config.php'; include '../../../../common/include/common.php';
include_once '../../../config.php';
$module = modules::GATK; $module = modules::GATK;
printHeader($module, "GATK | Tool Documentation Index", "Guide"); printHeader($module, "GATK | Tool Documentation Index", "Documentation");
$curr_version = file_get_contents(engConst::versions_dir.versionFiles::gatk);
$dirs = array_diff(scandir("../", SCANDIR_SORT_DESCENDING), array('..', '.'));
?> ?>
<div class='row-fluid' id="top"> <div class='row-fluid' id="top">