Skip to content

Commit 16d49ce

Browse files
authored
Merge pull request #14 from codex-semantics-library/upd-just-the-docs
Upd just the docs
2 parents b45f264 + 806a525 commit 16d49ce

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ GEM
3939
logger
4040
faraday-net_http (3.1.1)
4141
net-http
42-
ffi (1.17.0-x86_64-linux-gnu)
42+
ffi (1.17.0-x86_64-linux)
4343
forwardable-extended (2.6.0)
4444
gemoji (4.1.0)
4545
github-pages (232)

_includes/components/site_nav.html

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
{%- comment -%}
2-
Most of this is the taken directly from just-the-docs on github.
3-
I just changed the nav structure a bit, to include the table of contents.
4-
5-
Include as: {%- include_cached components/site_nav.html -%}
2+
Include as: {%- include_cached components/site_nav.html all=bool -%}
63
Depends on: site.
7-
Results in: HTML for the site-nav.
4+
Results in: cached HTML for the main navigation when `all` is nil or false;
5+
includes links to pages excluded from the main navigation when `all` is true.
86
Includes:
9-
components/nav.html
7+
components/nav/pages.html
108
Overwrites:
119
pages_top_size, collections_size, collection_entry,
1210
collection_key, collection_value, collection.
1311
{%- endcomment -%}
1412

15-
<nav>
13+
<nav aria-label="Main" id="site-nav" class="site-nav">
1614
{% assign pages_top_size = site.html_pages
1715
| where_exp:"item", "item.title != nil"
1816
| where_exp:"item", "item.parent == nil"
1917
| where_exp:"item", "item.nav_exclude != true"
2018
| size %}
2119
{% if pages_top_size > 0 %}
22-
{% include components/nav.html pages=site.html_pages %}
20+
{% include components/nav/pages.html pages=site.html_pages all=include.all %}
2321
{% endif %}
2422
{%- if site.nav_external_links -%}
2523
<ul class="nav-list">
@@ -54,17 +52,21 @@
5452
</button>
5553
{%- endif -%}
5654
<div class="nav-category">{{ collection_value.name }}</div>
57-
{% include components/nav.html pages=collection %}
55+
{% include components/nav/pages.html pages=collection all=include.all %}
5856
</li>
5957
</ul>
6058
{% else %}
6159
<div class="nav-category">{{ collection_value.name }}</div>
62-
{% include components/nav.html pages=collection %}
60+
{% include components/nav/pages.html pages=collection all=include.all %}
6361
{% endif %}
6462
{% else %}
65-
{% include components/nav.html pages=collection %}
63+
{% include components/nav/pages.html pages=collection all=include.all %}
6664
{% endif %}
6765
{% endif %}
6866
{% endfor %}
6967
{% endif %}
70-
</nav>
68+
</nav>
69+
70+
{% if site.nav_error_report %}
71+
{{ nav_error_report }}
72+
{%- endif %}

0 commit comments

Comments
 (0)