Skip to content

Commit

Permalink
Update documentation with logo and improved navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
phillybroadbent committed Dec 5, 2024
1 parent d11b8ac commit df8e7b1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
6 changes: 4 additions & 2 deletions docs/_includes/header.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<h4><a class="navbar-brand" href="{{ site.baseurl }}/">{{ site.title }}</a>
{% if site.subtitle %}<small>{{ site.subtitle }}</small>{% endif %}
<h4 class="d-flex align-items-center">
<img src="img/logo.png" class="img-fluid me-2" alt="Software sustainability institute logo" style="height: 1.5em;">
<a class="navbar-brand" href="{{ site.baseurl }}/">{{ site.title }}</a>
{% if site.subtitle %}<small class="d-block m-4">{{ site.subtitle }}</small>{% endif %}
</h4>
18 changes: 9 additions & 9 deletions docs/_includes/navigation.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<ul class="nav nav-list">
<li>
<a href="{{ site.baseurl }}/">Home</a>
</li>
<li>
Project Status<br><a href="https://travis-ci.org/softwaresaved/lowfat"><img alt="Build Status" src="https://travis-ci.org/softwaresaved/lowfat.svg?branch=master"></a>
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" href="{{ site.baseurl }}/">Home</a>
</li>
<!-- <li class="nav-item">
Project Status<br><a href="https://travis-ci.org/softwaresaved/lowfat"><img alt="Build Status" src="https://travis-ci.org/softwaresaved/lowfat.svg?branch=main"></a>
</li> -->
{% for section in site.sections %}
{% assign attr = section[0] %}
{% assign label = section[1] %}

{% for page in site.categories[attr] %}
{% if forloop.first %}
<li class="nav-header">{{ label }}</li>
<li class="nav-item"><b>{{ label }}</b></li>
{% endif %}
<li data-order="{{ page.order }}">
<a href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a>
<li class="nav-item" data-order="{{ page.order }}">
<a class="nav-link" href="{{ site.baseurl }}{{ page.url }}">{{ page.title }}</a>
</li>
{% endfor %}
{% endfor %}
Expand Down
Binary file modified docs/img/favicon.ico
Binary file not shown.
Binary file added docs/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df8e7b1

Please sign in to comment.