jekyll-theme-zer0 0.8.1 → 0.10.3

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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +308 -4
  3. data/README.md +58 -25
  4. data/_data/README.md +4 -5
  5. data/_includes/README.md +1 -1
  6. data/_includes/components/mermaid.html +98 -9
  7. data/_includes/content/intro.html +13 -1
  8. data/_includes/core/header.html +1 -1
  9. data/_includes/stats/README.md +14 -2
  10. data/_layouts/README.md +3 -3
  11. data/_layouts/category.html +16 -6
  12. data/_layouts/collection.html +8 -3
  13. data/_layouts/journals.html +8 -3
  14. data/_sass/core/_theme.scss +4 -1
  15. data/_sass/custom.scss +20 -12
  16. data/assets/images/previews/10-ai-tools-that-will-transform-your-productivity-.png +0 -0
  17. data/assets/images/previews/business.png +0 -0
  18. data/assets/images/previews/css-grid-mastery-build-any-layout-you-can-imagine.png +0 -0
  19. data/assets/images/previews/development.png +0 -0
  20. data/assets/images/previews/github-setup-deployment.png +0 -0
  21. data/assets/images/previews/jekyll-setup.png +0 -0
  22. data/assets/images/previews/machine-setup.png +0 -0
  23. data/assets/images/previews/published-documentation-library.png +0 -0
  24. data/assets/images/previews/quantum-computing-explained-from-qubits-to-quantum.png +0 -0
  25. data/assets/images/previews/science.png +0 -0
  26. data/assets/images/previews/technology.png +0 -0
  27. data/assets/images/previews/the-complete-guide-to-startup-funding-in-2025.png +0 -0
  28. data/assets/images/previews/the-remote-work-revolution-how-global-teams-are-re.png +0 -0
  29. data/assets/images/previews/tutorial.png +0 -0
  30. data/assets/images/previews/world-news.png +0 -0
  31. data/assets/images/previews/zer0-mistakes-news-network-building-dynamic-news-s.png +0 -0
  32. data/assets/images/previews/zer0-mistakes-quick-start-guide.png +0 -0
  33. data/assets/js/auto-hide-nav.js +79 -16
  34. data/scripts/bin/build +115 -0
  35. data/scripts/bin/release +240 -0
  36. data/scripts/bin/test +203 -0
  37. data/scripts/features/generate-preview-images +846 -0
  38. data/scripts/features/install-preview-generator +531 -0
  39. data/scripts/features/preview_generator.py +646 -0
  40. data/scripts/generate-preview-images.sh +38 -93
  41. data/scripts/lib/README.md +35 -7
  42. data/scripts/lib/preview_generator.py +37 -22
  43. data/scripts/test/integration/auto-version +243 -0
  44. data/scripts/test/integration/mermaid +252 -0
  45. data/scripts/test/lib/run_tests.sh +151 -0
  46. data/scripts/test/lib/test_changelog.sh +90 -0
  47. data/scripts/test/lib/test_gem.sh +71 -0
  48. data/scripts/test/lib/test_git.sh +85 -0
  49. data/scripts/test/lib/test_validation.sh +75 -0
  50. data/scripts/test/lib/test_version.sh +101 -0
  51. data/scripts/test/theme/validate +120 -0
  52. data/scripts/test-mermaid.sh +51 -11
  53. data/scripts/utils/analyze-commits +300 -0
  54. data/scripts/utils/fix-markdown +251 -0
  55. data/scripts/utils/setup +137 -0
  56. data/scripts/version.sh +26 -0
  57. metadata +37 -8
  58. data/scripts/build.sh +0 -33
  59. data/scripts/build.sh.legacy +0 -174
  60. data/scripts/gem-publish.sh +0 -42
  61. data/scripts/gem-publish.sh.legacy +0 -700
  62. data/scripts/release.sh +0 -33
  63. data/scripts/release.sh.legacy +0 -342
