jekyll-theme-zer0 0.22.19 → 0.22.21
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 +4 -4
- data/CHANGELOG.md +26 -2
- data/README.md +35 -21
- data/_data/README.md +1 -0
- data/_data/roadmap.yml +215 -0
- data/_includes/components/cookie-consent.html +35 -100
- data/_includes/components/nanobar.html +117 -0
- data/_includes/core/footer.html +9 -11
- data/_includes/core/head.html +4 -25
- data/_includes/core/header.html +16 -10
- data/_includes/navigation/navbar.html +2 -1
- data/_layouts/landing.html +14 -8
- data/_sass/core/_navbar.scss +6 -0
- data/_sass/custom.scss +59 -4
- data/assets/js/nanobar-init.js +63 -0
- data/scripts/generate-roadmap.rb +200 -0
- data/scripts/generate-roadmap.sh +21 -0
- data/scripts/lint-pages +19 -16
- metadata +7 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# =============================================================================
|
|
3
|
+
# generate-roadmap.sh
|
|
4
|
+
# =============================================================================
|
|
5
|
+
#
|
|
6
|
+
# Thin wrapper around scripts/generate-roadmap.rb.
|
|
7
|
+
#
|
|
8
|
+
# Reads `_data/roadmap.yml` and rewrites the auto-generated roadmap regions
|
|
9
|
+
# of README.md (Mermaid gantt diagram + summary table) in place.
|
|
10
|
+
#
|
|
11
|
+
# Usage:
|
|
12
|
+
# ./scripts/generate-roadmap.sh # update README.md
|
|
13
|
+
# ./scripts/generate-roadmap.sh --check # CI-friendly drift detection
|
|
14
|
+
# ./scripts/generate-roadmap.sh --stdout # print regenerated sections only
|
|
15
|
+
#
|
|
16
|
+
# =============================================================================
|
|
17
|
+
|
|
18
|
+
set -euo pipefail
|
|
19
|
+
|
|
20
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
21
|
+
exec ruby "${SCRIPT_DIR}/generate-roadmap.rb" "$@"
|
data/scripts/lint-pages
CHANGED
|
@@ -383,24 +383,27 @@ scan_collection() {
|
|
|
383
383
|
|
|
384
384
|
info "Scanning collection: $collection ($pattern)"
|
|
385
385
|
|
|
386
|
-
# Use find to match the glob pattern
|
|
387
|
-
local search_dir="$REPO_ROOT"
|
|
388
386
|
local files_found=0
|
|
389
387
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
388
|
+
# Derive the base directory by stripping everything from the first glob
|
|
389
|
+
# character onward. e.g. "pages/_notes/**/*.md" → "pages/_notes"
|
|
390
|
+
# (${pattern%%\**} strips the longest suffix starting with *)
|
|
391
|
+
local prefix="${pattern%%\**}"
|
|
392
|
+
local dir_part="${prefix%/}" # strip trailing slash
|
|
393
|
+
|
|
394
|
+
# For flat patterns like "pages/*.md" limit to the single directory level
|
|
395
|
+
# so we don't accidentally recurse into sub-collections.
|
|
396
|
+
local find_depth_flag=""
|
|
397
|
+
if [[ "$pattern" != *"**"* ]]; then
|
|
398
|
+
find_depth_flag="-maxdepth 1"
|
|
399
|
+
fi
|
|
400
|
+
|
|
401
|
+
if [[ -d "$REPO_ROOT/$dir_part" ]]; then
|
|
402
|
+
while IFS= read -r -d '' filepath; do
|
|
403
|
+
validate_file "$filepath" "$collection"
|
|
404
|
+
files_found=$((files_found + 1))
|
|
405
|
+
# shellcheck disable=SC2086
|
|
406
|
+
done < <(find "$REPO_ROOT/$dir_part" $find_depth_flag -name "*.md" -print0 2>/dev/null)
|
|
404
407
|
fi
|
|
405
408
|
|
|
406
409
|
debug " Found $files_found files in $collection"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-zer0
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.22.
|
|
4
|
+
version: 0.22.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amr Abdel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -96,6 +96,7 @@ files:
|
|
|
96
96
|
- _data/posts_organization.yml
|
|
97
97
|
- _data/prerequisites.yml
|
|
98
98
|
- _data/prompts.yml
|
|
99
|
+
- _data/roadmap.yml
|
|
99
100
|
- _data/statistics_config.yml
|
|
100
101
|
- _data/theme_backgrounds.yml
|
|
101
102
|
- _data/ui-text.yml
|
|
@@ -125,6 +126,7 @@ files:
|
|
|
125
126
|
- _includes/components/info-section.html
|
|
126
127
|
- _includes/components/js-cdn.html
|
|
127
128
|
- _includes/components/mermaid.html
|
|
129
|
+
- _includes/components/nanobar.html
|
|
128
130
|
- _includes/components/nav-editor.html
|
|
129
131
|
- _includes/components/post-card.html
|
|
130
132
|
- _includes/components/post-type-badge.html
|
|
@@ -291,6 +293,7 @@ files:
|
|
|
291
293
|
- assets/js/modules/navigation/sidebar-state.js
|
|
292
294
|
- assets/js/modules/navigation/smooth-scroll.js
|
|
293
295
|
- assets/js/myScript.js
|
|
296
|
+
- assets/js/nanobar-init.js
|
|
294
297
|
- assets/js/nanobar.min.js
|
|
295
298
|
- assets/js/nav-editor.js
|
|
296
299
|
- assets/js/navigation.js
|
|
@@ -364,6 +367,8 @@ files:
|
|
|
364
367
|
- scripts/fix-markdown-format.sh
|
|
365
368
|
- scripts/fork-cleanup.sh
|
|
366
369
|
- scripts/generate-preview-images.sh
|
|
370
|
+
- scripts/generate-roadmap.rb
|
|
371
|
+
- scripts/generate-roadmap.sh
|
|
367
372
|
- scripts/github-setup.sh
|
|
368
373
|
- scripts/init_setup.sh
|
|
369
374
|
- scripts/install-preview-generator.sh
|