jekyll-theme-zer0 0.8.1 → 0.10.0
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 +201 -4
- data/README.md +58 -25
- data/_data/README.md +4 -5
- data/_includes/README.md +1 -1
- data/_includes/stats/README.md +14 -2
- data/_layouts/README.md +3 -3
- data/_sass/core/_theme.scss +4 -1
- data/scripts/bin/build +115 -0
- data/scripts/bin/release +240 -0
- data/scripts/bin/test +203 -0
- data/scripts/features/generate-preview-images +846 -0
- data/scripts/features/install-preview-generator +531 -0
- data/scripts/features/preview_generator.py +646 -0
- data/scripts/generate-preview-images.sh +38 -93
- data/scripts/lib/README.md +35 -7
- data/scripts/test/integration/auto-version +243 -0
- data/scripts/test/integration/mermaid +252 -0
- data/scripts/test/lib/run_tests.sh +151 -0
- data/scripts/test/lib/test_changelog.sh +90 -0
- data/scripts/test/lib/test_gem.sh +71 -0
- data/scripts/test/lib/test_git.sh +85 -0
- data/scripts/test/lib/test_validation.sh +75 -0
- data/scripts/test/lib/test_version.sh +101 -0
- data/scripts/test/theme/validate +120 -0
- data/scripts/utils/analyze-commits +300 -0
- data/scripts/utils/fix-markdown +251 -0
- data/scripts/utils/setup +137 -0
- data/scripts/version.sh +26 -0
- metadata +20 -8
- data/scripts/build.sh +0 -33
- data/scripts/build.sh.legacy +0 -174
- data/scripts/gem-publish.sh +0 -42
- data/scripts/gem-publish.sh.legacy +0 -700
- data/scripts/release.sh +0 -33
- data/scripts/release.sh.legacy +0 -342
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: zer0-mistakes
|
|
3
3
|
sub-title: Jekyll Theme
|
|
4
4
|
description: Docker-optimized Jekyll theme with AI-powered installation automation and comprehensive error handling.
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 0.9.2
|
|
6
6
|
layout: landing
|
|
7
7
|
tags:
|
|
8
8
|
- jekyll
|
|
@@ -59,14 +59,14 @@ excerpt: "Professional Jekyll theme with automated installation, comprehensive e
|
|
|
59
59
|
|
|
60
60
|
### 📊 Proven Results
|
|
61
61
|
|
|
62
|
-
| Metric
|
|
63
|
-
|
|
64
|
-
| **Setup Success Rate**
|
|
65
|
-
| **Average Setup Time**
|
|
66
|
-
| **Cross-Platform Support** | Limited
|
|
67
|
-
| **Error Recovery**
|
|
68
|
-
| **Docker Compatibility**
|
|
69
|
-
| **Documentation Quality**
|
|
62
|
+
| Metric | Traditional Jekyll | zer0-mistakes | Improvement |
|
|
63
|
+
| -------------------------- | ---------------------- | --------------- | ----------- |
|
|
64
|
+
| **Setup Success Rate** | ~60% | ~95% | **+58%** |
|
|
65
|
+
| **Average Setup Time** | 15-30 min | 2-5 min | **-80%** |
|
|
66
|
+
| **Cross-Platform Support** | Limited | Universal | **+100%** |
|
|
67
|
+
| **Error Recovery** | Manual troubleshooting | Automatic fixes | **+100%** |
|
|
68
|
+
| **Docker Compatibility** | Manual setup | Built-in | **+100%** |
|
|
69
|
+
| **Documentation Quality** | Basic | Comprehensive | **+200%** |
|
|
70
70
|
|
|
71
71
|
---
|
|
72
72
|
|
|
@@ -75,11 +75,13 @@ excerpt: "Professional Jekyll theme with automated installation, comprehensive e
|
|
|
75
75
|
### 📋 System Requirements
|
|
76
76
|
|
|
77
77
|
**Required:**
|
|
78
|
+
|
|
78
79
|
- **Docker Desktop** - Universal cross-platform development environment
|
|
79
80
|
- **Git** - Version control
|
|
80
81
|
- **Bash 4.0+** - For release automation (macOS: `brew install bash`)
|
|
81
82
|
|
|
82
83
|
**Optional:**
|
|
84
|
+
|
|
83
85
|
- **GitHub CLI** - Enhanced GitHub integration
|
|
84
86
|
- **Ruby 3.0+** - For local (non-Docker) development
|
|
85
87
|
|
|
@@ -98,6 +100,7 @@ docker-compose up
|
|
|
98
100
|
```
|
|
99
101
|
|
|
100
102
|
**What this does automatically:**
|
|
103
|
+
|
|
101
104
|
- ✅ Detects your platform (Apple Silicon, Intel, Linux)
|
|
102
105
|
- ✅ Downloads and configures all theme files
|
|
103
106
|
- ✅ Sets up Docker development environment
|
|
@@ -110,6 +113,7 @@ docker-compose up
|
|
|
110
113
|
<summary>Click to expand manual installation methods</summary>
|
|
111
114
|
|
|
112
115
|
#### Method 1: GitHub Remote Theme
|
|
116
|
+
|
|
113
117
|
Perfect for GitHub Pages hosting:
|
|
114
118
|
|
|
115
119
|
```bash
|
|
@@ -121,6 +125,7 @@ gem "jekyll-remote-theme"
|
|
|
121
125
|
```
|
|
122
126
|
|
|
123
127
|
#### Method 2: Fork & Customize
|
|
128
|
+
|
|
124
129
|
For extensive theme development:
|
|
125
130
|
|
|
126
131
|
```bash
|
|
@@ -133,6 +138,7 @@ docker-compose up
|
|
|
133
138
|
```
|
|
134
139
|
|
|
135
140
|
#### Method 3: Local Installation
|
|
141
|
+
|
|
136
142
|
Install from local repository:
|
|
137
143
|
|
|
138
144
|
```bash
|
|
@@ -213,7 +219,7 @@ docker-compose up
|
|
|
213
219
|
|
|
214
220
|
> 📖 **Learn more**: [Automated Version System Documentation](AUTOMATED_VERSION_SYSTEM.md)
|
|
215
221
|
|
|
216
|
-
### 📊 **Mermaid Diagram Integration**
|
|
222
|
+
### 📊 **Mermaid Diagram Integration** _(New in v0.3.0)_
|
|
217
223
|
|
|
218
224
|
- **Complete Diagram Support** - Flowcharts, sequence diagrams, class diagrams, state diagrams, ER diagrams, Gantt charts, pie charts, git graphs, journey diagrams, and mindmaps
|
|
219
225
|
- **GitHub Pages Compatible** - Works seamlessly with both local development and GitHub Pages deployment
|
|
@@ -225,7 +231,7 @@ docker-compose up
|
|
|
225
231
|
|
|
226
232
|
> 📖 **Learn more**: [Mermaid Documentation](/docs/jekyll/mermaid/) • [Integration Tutorial](/docs/jekyll/jekyll-diagram-with-mermaid/) • [Test Suite](/docs/jekyll/mermaid-test-suite/)
|
|
227
233
|
|
|
228
|
-
### 🌱 **Comprehensive Seed Documentation System**
|
|
234
|
+
### 🌱 **Comprehensive Seed Documentation System** _(New in v0.6.0)_
|
|
229
235
|
|
|
230
236
|
- **Complete Rebuild Blueprint** - 17,500+ lines of documentation for full project reconstruction
|
|
231
237
|
- **AI Agent Optimized** - Structured for autonomous project building with 95%+ success rate
|
|
@@ -241,33 +247,37 @@ docker-compose up
|
|
|
241
247
|
Zer0-Mistakes features a **dual documentation structure** designed for different audiences and use cases:
|
|
242
248
|
|
|
243
249
|
### 🛠️ **Technical Documentation** → [`/docs/`](docs/)
|
|
250
|
+
|
|
244
251
|
**Repository-specific technical documentation** (MDX format) for developers and contributors:
|
|
245
252
|
|
|
246
|
-
| Directory
|
|
247
|
-
|
|
248
|
-
| [`/docs/systems/`](docs/systems/)
|
|
249
|
-
| [`/docs/features/`](docs/features/)
|
|
250
|
-
| [`/docs/configuration/`](docs/configuration/) | Development setup, Docker, environment configuration | Contributors
|
|
251
|
-
| [`/docs/releases/`](docs/releases/)
|
|
252
|
-
| [`/docs/jekyll/`](docs/jekyll/)
|
|
253
|
+
| Directory | Purpose | Target Audience |
|
|
254
|
+
| --------------------------------------------- | ---------------------------------------------------- | ------------------------ |
|
|
255
|
+
| [`/docs/systems/`](docs/systems/) | Infrastructure automation, CI/CD, build processes | DevOps & Contributors |
|
|
256
|
+
| [`/docs/features/`](docs/features/) | Theme feature implementation, component architecture | Developers & Maintainers |
|
|
257
|
+
| [`/docs/configuration/`](docs/configuration/) | Development setup, Docker, environment configuration | Contributors |
|
|
258
|
+
| [`/docs/releases/`](docs/releases/) | Version history, migration guides, technical changes | All Technical Users |
|
|
259
|
+
| [`/docs/jekyll/`](docs/jekyll/) | Jekyll optimization, plugins, advanced configuration | Jekyll Developers |
|
|
253
260
|
|
|
254
261
|
**Key characteristics:**
|
|
262
|
+
|
|
255
263
|
- **MDX format** with interactive components and rich code examples
|
|
256
264
|
- **Source code focused** with direct references to `_layouts/`, `_includes/`, `scripts/`
|
|
257
265
|
- **Architecture documentation** explaining how features are built and maintained
|
|
258
266
|
- **Developer workflows** including testing, deployment, and contribution guidelines
|
|
259
267
|
|
|
260
268
|
### 📖 **Public Documentation** → [`/pages/_docs/`](pages/_docs/)
|
|
269
|
+
|
|
261
270
|
**Published online documentation** (Markdown format) for end-users and general developers:
|
|
262
271
|
|
|
263
|
-
| Content Type
|
|
264
|
-
|
|
265
|
-
| **Technology Guides**
|
|
266
|
-
| **User Tutorials**
|
|
267
|
-
| **Reference Materials** | API docs, configuration options, troubleshooting
|
|
268
|
-
| **External Imports**
|
|
272
|
+
| Content Type | Purpose | Source |
|
|
273
|
+
| ----------------------- | --------------------------------------------------- | ----------------------------------- |
|
|
274
|
+
| **Technology Guides** | General Jekyll, Bootstrap, Ruby documentation | Imported & curated external docs |
|
|
275
|
+
| **User Tutorials** | How to use and customize the theme | Original content for users |
|
|
276
|
+
| **Reference Materials** | API docs, configuration options, troubleshooting | Converted from technical docs |
|
|
277
|
+
| **External Imports** | Official documentation from Jekyll, Bootstrap, etc. | Git submodules & processing scripts |
|
|
269
278
|
|
|
270
279
|
**Key characteristics:**
|
|
280
|
+
|
|
271
281
|
- **Markdown format** optimized for Jekyll rendering and online consumption
|
|
272
282
|
- **User-focused** content targeting theme adopters and general developers
|
|
273
283
|
- **Processed content** converted from MDX sources and external documentation
|
|
@@ -286,6 +296,7 @@ graph LR
|
|
|
286
296
|
```
|
|
287
297
|
|
|
288
298
|
**Documentation Workflow:**
|
|
299
|
+
|
|
289
300
|
1. **Technical implementation** documented in `/docs/` using MDX for rich content
|
|
290
301
|
2. **Processing pipeline** converts and sanitizes content for public consumption
|
|
291
302
|
3. **External documentation** imported from official sources and integrated
|
|
@@ -302,6 +313,7 @@ Before you begin, ensure you have:
|
|
|
302
313
|
- **Text Editor** - VS Code, Sublime Text, or your preferred editor
|
|
303
314
|
|
|
304
315
|
**Optional but helpful:**
|
|
316
|
+
|
|
305
317
|
- **GitHub CLI** - For easier repository management
|
|
306
318
|
- **Ruby 3.0+** - If you prefer local development over Docker
|
|
307
319
|
|
|
@@ -557,12 +569,14 @@ docker-compose down # Stop services
|
|
|
557
569
|
Our testing framework validates the entire installation and deployment process:
|
|
558
570
|
|
|
559
571
|
#### Quick Validation (30 seconds)
|
|
572
|
+
|
|
560
573
|
```bash
|
|
561
574
|
# Fast validation without Docker
|
|
562
575
|
./test/validate_installation.sh
|
|
563
576
|
```
|
|
564
577
|
|
|
565
578
|
#### Docker Deployment Test (2-3 minutes)
|
|
579
|
+
|
|
566
580
|
```bash
|
|
567
581
|
# Test Docker-specific functionality
|
|
568
582
|
./test/test_docker_deployment.sh --verbose
|
|
@@ -572,6 +586,7 @@ Our testing framework validates the entire installation and deployment process:
|
|
|
572
586
|
```
|
|
573
587
|
|
|
574
588
|
#### Complete Installation Test (3-5 minutes)
|
|
589
|
+
|
|
575
590
|
```bash
|
|
576
591
|
# Test all installation methods
|
|
577
592
|
./test/test_installation_complete.sh
|
|
@@ -581,6 +596,7 @@ Our testing framework validates the entire installation and deployment process:
|
|
|
581
596
|
```
|
|
582
597
|
|
|
583
598
|
#### End-to-End Deployment Test (5-10 minutes)
|
|
599
|
+
|
|
584
600
|
```bash
|
|
585
601
|
# Full deployment workflow validation
|
|
586
602
|
./test/test_deployment_complete.sh
|
|
@@ -592,6 +608,7 @@ Our testing framework validates the entire installation and deployment process:
|
|
|
592
608
|
### 🎯 Test Results Interpretation
|
|
593
609
|
|
|
594
610
|
**✅ Success Indicators:**
|
|
611
|
+
|
|
595
612
|
- HTTP 200 OK response from `http://localhost:4000`
|
|
596
613
|
- Jekyll logs show "Server running... press ctrl-c to stop"
|
|
597
614
|
- Site content includes zer0-mistakes theme elements
|
|
@@ -599,12 +616,14 @@ Our testing framework validates the entire installation and deployment process:
|
|
|
599
616
|
- Build time under 5 seconds
|
|
600
617
|
|
|
601
618
|
**⚠️ Common Issues:**
|
|
619
|
+
|
|
602
620
|
- **Port conflicts:** Use `docker-compose run -p 4001:4000 jekyll`
|
|
603
621
|
- **Volume mounting:** Use home directory instead of `/tmp`
|
|
604
622
|
- **Bundle install slow:** Normal for first run (60-90 seconds)
|
|
605
623
|
- **Repository errors:** Check `PAGES_REPO_NWO` environment variable
|
|
606
624
|
|
|
607
625
|
**❌ Failure Indicators:**
|
|
626
|
+
|
|
608
627
|
- Gemfile contains `gemspec` (should be site-configured)
|
|
609
628
|
- Docker container exits immediately
|
|
610
629
|
- `_config.yml` syntax errors
|
|
@@ -613,6 +632,7 @@ Our testing framework validates the entire installation and deployment process:
|
|
|
613
632
|
### 🎉 Validated Test Results
|
|
614
633
|
|
|
615
634
|
**Latest Test Results (September 21, 2025):**
|
|
635
|
+
|
|
616
636
|
```
|
|
617
637
|
✅ Docker Deployment Test: 5/5 tests PASSED (100% success rate)
|
|
618
638
|
✅ Installation Process: All files and directories created correctly
|
|
@@ -624,6 +644,7 @@ Our testing framework validates the entire installation and deployment process:
|
|
|
624
644
|
```
|
|
625
645
|
|
|
626
646
|
**Test Environment:**
|
|
647
|
+
|
|
627
648
|
- **OS:** macOS (Apple Silicon)
|
|
628
649
|
- **Docker:** Available and functional
|
|
629
650
|
- **Ruby:** 2.6.10 (system)
|
|
@@ -638,6 +659,7 @@ The theme installation and deployment process has been **thoroughly tested and v
|
|
|
638
659
|
### Quick Fixes
|
|
639
660
|
|
|
640
661
|
**🐳 Docker Issues:**
|
|
662
|
+
|
|
641
663
|
```bash
|
|
642
664
|
# Restart Docker Desktop
|
|
643
665
|
# Then rebuild containers
|
|
@@ -645,12 +667,14 @@ docker-compose down && docker-compose up --build
|
|
|
645
667
|
```
|
|
646
668
|
|
|
647
669
|
**⚡ Port Conflicts:**
|
|
670
|
+
|
|
648
671
|
```bash
|
|
649
672
|
# Use different port
|
|
650
673
|
docker-compose run -p 4001:4000 jekyll
|
|
651
674
|
```
|
|
652
675
|
|
|
653
676
|
**🍎 Apple Silicon Issues:**
|
|
677
|
+
|
|
654
678
|
```bash
|
|
655
679
|
# Force platform if needed
|
|
656
680
|
docker-compose up --build
|
|
@@ -756,6 +780,7 @@ scripts/release patch --skip-publish --no-github-release
|
|
|
756
780
|
```
|
|
757
781
|
|
|
758
782
|
**System Requirements:**
|
|
783
|
+
|
|
759
784
|
- Bash 4.0+ (install on macOS: `brew install bash`)
|
|
760
785
|
- Clean git working directory
|
|
761
786
|
- RubyGems credentials configured
|
|
@@ -765,6 +790,7 @@ For details, see [Release Workflow](CONTRIBUTING.md#-release-process) and [Phase
|
|
|
765
790
|
## � Documentation
|
|
766
791
|
|
|
767
792
|
### 📖 Comprehensive Documentation Center
|
|
793
|
+
|
|
768
794
|
All documentation is organized in the [`docs/`](docs/README.md) directory:
|
|
769
795
|
|
|
770
796
|
- **[📋 Documentation Overview](docs/README.md)** - Complete documentation center with organized structure
|
|
@@ -775,6 +801,7 @@ All documentation is organized in the [`docs/`](docs/README.md) directory:
|
|
|
775
801
|
- **[📝 Documentation Templates](docs/templates/README.md)** - Standardized templates for consistent documentation
|
|
776
802
|
|
|
777
803
|
### 🌱 Seed Documentation (AI & Developer Blueprints)
|
|
804
|
+
|
|
778
805
|
Comprehensive reconstruction documentation for AI agents and developers:
|
|
779
806
|
|
|
780
807
|
- **[Seed Documentation System](.github/seed/README.md)** - Master index and navigation guide (17,500+ lines total)
|
|
@@ -785,12 +812,14 @@ Comprehensive reconstruction documentation for AI agents and developers:
|
|
|
785
812
|
- **[Component Library](.github/seed/seed.components.md)** - Complete theme components (~4,000 lines)
|
|
786
813
|
|
|
787
814
|
### 📊 Recent Releases
|
|
815
|
+
|
|
788
816
|
- **[v0.6.0](CHANGELOG.md#060---2025-11-22)** - AI Integration & Privacy Compliance (Current)
|
|
789
817
|
- **[v0.5.0](docs/releases/v0.5.0-release-summary.md)** - Comprehensive Sitemap Integration
|
|
790
818
|
- **[v0.4.0](docs/releases/v0.4.0-release-summary.md)** - Statistics Dashboard
|
|
791
819
|
- **[v0.3.0](docs/releases/v0.3.0-release-notes.md)** - Mermaid Integration v2.0
|
|
792
820
|
|
|
793
821
|
### 🌟 Key Features
|
|
822
|
+
|
|
794
823
|
- **[Sitemap Integration](docs/features/sitemap-integration.md)** - Unified site navigation and content discovery
|
|
795
824
|
- **[Automated Version System](docs/systems/automated-version-system.md)** - Intelligent release automation
|
|
796
825
|
- **[CI/CD Pipeline](docs/systems/cicd-status-report.md)** - Comprehensive testing and deployment
|
|
@@ -810,26 +839,30 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
810
839
|
**RubyGems Downloads**: 2,500+
|
|
811
840
|
**Test Coverage**: 60% (Target: 90% by v0.8.0)
|
|
812
841
|
**Documentation**: 17,500+ lines of seed docs + comprehensive guides
|
|
813
|
-
**Lighthouse Score**: 95+
|
|
842
|
+
**Lighthouse Score**: 95+
|
|
814
843
|
|
|
815
844
|
## 🗺️ Roadmap
|
|
816
845
|
|
|
817
846
|
**v0.7.0** (Q2 2026) - Headless CMS Integration
|
|
847
|
+
|
|
818
848
|
- Content API (REST/GraphQL)
|
|
819
849
|
- Visual front matter editor
|
|
820
850
|
- Multi-author collaboration
|
|
821
851
|
|
|
822
852
|
**v0.8.0** (Q3 2026) - Advanced Analytics & UX
|
|
853
|
+
|
|
823
854
|
- A/B testing framework
|
|
824
855
|
- Conversion funnels
|
|
825
856
|
- Visual theme customizer
|
|
826
857
|
|
|
827
858
|
**v0.9.0** (Q4 2026) - Enhanced Developer Experience
|
|
859
|
+
|
|
828
860
|
- Multi-language support (i18n)
|
|
829
861
|
- Component library browser
|
|
830
862
|
- Interactive setup wizard
|
|
831
863
|
|
|
832
864
|
**v1.0.0** (Q1 2027) - Production Milestone
|
|
865
|
+
|
|
833
866
|
- 90%+ test coverage
|
|
834
867
|
- Enterprise support
|
|
835
868
|
- Stable API guarantee
|
data/_data/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
## Getting Started
|
|
3
2
|
|
|
4
3
|
These instructions will help you understand the data files in this directory.
|
|
@@ -17,7 +16,7 @@ Please read [CONTRIBUTING.md](url) for details on our code of conduct, and the p
|
|
|
17
16
|
|
|
18
17
|
## Authors
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
- **Your Name** - _Initial work_ - [YourGithub](url)
|
|
21
20
|
|
|
22
21
|
See also the list of [contributors](url) who participated in this project.
|
|
23
22
|
|
|
@@ -27,6 +26,6 @@ This project is licensed under the MIT License - see the [LICENSE.md](url) file
|
|
|
27
26
|
|
|
28
27
|
## Acknowledgments
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
- Hat tip to anyone whose code was used
|
|
30
|
+
- Inspiration
|
|
31
|
+
- etc
|
data/_includes/README.md
CHANGED
data/_includes/stats/README.md
CHANGED
|
@@ -35,7 +35,6 @@ description: "Comprehensive analytics and metrics"
|
|
|
35
35
|
layout: stats
|
|
36
36
|
permalink: /stats/
|
|
37
37
|
---
|
|
38
|
-
|
|
39
38
|
Your additional content here (optional).
|
|
40
39
|
```
|
|
41
40
|
|
|
@@ -57,30 +56,35 @@ tags:
|
|
|
57
56
|
### Components Overview
|
|
58
57
|
|
|
59
58
|
#### stats-header.html
|
|
59
|
+
|
|
60
60
|
- Displays page title and description
|
|
61
61
|
- Shows last update timestamp
|
|
62
62
|
- Provides navigation breadcrumbs
|
|
63
63
|
- Includes quick jump links to sections
|
|
64
64
|
|
|
65
65
|
#### stats-overview.html
|
|
66
|
+
|
|
66
67
|
- Four key metric cards (Posts, Categories, Tags, Data Status)
|
|
67
68
|
- Color-coded cards with Bootstrap styling
|
|
68
69
|
- Data freshness indicators
|
|
69
70
|
- Summary bar below cards
|
|
70
71
|
|
|
71
72
|
#### stats-categories.html
|
|
73
|
+
|
|
72
74
|
- Top categories list with post counts
|
|
73
75
|
- Activity level indicators
|
|
74
76
|
- Summary statistics footer
|
|
75
77
|
- Expandable interface for large datasets
|
|
76
78
|
|
|
77
79
|
#### stats-tags.html
|
|
80
|
+
|
|
78
81
|
- Top tags list with usage counts
|
|
79
82
|
- Interactive tag cloud visualization
|
|
80
83
|
- Dynamic font sizing based on usage
|
|
81
84
|
- Hover effects and tooltips
|
|
82
85
|
|
|
83
86
|
#### stats-metrics.html
|
|
87
|
+
|
|
84
88
|
- Content overview section
|
|
85
89
|
- Top performers analysis
|
|
86
90
|
- Data health indicators
|
|
@@ -88,6 +92,7 @@ tags:
|
|
|
88
92
|
- Help modal with instructions
|
|
89
93
|
|
|
90
94
|
#### stats-no-data.html
|
|
95
|
+
|
|
91
96
|
- Error state when data is missing
|
|
92
97
|
- Clear instructions for generating statistics
|
|
93
98
|
- Troubleshooting information
|
|
@@ -141,24 +146,28 @@ The layout expects data from `site.data.content_statistics`. You can:
|
|
|
141
146
|
## Features
|
|
142
147
|
|
|
143
148
|
### Responsive Design
|
|
149
|
+
|
|
144
150
|
- Mobile-first approach
|
|
145
151
|
- Responsive grid layouts
|
|
146
152
|
- Touch-friendly interactions
|
|
147
153
|
- Optimized for all screen sizes
|
|
148
154
|
|
|
149
155
|
### Accessibility
|
|
156
|
+
|
|
150
157
|
- ARIA labels and roles
|
|
151
158
|
- Keyboard navigation support
|
|
152
159
|
- Screen reader compatibility
|
|
153
160
|
- High contrast mode support
|
|
154
161
|
|
|
155
162
|
### Performance
|
|
163
|
+
|
|
156
164
|
- Lazy loading of non-critical elements
|
|
157
165
|
- Optimized CSS delivery
|
|
158
166
|
- Minimal JavaScript footprint
|
|
159
167
|
- Print-optimized styles
|
|
160
168
|
|
|
161
169
|
### Interactive Elements
|
|
170
|
+
|
|
162
171
|
- Hover effects on cards and tags
|
|
163
172
|
- Smooth animations and transitions
|
|
164
173
|
- Modal dialogs for additional information
|
|
@@ -167,6 +176,7 @@ The layout expects data from `site.data.content_statistics`. You can:
|
|
|
167
176
|
## Browser Support
|
|
168
177
|
|
|
169
178
|
The statistics layout supports all modern browsers:
|
|
179
|
+
|
|
170
180
|
- Chrome 90+
|
|
171
181
|
- Firefox 88+
|
|
172
182
|
- Safari 14+
|
|
@@ -240,12 +250,14 @@ permalink: /metrics/
|
|
|
240
250
|
Our analytics system tracks various metrics to help understand content performance and user engagement.
|
|
241
251
|
|
|
242
252
|
### Key Metrics
|
|
253
|
+
|
|
243
254
|
- Content reach and engagement
|
|
244
255
|
- Category performance trends
|
|
245
256
|
- Tag effectiveness analysis
|
|
246
257
|
- User interaction patterns
|
|
247
258
|
|
|
248
259
|
### Data Collection
|
|
260
|
+
|
|
249
261
|
Statistics are updated daily and include all published content from the past 12 months.
|
|
250
262
|
```
|
|
251
263
|
|
|
@@ -270,4 +282,4 @@ To contribute improvements to the statistics layout:
|
|
|
270
282
|
4. Test across multiple browsers
|
|
271
283
|
5. Ensure accessibility compliance
|
|
272
284
|
|
|
273
|
-
For more information, see the main theme documentation.
|
|
285
|
+
For more information, see the main theme documentation.
|
data/_layouts/README.md
CHANGED
|
@@ -150,7 +150,7 @@ Each layout file now includes:
|
|
|
150
150
|
```html
|
|
151
151
|
<!-- Explain complex logic or conditional statements -->
|
|
152
152
|
{% if condition %}
|
|
153
|
-
|
|
153
|
+
<!-- Why this condition exists and what it affects -->
|
|
154
154
|
{% endif %}
|
|
155
155
|
```
|
|
156
156
|
|
|
@@ -202,5 +202,5 @@ Each layout file now includes:
|
|
|
202
202
|
|
|
203
203
|
---
|
|
204
204
|
|
|
205
|
-
|
|
206
|
-
documented, and responsive Jekyll templates
|
|
205
|
+
_These layouts follow the Zer0-Mistakes theme standards for maintainable,
|
|
206
|
+
documented, and responsive Jekyll templates._
|
data/_sass/core/_theme.scss
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
// Import variables for standalone compilation
|
|
2
|
+
@import "variables";
|
|
3
|
+
|
|
1
4
|
// # Font Settings ---------------------------------------------------------------
|
|
2
5
|
|
|
3
6
|
// # Color Settings --------------------------------------------------------------
|
|
4
7
|
|
|
5
|
-
// ## Color Schema Override
|
|
8
|
+
// ## Color Schema Override
|
|
6
9
|
// https://meodai.github.io/poline/
|
|
7
10
|
|
|
8
11
|
// Harbour Mirror
|
data/scripts/bin/build
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Simplified build command for zer0-mistakes Jekyll theme
|
|
4
|
+
# Usage: ./scripts/build [options]
|
|
5
|
+
#
|
|
6
|
+
# Quick gem building without the full release workflow.
|
|
7
|
+
|
|
8
|
+
set -euo pipefail
|
|
9
|
+
|
|
10
|
+
# Get script and library directories
|
|
11
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
12
|
+
LIB_DIR="$SCRIPT_DIR/../lib"
|
|
13
|
+
|
|
14
|
+
# Source required libraries
|
|
15
|
+
source "$LIB_DIR/common.sh"
|
|
16
|
+
source "$LIB_DIR/validation.sh"
|
|
17
|
+
source "$LIB_DIR/version.sh"
|
|
18
|
+
source "$LIB_DIR/gem.sh"
|
|
19
|
+
|
|
20
|
+
# Parse arguments
|
|
21
|
+
while [[ $# -gt 0 ]]; do
|
|
22
|
+
case $1 in
|
|
23
|
+
--dry-run)
|
|
24
|
+
export DRY_RUN=true
|
|
25
|
+
shift
|
|
26
|
+
;;
|
|
27
|
+
--verbose)
|
|
28
|
+
export VERBOSE=true
|
|
29
|
+
shift
|
|
30
|
+
;;
|
|
31
|
+
--help|-h)
|
|
32
|
+
show_usage
|
|
33
|
+
exit 0
|
|
34
|
+
;;
|
|
35
|
+
*)
|
|
36
|
+
error "Unknown option: $1 (use --help for usage)"
|
|
37
|
+
;;
|
|
38
|
+
esac
|
|
39
|
+
done
|
|
40
|
+
|
|
41
|
+
# Show usage
|
|
42
|
+
show_usage() {
|
|
43
|
+
cat << EOF
|
|
44
|
+
🔨 Simplified Build Command for zer0-mistakes
|
|
45
|
+
|
|
46
|
+
USAGE:
|
|
47
|
+
./scripts/bin/build [OPTIONS]
|
|
48
|
+
|
|
49
|
+
DESCRIPTION:
|
|
50
|
+
Builds the Jekyll theme gem without running the full release workflow.
|
|
51
|
+
Useful for testing gem packaging or preparing for manual publication.
|
|
52
|
+
|
|
53
|
+
OPTIONS:
|
|
54
|
+
--dry-run Preview build without creating files
|
|
55
|
+
--verbose Show detailed debug output
|
|
56
|
+
--help, -h Show this help message
|
|
57
|
+
|
|
58
|
+
EXAMPLES:
|
|
59
|
+
./scripts/bin/build # Build gem with current version
|
|
60
|
+
./scripts/bin/build --dry-run # Preview what would be built
|
|
61
|
+
./scripts/build --verbose # Build with debug output
|
|
62
|
+
|
|
63
|
+
ENVIRONMENT VARIABLES:
|
|
64
|
+
DRY_RUN=true Enable dry run mode
|
|
65
|
+
VERBOSE=true Enable debug output
|
|
66
|
+
|
|
67
|
+
OUTPUT:
|
|
68
|
+
Creates: jekyll-theme-zer0-VERSION.gem in current directory
|
|
69
|
+
|
|
70
|
+
For full release workflow, use: ./scripts/release
|
|
71
|
+
EOF
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
# Main build workflow
|
|
75
|
+
main() {
|
|
76
|
+
print_header "🔨 Gem Build"
|
|
77
|
+
|
|
78
|
+
# Step 1: Basic validation (no RubyGems auth needed for build)
|
|
79
|
+
step "Validating environment..."
|
|
80
|
+
validate_git_repo
|
|
81
|
+
validate_required_files
|
|
82
|
+
validate_gemspec
|
|
83
|
+
success "Environment validated"
|
|
84
|
+
echo ""
|
|
85
|
+
|
|
86
|
+
# Step 2: Get current version
|
|
87
|
+
step "Reading version..."
|
|
88
|
+
local version
|
|
89
|
+
version=$(get_current_version)
|
|
90
|
+
info "Current version: $version"
|
|
91
|
+
info "Gem file: jekyll-theme-zer0-${version}.gem"
|
|
92
|
+
echo ""
|
|
93
|
+
|
|
94
|
+
# Step 3: Build gem
|
|
95
|
+
build_gem "$version"
|
|
96
|
+
echo ""
|
|
97
|
+
|
|
98
|
+
# Success summary
|
|
99
|
+
if [[ "$DRY_RUN" != "true" ]]; then
|
|
100
|
+
print_summary "Build Complete" \
|
|
101
|
+
"✅ Built: jekyll-theme-zer0-${version}.gem" \
|
|
102
|
+
"" \
|
|
103
|
+
"Next steps:" \
|
|
104
|
+
" • Test: gem install jekyll-theme-zer0-${version}.gem" \
|
|
105
|
+
" • Publish: gem push jekyll-theme-zer0-${version}.gem" \
|
|
106
|
+
" • Or use: ./scripts/release for full workflow"
|
|
107
|
+
else
|
|
108
|
+
info "Dry run complete - no files created"
|
|
109
|
+
fi
|
|
110
|
+
|
|
111
|
+
success "Build completed successfully!"
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
# Run main function
|
|
115
|
+
main "$@"
|