data/scripts/version.sh CHANGED
@@ -1,10 +1,36 @@
1
1
  #!/bin/bash
2
2
 
3
+ # ============================================================================
4
+ # DEPRECATED: This script is deprecated and will be removed in a future release.
5
+ #
6
+ # Please use the modular release system instead:
7
+ # - For version management: source scripts/lib/version.sh
8
+ # - For full release workflow: scripts/bin/release [patch|minor|major]
9
+ #
10
+ # The new system provides:
11
+ # - Better error handling and dry-run support
12
+ # - Automatic changelog generation from commits
13
+ # - Modular library architecture
14
+ # - Comprehensive testing
15
+ #
16
+ # This script will continue to work but is no longer maintained.
17
+ # ============================================================================
18
+
3
19
  # Version management script for zer0-mistakes Jekyll theme
4
20
  # Usage: ./scripts/version.sh [patch|minor|major] [--dry-run]
5
21
 
6
22
  set -e
7
23
 
24
+ # Show deprecation warning
25
+ echo ""
26
+ echo "⚠️ DEPRECATION WARNING: scripts/version.sh is deprecated."
27
+ echo " Please use 'scripts/bin/release' instead for the full release workflow."
28
+ echo " Or source 'scripts/lib/version.sh' for version management functions."
29
+ echo ""
30
+ echo " Continuing in 3 seconds... (Press Ctrl+C to abort)"
31
+ sleep 3
32
+ echo ""
33
+
8
34
  # Colors for output
9
35
  RED='\033[0;31m'
10
36
  GREEN='\033[0;32m'
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.8.1
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amr Abdel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-27 00:00:00.000000000 Z
11
+ date: 2025-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -161,7 +161,24 @@ files:
161
161
  - assets/images/gravatar-small.png
162
162
  - assets/images/gravatar.png
163
163
  - assets/images/info-banner-mountain-wizard.png
164
+ - assets/images/previews/10-ai-tools-that-will-transform-your-productivity-.png
165
+ - assets/images/previews/business.png
166
+ - assets/images/previews/css-grid-mastery-build-any-layout-you-can-imagine.png
167
+ - assets/images/previews/development.png
164
168
  - assets/images/previews/git-workflow-best-practices-for-modern-teams.png
169
+ - assets/images/previews/github-setup-deployment.png
170
+ - assets/images/previews/jekyll-setup.png
171
+ - assets/images/previews/machine-setup.png
172
+ - assets/images/previews/published-documentation-library.png
173
+ - assets/images/previews/quantum-computing-explained-from-qubits-to-quantum.png
174
+ - assets/images/previews/science.png
175
+ - assets/images/previews/technology.png
176
+ - assets/images/previews/the-complete-guide-to-startup-funding-in-2025.png
177
+ - assets/images/previews/the-remote-work-revolution-how-global-teams-are-re.png
178
+ - assets/images/previews/tutorial.png
179
+ - assets/images/previews/world-news.png
180
+ - assets/images/previews/zer0-mistakes-news-network-building-dynamic-news-s.png
181
+ - assets/images/previews/zer0-mistakes-quick-start-guide.png
165
182
  - assets/images/wizard-on-journey.png
166
183
  - assets/images/zer0-checkpoint-1.png
167
184
  - assets/images/zer0-checkpoint-2.png
@@ -181,13 +198,15 @@ files:
181
198
  - assets/particles.json
182
199
  - scripts/README.md
183
200
  - scripts/analyze-commits.sh
201
+ - scripts/bin/build
202
+ - scripts/bin/release
203
+ - scripts/bin/test
184
204
  - scripts/build
185
- - scripts/build.sh
186
- - scripts/build.sh.legacy
187
205
  - scripts/example-usage.sh
206
+ - scripts/features/generate-preview-images
207
+ - scripts/features/install-preview-generator
208
+ - scripts/features/preview_generator.py
188
209
  - scripts/fix-markdown-format.sh
