jekyll-awesome-nav 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 033420eec75b6786d092924ce18408a536c7ec67c9987924506538186a4cc561
4
- data.tar.gz: f7bcf2906a41f300ed37c921c45f18b2fc764edcec95c9b69c1d3efeb4aa8386
3
+ metadata.gz: e774b814992c440448bfbbd49e3ac507c6e854d6c855cef20f1c8315bbfdcf2e
4
+ data.tar.gz: dea01e1a09990359b88048bd4ac16df166c3889803920467c8bca09d0b7e224c
5
5
  SHA512:
6
- metadata.gz: 58e508a035a0993b79f9511c10d1d7104df50c04c7d5a4ec6304e9f51a8677f93d05bb1aafaec98238ad0a2e5b46dd594722518fbc435a011b58855870658c75
7
- data.tar.gz: d9ab55d7518df3cb520ef0c566d2a78b27eb269d4e744988895d7c0d1710f0e3c9c672b768cb1c78c80262dc8d06572cf3a79caf2806d993a76eebdd4e78c500
6
+ metadata.gz: f1314cc3258497190ca58305f91227d79595eb1b051cfcfab6d6406d943017ca936417817dad3919219f0730d8ac91f13e8b78908121eb779cf76146426fccc5
7
+ data.tar.gz: 0a005443a0997e10642cf718970efc1b1b30f0b4148261d96de45acc2287e9d927b18ea147f7139f3c91a6c139683377cdc6a7d0c72e8e40ac5693584701a108
@@ -1,11 +1,12 @@
1
1
  # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
- _commit: 97c7f4b
2
+ _commit: v0.7.0-3-g7e5e928
3
3
  _src_path: gh:athackst/ci
4
- automerge_mode: poll
5
- bump_script_path: ''
4
+ automerge_mode: native
6
5
  do_releases: true
7
6
  release_template: '## What''s changed
8
7
 
9
8
 
10
- $CHANGES '
9
+ $CHANGES
10
+
11
+ '
11
12
  site_generator: none
@@ -5,7 +5,7 @@
5
5
  // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
6
  "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
