Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Critical items to know are:
- changed behaviour

## [master](https://github.com/vsoch/docsy-jekyll/tree/master)
- hiding sidebar links to reflect parent functionality (0.0.17)
- adding breadcrumb link to documentation root (0.0.16)
- bug with link in top breadcrumb (404) missing baseurl (0.0.15)
- bug that news items (posts) don't render in search (0.0.14)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.16
0.0.17
5 changes: 4 additions & 1 deletion _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
</form>
<nav class="collapse td-sidebar-nav pt-2 pl-4" id="td-section-nav">
{% for section in site.data.toc %}<ul class="td-sidebar-nav__section pr-md-3">
{% capture sectionUrl %}{{ section.url | replace: "/", "" }}{% endcapture %}
{% capture pageUrl %}{{ page.url | replace: "/", "" }}{% endcapture %}
<li class="td-sidebar-nav__section-title">
<a href="{% if section.url %}{{ site.baseurl }}/{{ section.url }}{% else %}{{ section.external_url }}{% endif %}" class="align-left pl-0 pr-2 active td-sidebar-link td-sidebar-link__section">{{ section.title }}</a>
</li>{% if section.links %}<ul>
Expand All @@ -14,9 +16,10 @@
<li class="td-sidebar-nav__section-title">
<a href="{% if entry.url %}{{ site.baseurl }}/{{ entry.url }}{% else %}{{ entry.external_url }}{% endif %}" class="align-left pl-0 pr-2 td-sidebar-link td-sidebar-link__section">{{ entry.title }}</a>
</li>
{% if page.url contains entry.url or pageUrl == sectionUrl %}
<ul><li class="collapse show" id="{{ child.title | slugify }}">{% if entry.children %}
{% for child in entry.children %}<a class="td-sidebar-link td-sidebar-link__page " id="m-{{ section.title | slugify }}-{{ entry.title | slugify }}-{{ child.title | slugify }}" href="{% if child.url %}{{ site.baseurl }}/{{ child.url }}{% else %}{{ child.external_url }}{% endif %}">{{ child.title }}</a>{% endfor %}
{% endif %}</li></ul>{% endfor %}
{% endif %}</li></ul>{% endif %}{% endfor %}
</ul>{% endif %}{% endfor %}
</nav>
</div>