189
- - scripts/gem-publish.sh
190
- - scripts/gem-publish.sh.legacy
191
210
  - scripts/generate-preview-images.sh
192
211
  - scripts/install-preview-generator.sh
193
212
  - scripts/lib/README.md
@@ -205,12 +224,22 @@ files:
205
224
  - scripts/lib/validation.sh
206
225
  - scripts/lib/version.sh
207
226
  - scripts/release
208
- - scripts/release.sh
209
- - scripts/release.sh.legacy
210
227
  - scripts/setup.sh
211
228
  - scripts/test-auto-version.sh
212
229
  - scripts/test-mermaid.sh
213
230
  - scripts/test.sh
231
+ - scripts/test/integration/auto-version
232
+ - scripts/test/integration/mermaid
233
+ - scripts/test/lib/run_tests.sh
234
+ - scripts/test/lib/test_changelog.sh
235
+ - scripts/test/lib/test_gem.sh
236
+ - scripts/test/lib/test_git.sh
237
+ - scripts/test/lib/test_validation.sh
238
+ - scripts/test/lib/test_version.sh
239
+ - scripts/test/theme/validate
240
+ - scripts/utils/analyze-commits
241
+ - scripts/utils/fix-markdown
242
+ - scripts/utils/setup
214
243
  - scripts/version.sh
215
244
  homepage: https://github.com/bamr87/zer0-mistakes
216
245
  licenses:
