Skip to content

Commit

Permalink
Add template for Doxygen sidebae
Browse files Browse the repository at this point in the history
  • Loading branch information
duongdo27 committed Jan 24, 2018
1 parent 7f156e8 commit 1e18f78
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 63 deletions.
67 changes: 12 additions & 55 deletions _includes/sidebar.html
@@ -1,56 +1,13 @@
{% include custom/sidebarconfigs.html %}

<ul id="mysidebar" class="nav">
<li class="sidebarTitle">{{sidebar[0].product}} {{sidebar[0].version}}</li>
{% for entry in sidebar %}
{% for folder in entry.folders %}
{% if folder.output contains "web" %}
<li>
<a href="#">{{ folder.title }}</a>
<ul>
{% for folderitem in folder.folderitems %}
{% if folderitem.output contains "web" %}
{% if folderitem.external_url %}
<li><a href="{{folderitem.external_url}}" target="_blank">{{folderitem.title}}</a></li>
{% elsif page.url == folderitem.url %}
<li class="active"><a href="{{folderitem.url | remove: "/"}}">{{folderitem.title}}</a></li>
{% else %}
<li><a href="{{folderitem.url | remove: "/"}}">{{folderitem.title}}</a></li>
{% endif %}
{% for subfolders in folderitem.subfolders %}
{% if subfolders.output contains "web" %}
<li class="subfolders">
<a href="#">{{ subfolders.title }}</a>
<ul>
{% for subfolderitem in subfolders.subfolderitems %}
{% if subfolderitem.output contains "web" %}
{% if subfolderitem.external_url %}
<li><a href="{{subfolderitem.external_url}}" target="_blank">{{subfolderitem.title}}</a></li>
{% elsif page.url == subfolderitem.url %}
<li class="active"><a href="{{subfolderitem.url | remove: "/"}}">{{subfolderitem.title}}</a></li>
{% else %}
<li><a href="{{subfolderitem.url | remove: "/"}}">{{subfolderitem.title}}</a></li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
</li>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% endfor %}
<!-- if you aren't using the accordion, uncomment this block:
<p class="external">
<a href="#" id="collapseAll">Collapse All</a> | <a href="#" id="expandAll">Expand All</a>
</p>
-->
</li>
</ul>
<div id="sidebar-contact">
<h3>Contact</h3>
{{ page.title }} Contact: {{ page.contact }} <br>
<a href="contact.html">Trilinos Contact</a>
</div>
<div id="sidebar-documentation">
<h3>Documentation</h3>
{% if page.doxygen %}
<a href={{ "https://trilinos.org/docs/dev/packages/" | append: page.package | append: "/doc/html/index.html" }}>{{ Amesos }} Dev Doxygen</a><br>
<a href="https://trilinos.org/docs/r12.12/packages/amesos/doc/html/index.html">{{ page.title }} Release 12.12 Doxygen</a><br>
{% endif %}
<a href="documentation.html">Trilinos Documentation</a>
</div>

<!-- this highlights the active parent class in the navgoco sidebar. this is critical so that the parent expands when you're viewing a page. This must appear below the sidebar code above. Otherwise, if placed inside customscripts.js, the script runs before the sidebar code runs and the class never gets inserted.-->
<script>$("li.active").parents('li').toggleClass("active");</script>
22 changes: 14 additions & 8 deletions _layouts/default.html
Expand Up @@ -60,18 +60,24 @@
<div class="col-lg-12">&nbsp;</div>
<!-- Content Row -->
<div class="row">
<!-- Sidebar Column -->
<div class="col-md-1">
{% if page.show_sidebar %}
<div class="col-md-9">
{{content}}
</div>

<div class="col-md-3">
{% include sidebar.html %}
<!-- Content Column -->
<div class="col-md-11">
{{content}}
</div>
</div>

{% else %}
<div class="col-md-12">
{{content}}
</div>
{% endif %}
<!-- /.row -->
</div>
<!-- /.container -->
</div>
<!-- /.container -->
</div>

</body>
{% if site.google_analytics %}
Expand Down
12 changes: 12 additions & 0 deletions css/customstyles.css
Expand Up @@ -1200,4 +1200,16 @@ h4.panel-title {
width: 50%;
}

#sidebar-contact{
padding: 10px;
margin-top: 220px;
background-color: whitesmoke;
}

#sidebar-documentation{
padding: 10px;
margin-top: 100px;
background-color: whitesmoke;
}


0 comments on commit 1e18f78

Please sign in to comment.