7
7
  "features": {
8
- "ghcr.io/devcontainers/features/ruby:1": {
8
+ "ghcr.io/devcontainers/features/ruby:2": {
9
9
  "version": "3.3.4"
10
10
  }
11
11
  },
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Jekyll
4
4
  module AwesomeNav
5
- VERSION = "0.2.0"
5
+ VERSION = "0.2.1"
6
6
 
7
7
  def self.warn_if_unstamped_version(output = $stderr)
8
8
  return unless VERSION == "0.0.0"
data/site/_config.yml CHANGED
@@ -1,4 +1,4 @@
1
- theme: jekyll-theme-profile
1
+ theme: jekyll-theme-primerpages
2
2
  title: Jekyll Awesome Nav
3
3
  description: Folder-based navigation for Jekyll with automatic generation and local subtree overrides.
4
4
  repository: PrimerPages/jekyll-awesome-nav
@@ -399,7 +399,11 @@ layout: default
399
399
  <ol>
400
400
  {% for item in page.breadcrumbs %}
401
401
  <li>
402
- <a href="{{ item.url | relative_url }}">{{ item.title }}</a>
402
+ {% if item.url %}
403
+ <a href="{{ item.url | relative_url }}">{{ item.title }}</a>
404
+ {% else %}
405
+ <span>{{ item.title }}</span>
406
+ {% endif %}
403
407
  </li>
404
408
  {% endfor %}
405
409
  </ol>
@@ -0,0 +1,7 @@
1
+ nav:
2
+ - Getting Started: getting-started.md
3
+ - guides
4
+ - Examples:
5
+ - Examples Home: examples/index.md
6
+ - Basic Folder Navigation: examples/basic-folder-navigation.md
7
+ - Local Override: examples/local-override.md
@@ -0,0 +1,26 @@
1
+ ---
2
+ title: Basic Folder Navigation
3
+ ---
4
+
5
+ Use plain folders and pages when you want navigation to come directly from the docs tree.
6
+
7
+ ```text
8
+ docs/
9
+ ├── index.md
10
+ ├── getting-started.md
11
+ └── guides/
12
+ ├── index.md
13
+ ├── install.md
14
+ └── config.md
15
+ ```
16
+
17
+ With no `.nav.yml` files, the plugin turns that structure into sections and pages automatically.
18
+
19
+ ```yaml
20
+ awesome_nav:
21
+ enabled: true
22
+ root: docs
23
+ nav_filename: .nav.yml
24
+ ```
25
+
26
+ This is a good default when the filesystem already reflects the order and grouping you want.
@@ -0,0 +1,10 @@
1
+ ---
2
+ title: Examples
3
+ ---
4
+
5
+ These examples show common ways to use `jekyll-awesome-nav` in a docs folder.
6
+
7
+ ## Examples
8
+
9
+ - [Basic Folder Navigation]({{ "/docs/examples/basic-folder-navigation/" | relative_url }}) shows navigation generated from folders and pages.
10
+ - [Local Override]({{ "/docs/examples/local-override/" | relative_url }}) shows a folder-level `.nav.yml` file with curated labels and order.
@@ -0,0 +1,25 @@
1
+ ---
2
+ title: Local Override Example
3
+ ---
4
+
5
+ Add a `.nav.yml` file when one folder needs a curated order or friendlier labels.
6
+
7
+ ```text
8
+ docs/
9
+ └── guides/
10
+ ├── .nav.yml
11
+ ├── index.md
12
+ ├── install.md
13
+ └── config.md
14
+ ```
15
+
16
+ Example override:
17
+
18
+ ```yaml
19
+ nav:
20
+ - Guides Home: index.md
21
+ - Install Guide: install.md
22
+ - Configuration: config.md
23
+ ```
24
+
25
+ That file replaces the generated navigation for `docs/guides/` only. The rest of the docs tree still uses normal folder-based generation.
@@ -31,7 +31,7 @@ children: []
31
31
 
32
32
  Layouts should treat `children` as optional because leaf pages do not need nested items.
33
33
 
34
- Breadcrumb items stay lightweight and only expose:
34
+ Breadcrumb items stay lightweight. Linked entries include `url`; grouping entries may only include `title`:
35
35
 
36
36
  ```yaml
37
37
  title: Install Guide
@@ -37,7 +37,13 @@ The plugin writes breadcrumbs to `page.breadcrumbs`.
37
37
  <nav aria-label="Breadcrumbs">
38
38
  <ol>
39
39
  {% for item in page.breadcrumbs %}
40
- <li><a href="{{ item.url | relative_url }}">{{ item.title }}</a></li>
40
+ <li>
41
+ {% if item.url %}
42
+ <a href="{{ item.url | relative_url }}">{{ item.title }}</a>
43
+ {% else %}
44
+ <span>{{ item.title }}</span>
45
+ {% endif %}
46
+ </li>
41
47
  {% endfor %}
42
48
  </ol>
43
49
  </nav>
data/site/docs/index.md CHANGED
@@ -9,6 +9,7 @@ The plugin does not require collections. It reads pages under the configured `aw
9
9
  ## Start here
10
10
 
11
11
  - [Getting Started]({{ "/docs/getting-started/" | relative_url }}) shows the minimum install and config.
12
+ - [Examples]({{ "/docs/examples/" | relative_url }}) shows a few concrete folder and `.nav.yml` setups.
12
13
  - [Layout Integration]({{ "/docs/guides/layouts/" | relative_url }}) shows how to render sidebars, breadcrumbs, and previous/next links.
13
14
  - [Configuration]({{ "/docs/guides/config/" | relative_url }}) explains the available plugin settings.
14
15
  - [.nav.yml Reference]({{ "/docs/guides/nav-file/" | relative_url }}) documents override syntax, options, and common patterns.
@@ -22,6 +23,10 @@ This documentation site uses a plain `docs/` folder:
22
23
  ```text
23
24
  docs/
24
25
  ├── index.md
26
+ ├── examples/
27
+ │ ├── index.md
28
+ │ ├── basic-folder-navigation.md
29
+ │ └── local-override.md
25
30
  ├── getting-started.md
26
31
  └── guides/
27
32
  ├── index.md
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-awesome-nav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allison Thackston
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-21 00:00:00.000000000 Z
11
+ date: 2026-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -69,6 +69,10 @@ files:
69
69
  - site/_config.yml
70
70
  - site/_includes/awesome-nav-tree.html
71
71
  - site/_layouts/awesome_nav_demo.html
72
+ - site/docs/.nav.yml
73
+ - site/docs/examples/basic-folder-navigation.md
74
+ - site/docs/examples/index.md
75
+ - site/docs/examples/local-override.md
72
76
  - site/docs/getting-started.md
73
77
  - site/docs/guides/.nav.yml
74
78
  - site/docs/guides/config.md