Skip to content

Commit

Permalink
Bumped just-the-docs from 0.5.3 -> 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
royalgraphx committed Aug 28, 2024
1 parent ab9d929 commit 4ea7554
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ source 'https://rubygems.org'
gem "jekyll", "~> 4.3.2" # installed by `gem jekyll`
# gem "webrick" # required when using Ruby >= 3 and Jekyll <= 4.2.2

gem "just-the-docs", "0.5.3" # pinned to the current release
gem "just-the-docs", "0.9.0" # pinned to the current release
# gem "just-the-docs" # always download the latest release
13 changes: 8 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ GEM
ffi (1.17.0-x86_64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
forwardable-extended (2.6.0)
google-protobuf (4.27.3-arm64-darwin)
google-protobuf (4.27.4-arm64-darwin)
bigdecimal
rake (>= 13)
google-protobuf (4.27.3-x86_64-darwin)
google-protobuf (4.27.4-x86_64-darwin)
bigdecimal
rake (>= 13)
google-protobuf (4.27.3-x86_64-linux)
google-protobuf (4.27.4-x86_64-linux)
bigdecimal
rake (>= 13)
http_parser.rb (0.8.0)
Expand All @@ -42,14 +42,17 @@ GEM
safe_yaml (~> 1.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-include-cache (0.2.1)
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (3.0.0)
sass-embedded (~> 1.54)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
just-the-docs (0.5.3)
just-the-docs (0.9.0)
jekyll (>= 3.8.5)
jekyll-include-cache
jekyll-seo-tag (>= 2.0)
rake (>= 12.3.1)
kramdown (2.4.0)
Expand Down Expand Up @@ -92,7 +95,7 @@ PLATFORMS

DEPENDENCIES
jekyll (~> 4.3.2)
just-the-docs (= 0.5.3)
just-the-docs (= 0.9.0)

BUNDLED WITH
2.4.19
75 changes: 75 additions & 0 deletions _includes/nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{%- comment -%}
Include as: {%- include components/nav.html pages=pages -%}
Depends on: include.pages.
Results in: HTML for the navigation panel.
Includes:
sorted_pages.html
Overwrites:
nav_pages, first_level_pages, second_level_pages, third_level_pages,
node, children_list, child, grand_children_list, grand_child.
{%- endcomment -%}

{%- assign nav_pages = include.pages
| where_exp: "item", "item.title != nil"
| where_exp: "item", "item.nav_exclude != true" -%}

{%- include sorted_pages.html pages = nav_pages -%}

{%- comment -%}
It might be more efficient to sort the pages at each level separately.
{%- endcomment -%}

{%- assign first_level_pages = sorted_pages
| where_exp: "item", "item.parent == nil" -%}
{%- assign second_level_pages = sorted_pages
| where_exp: "item", "item.parent != nil"
| where_exp: "item", "item.grand_parent == nil" -%}
{%- assign third_level_pages = sorted_pages
| where_exp: "item", "item.grand_parent != nil" -%}

<ul class="nav-list">
{%- for node in first_level_pages -%}
<li class="nav-list-item">
{%- if node.has_children -%}
<button class="nav-list-expander btn-reset" aria-label="toggle items in {{ node.title }} category" aria-pressed="false">
<svg viewBox="0 0 24 24" aria-hidden="true"><use xlink:href="#svg-arrow-right"></use></svg>
</button>
{%- endif -%}
<a href="{{ node.url | relative_url }}" class="nav-list-link">{{ node.title }}</a>
{%- if node.has_children -%}
{%- assign children_list = second_level_pages
| where: "parent", node.title -%}
{%- if node.child_nav_order == 'desc' or node.child_nav_order == 'reversed' -%}
{%- assign children_list = children_list | reverse -%}
{%- endif -%}
<ul class="nav-list">
{%- for child in children_list -%}
<li class="nav-list-item">
{%- if child.has_children -%}
<button class="nav-list-expander btn-reset" aria-label="toggle items in {{ child.title }} category" aria-pressed="false">
<svg viewBox="0 0 24 24" aria-hidden="true"><use xlink:href="#svg-arrow-right"></use></svg>
</button>
{%- endif -%}
<a href="{{ child.url | relative_url }}" class="nav-list-link">{{ child.title }}</a>
{%- if child.has_children -%}
{%- assign grand_children_list = third_level_pages
| where: "parent", child.title
| where: "grand_parent", node.title -%}
{%- if child.child_nav_order == 'desc' or child.child_nav_order == 'reversed' -%}
{%- assign grand_children_list = grand_children_list | reverse -%}
{%- endif -%}
<ul class="nav-list">
{%- for grand_child in grand_children_list -%}
<li class="nav-list-item">
<a href="{{ grand_child.url | relative_url }}" class="nav-list-link">{{ grand_child.title }}</a>
</li>
{%- endfor -%}
</ul>
{%- endif -%}
</li>
{%- endfor -%}
</ul>
{%- endif -%}
</li>
{%- endfor -%}
</ul>
14 changes: 10 additions & 4 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@
<body>
<a class="skip-to-main" href="#main-content">Skip to main content</a>
{% include icons/icons.html %}
{% include components/sidebar.html %}
{% if page.nav_enabled == true %}
{% include components/sidebar.html %}
{% elsif layout.nav_enabled == true and page.nav_enabled == nil %}
{% include components/sidebar.html %}
{% elsif site.nav_enabled != false and layout.nav_enabled == nil and page.nav_enabled == nil %}
{% include components/sidebar.html %}
{% endif %}
<div class="main" id="top">
{% include components/header.html %}
<div id="main-content-wrap" class="main-content-wrap">
<div class="main-content-wrap">
{% include components/breadcrumbs.html %}
<div id="main-content" class="main-content">
<main>
Expand All @@ -22,7 +28,7 @@
{{ content }}
{% endif %}

{% if page.has_children == true and page.has_toc != false %}
{% if page.has_toc != false %}
{% include components/children_nav.html %}
{% endif %}
</main>
Expand All @@ -38,4 +44,4 @@
{% include components/mermaid.html %}
{% endif %}
</body>
</html>
</html>
27 changes: 27 additions & 0 deletions docs/03-Changelog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,33 @@ All notable changes to this project will be documented in this file. The format

---

## Bumped just-the-docs from 0.5.3 -> 0.9.0
### Prerelease@CarnationsInternal
#### By RoyalGraphX

## [1.0.0~prerelease] - 2024-08-27

### Added
- ``_includes/nav.html`` has been included to satisfy build requirements

### Changed
- ``_layouts/default.html`` has been updated to reflect latest JTDs

### Fixed
-

### Deprecated
-

### Removed
-

### Security
- Carnations Core Configuration Docs framework ``just-the-docs`` has been bumped from 0.5.3 -> 0.9.0
- Switched to incremental builds to improve build times

---

## Repaired connections between Pages and Images.
### Prerelease@CarnationsInternal
#### By RoyalGraphX
Expand Down

0 comments on commit 4ea7554

Please sign in to comment.