data/scripts/build.sh DELETED
@@ -1,33 +0,0 @@
1
- #!/bin/bash
2
-
3
- # DEPRECATED: This script is deprecated and will be removed in v0.8.0
4
- # Please use the new simplified build command instead.
5
-
6
- set -e
7
-
8
- # Colors
9
- YELLOW='\033[1;33m'
10
- CYAN='\033[0;36m'
11
- NC='\033[0m'
12
-
13
- echo -e "${YELLOW}╔════════════════════════════════════════════════════════════╗${NC}"
14
- echo -e "${YELLOW}║ ⚠️ DEPRECATION WARNING ║${NC}"
15
- echo -e "${YELLOW}╚════════════════════════════════════════════════════════════╝${NC}"
16
- echo ""
17
- echo -e "${YELLOW}This script (build.sh) is deprecated and will be removed in v0.8.0${NC}"
18
- echo ""
19
- echo -e "Please use the new simplified command instead:"
20
- echo -e " ${CYAN}./scripts/build${NC} [options]"
21
- echo ""
22
- echo -e "The new command is:"
23
- echo -e " ✅ Simpler and more focused"
24
- echo -e " ✅ Uses modular libraries"
25
- echo -e " ✅ Better error handling"
26
- echo -e " ✅ Fully tested"
27
- echo ""
28
- echo -e "${YELLOW}Redirecting to new command in 3 seconds...${NC}"
29
- sleep 3
30
- echo ""
31
-
32
- # Redirect to new command
33
- exec "$(dirname "$0")/build" "$@"
@@ -1,174 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Build and publish script for zer0-mistakes Jekyll theme
4
- # Usage: ./scripts/build.sh [--publish] [--dry-run]
5
-
6
- set -e
7
-
8
- # Colors for output
9
- RED='\033[0;31m'
10
- GREEN='\033[0;32m'
11
- YELLOW='\033[1;33m'
12
- BLUE='\033[0;34m'
13
- NC='\033[0m' # No Color
14
-
15
- # Default values
16
- PUBLISH=false
17
- DRY_RUN=false
18
-
19
- # Parse arguments
20
- while [[ $# -gt 0 ]]; do
21
- case $1 in
22
- --publish)
23
- PUBLISH=true
24
- shift
25
- ;;
26
- --dry-run)
27
- DRY_RUN=true
28
- shift
29
- ;;
30
- *)
31
- echo -e "${RED}Unknown option: $1${NC}"
32
- exit 1
33
- ;;
34
- esac
35
- done
36
-
37
- # Function to log messages
38
- log() {
39
- echo -e "${GREEN}[BUILD]${NC} $1"
40
- }
41
-
42
- warn() {
43
- echo -e "${YELLOW}[WARNING]${NC} $1"
44
- }
45
-
46
- error() {
47
- echo -e "${RED}[ERROR]${NC} $1"
48
- exit 1
49
- }
50
-
51
- info() {
52
- echo -e "${BLUE}[INFO]${NC} $1"
53
- }
54
-
55
- # Check if gemspec exists
56
- if [[ ! -f "jekyll-theme-zer0.gemspec" ]]; then
57
- error "jekyll-theme-zer0.gemspec not found"
58
- fi
59
-
60
- # Check if package.json exists
61
- if [[ ! -f "package.json" ]]; then
62
- error "package.json not found"
63
- fi
64
-
65
- # Get version from package.json
66
- VERSION=$(jq -r '.version' package.json)
67
- if [[ "$VERSION" == "null" ]]; then
68
- error "Could not read version from package.json"
69
- fi
70
-
71
- log "Building jekyll-theme-zer0 version $VERSION"
72
-
73
- # Create build directory
74
- log "Creating build directory..."
75
- mkdir -p build
76
-
77
- # Clean up old gem files
78
- log "Cleaning up old gem files..."
79
- rm -f jekyll-theme-zer0-*.gem
80
- rm -f build/jekyll-theme-zer0-*.gem
81
-
82
- # Validate dependencies
83
- log "Checking dependencies..."
84
- if ! command -v bundle &> /dev/null; then
85
- error "Bundler is not installed. Run 'gem install bundler' first."
86
- fi
87
-
88
- if ! command -v jq &> /dev/null; then
89
- error "jq is not installed. Run 'brew install jq' (macOS) or appropriate package manager."
90
- fi
91
-
92
- # Run bundle install to ensure dependencies are up to date
93
- log "Installing/updating dependencies..."
94
- if [[ "$DRY_RUN" != true ]]; then
95
- bundle install
96
- fi
97
-
98
- # Validate gemspec
99
- log "Validating gemspec..."
100
- if [[ "$DRY_RUN" != true ]]; then
101
- ruby -c jekyll-theme-zer0.gemspec > /dev/null
102
- info "✓ Gemspec is valid"
103
- fi
104
-
105
- # Build the gem
106
- log "Building gem..."
107
- if [[ "$DRY_RUN" == true ]]; then
108
- log "Dry run mode - would build jekyll-theme-zer0-${VERSION}.gem"
109
- else
110
- if gem build jekyll-theme-zer0.gemspec; then
111
- # Move gem to build directory
112
- mv jekyll-theme-zer0-${VERSION}.gem build/
113
- info "✓ Successfully built jekyll-theme-zer0-${VERSION}.gem"
114
- else
115
- error "Failed to build gem"
116
- fi
117
- fi
118
-
119
- # List gem contents for verification
120
- if [[ "$DRY_RUN" != true ]] && [[ -f "build/jekyll-theme-zer0-${VERSION}.gem" ]]; then
121
- log "Gem contents:"
122
- # Use tar to list contents since gem contents only works for installed gems
123
- tar -tzf build/jekyll-theme-zer0-${VERSION}.gem | head -20
124
- echo "..."
125
- echo "Total files: $(tar -tzf build/jekyll-theme-zer0-${VERSION}.gem | wc -l)"
126
- fi
127
-
128
- # Check if we should publish
129
- if [[ "$PUBLISH" == true ]]; then
130
- if [[ "$DRY_RUN" == true ]]; then
131
- log "Dry run mode - would publish jekyll-theme-zer0-${VERSION}.gem to RubyGems"
132
- else
133
- log "Publishing gem to RubyGems..."
134
-
135
- # Check if user is authenticated with RubyGems
136
- if [[ ! -f ~/.gem/credentials ]]; then
137
- error "Not authenticated with RubyGems. Run 'gem signin' first."
138
- fi
139
-
140
- # Check if this version already exists on RubyGems
141
- if gem list --remote jekyll-theme-zer0 | grep -q "jekyll-theme-zer0 (${VERSION})"; then
142
- warn "Version ${VERSION} already exists on RubyGems"
143
- echo -e "${YELLOW}You need to bump the version first. Use ./scripts/version.sh --bump [--major|--minor|--patch]${NC}"
144
- error "Cannot republish existing version ${VERSION}"
145
- fi
146
-
147
- # Confirm publication
148
- echo -e "${YELLOW}Are you sure you want to publish jekyll-theme-zer0-${VERSION}.gem to RubyGems? (y/N)${NC}"
149
- read -r response
150
- if [[ "$response" =~ ^[Yy]$ ]]; then
151
- if gem push build/jekyll-theme-zer0-${VERSION}.gem; then
152
- info "✓ Successfully published jekyll-theme-zer0-${VERSION}.gem"
153
- log "Gem is now available at: https://rubygems.org/gems/jekyll-theme-zer0"
154
- else
155
- error "Failed to publish gem"
156
- fi
157
- else
158
- log "Publication cancelled"
159
- fi
160
- fi
161
- else
162
- log "Build complete! Gem file: jekyll-theme-zer0-${VERSION}.gem"
163
- log "To publish, run: ./scripts/build.sh --publish"
164
- fi
165
-
166
- # Cleanup option
167
- if [[ "$PUBLISH" == true ]] && [[ "$DRY_RUN" != true ]]; then
168
- echo -e "${YELLOW}Remove local gem file? (y/N)${NC}"
169
- read -r response
170
- if [[ "$response" =~ ^[Yy]$ ]]; then
171
- rm -f build/jekyll-theme-zer0-${VERSION}.gem
172
- log "Local gem file removed"
173
- fi
174
- fi
@@ -1,42 +0,0 @@
1
- #!/bin/bash
2
-
3
- # DEPRECATED: This script is deprecated and will be removed in v0.8.0
4
- # Please use the new simplified release command instead.
5
-
6
- set -e
7
-
8
- # Colors
9
- YELLOW='\033[1;33m'
10
- CYAN='\033[0;36m'
11
- NC='\033[0m'
12
-
13
- echo -e "${YELLOW}╔════════════════════════════════════════════════════════════╗${NC}"
14
- echo -e "${YELLOW}║ ⚠️ DEPRECATION WARNING ║${NC}"
15
- echo -e "${YELLOW}╚════════════════════════════════════════════════════════════╝${NC}"
16
- echo ""
17
- echo -e "${YELLOW}This script (gem-publish.sh) is deprecated and will be removed in v0.8.0${NC}"
18
- echo ""
19
- echo -e "Please use the new simplified command instead:"
20
- echo -e " ${CYAN}./scripts/release${NC} [patch|minor|major] [options]"
21
- echo ""
22
- echo -e "Benefits of the new command:"
23
- echo -e " ✅ Cleaner, more maintainable code"
24
- echo -e " ✅ Modular library-based architecture"
25
- echo -e " ✅ Comprehensive test coverage"
26
- echo -e " ✅ Better error handling"
27
- echo -e " ✅ Easier to understand and modify"
28
- echo ""
29
- echo -e "Example migration:"
30
- echo -e " ${YELLOW}OLD:${NC} ./scripts/gem-publish.sh patch --dry-run"
31
- echo -e " ${CYAN}NEW:${NC} ./scripts/release patch --dry-run"
32
- echo ""
33
- echo -e "For more information, see:"
34
- echo -e " • scripts/lib/README.md"
35
- echo -e " • docs/RELEASE_WORKFLOW_IMPROVEMENTS.md"
36
- echo ""
37
- echo -e "${YELLOW}Redirecting to new command in 3 seconds...${NC}"
38
- sleep 3
39
- echo ""
40
-
41
- # Redirect to new command
42
- exec "$(dirname "$0")/release" "$@"