github-pages 213 → 217

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d28d441936a4f46a382dd47f363a127dd1e50e94a8d69bfa77b188536e15448c
4
- data.tar.gz: 7a100bff2e77652df8600ccc3a721615097f0e51333b5d792a53395362e767a0
3
+ metadata.gz: 2fb7816fed236753c90e792e98ca4621bb2bd91ba699f66cf06f8ac8264506b6
4
+ data.tar.gz: 3f60d9ecdd42f7c715ca8c650b2cffa53b3daf3a3a933f8b04ea819c74566c3c
5
5
  SHA512:
6
- metadata.gz: 8b5b278f23f864230b45144a825f4188df9d70cf7bc318cac3d3f47cfc70a13f646bb197c1d89cc5149c0de0e185fe07aec71a88090864bd243aaf01a5728ec3
7
- data.tar.gz: b8e87b69bc67c4e62d6e6f630508fdecf0a3a41159b90281d1790f97adba7aa9363c3393c6b0bb2357627de5811517a6ae8bcef7f3d32efde51a5354dfbb5d14
6
+ metadata.gz: fc44e0725274e9606d36c3965b3c4ef3c03e82029c4fdf7199d103b8d652865fb9b742a4ec014135f7cd402a5beb28d143e7fb936ba387ee37e24cc69093e26a
7
+ data.tar.gz: 8a1d1b5c845dc3c78ed001f9e46ae3185d47c57c760176904666a163b634aa3ba09ecc7455822e66ddea6d689b28b66139c762678659c8c0e26d2e46ac68276a
@@ -107,6 +107,7 @@ module GitHubPages
107
107
  # Allow theme to be explicitly disabled via "theme: null"
108
108
  config["theme"] = user_config["theme"] if user_config.key?("theme")
109
109
 
110
+ migrate_theme_to_remote_theme(config)
110
111
  exclude_cname(config)
111
112
 
112
113
  # Merge overwrites into user config
@@ -156,6 +157,16 @@ module GitHubPages
156
157
  }
157
158
  end
158
159
 
160
+ # If the user has set a 'theme', then see if we can automatically use remote theme instead.
161
+ def migrate_theme_to_remote_theme(config)
162
+ return unless config["theme"]
163
+ return unless GitHubPages::Plugins::THEMES_TO_CONVERT_TO_REMOTE_THEMES.key?(config["theme"])
164
+
165
+ theme_name = config.delete("theme")
166
+ config["remote_theme"] ||= GitHubPages::Plugins::THEMES_TO_CONVERT_TO_REMOTE_THEMES[theme_name]
167
+ config["plugins"] = Array(config["plugins"]).concat(["jekyll-remote-theme"]).uniq
168
+ end
169
+
159
170
  # If the user's 'exclude' config is the default, also exclude the CNAME
160
171
  def exclude_cname(config)
161
172
  return unless config["exclude"].eql? Jekyll::Configuration::DEFAULTS["exclude"]
@@ -11,14 +11,14 @@ module GitHubPages
11
11
  "jekyll-sass-converter" => "1.5.2",
12
12
 
13
13
  # Converters
14
- "kramdown" => "2.3.0",
14
+ "kramdown" => "2.3.1",
15
15
  "kramdown-parser-gfm" => "1.1.0",
16
16
  "jekyll-commonmark-ghpages" => "0.1.6",
17
17
 
18
18
  # Misc
19
19
  "liquid" => "4.0.3",
20
20
  "rouge" => "3.26.0",
21
- "github-pages-health-check" => "1.17.0",
21
+ "github-pages-health-check" => "1.17.2",
22
22
 
23
23
  # Plugins
24
24
  "jekyll-redirect-from" => "0.16.0",
@@ -48,21 +48,25 @@ module GitHubPages
48
48
 
49
49
  # Themes
50
50
  THEMES = {
51
- "jekyll-swiss" => "1.0.0",
52
51
  "minima" => "2.5.1",
53
- "jekyll-theme-primer" => "0.5.4",
54
- "jekyll-theme-architect" => "0.1.1",
55
- "jekyll-theme-cayman" => "0.1.1",
56
- "jekyll-theme-dinky" => "0.1.1",
57
- "jekyll-theme-hacker" => "0.1.2",
58
- "jekyll-theme-leap-day" => "0.1.1",
59
- "jekyll-theme-merlot" => "0.1.1",
60
- "jekyll-theme-midnight" => "0.1.1",
61
- "jekyll-theme-minimal" => "0.1.1",
62
- "jekyll-theme-modernist" => "0.1.1",
63
- "jekyll-theme-slate" => "0.1.1",
64
- "jekyll-theme-tactile" => "0.1.1",
65
- "jekyll-theme-time-machine" => "0.1.1",
66
52
  }.freeze
53
+
54
+ # Themes to convert to remote themes
55
+ THEMES_TO_CONVERT_TO_REMOTE_THEMES = {
56
+ "jekyll-swiss" => "broccolini/swiss",
57
+ "jekyll-theme-primer" => "pages-themes/primer@v0.6.0",
58
+ "jekyll-theme-architect" => "pages-themes/architect@v0.2.0",
59
+ "jekyll-theme-cayman" => "pages-themes/cayman@v0.2.0",
60
+ "jekyll-theme-dinky" => "pages-themes/dinky@v0.2.0",
61
+ "jekyll-theme-hacker" => "pages-themes/hacker@v0.2.0",
62
+ "jekyll-theme-leap-day" => "pages-themes/leap-day@v0.2.0",
63
+ "jekyll-theme-merlot" => "pages-themes/merlot@v0.2.0",
64
+ "jekyll-theme-midnight" => "pages-themes/midnight@v0.2.0",
65
+ "jekyll-theme-minimal" => "pages-themes/minimal@v0.2.0",
66
+ "jekyll-theme-modernist" => "pages-themes/modernist@v0.2.0",
67
+ "jekyll-theme-slate" => "pages-themes/slate@v0.2.0",
68
+ "jekyll-theme-tactile" => "pages-themes/tactile@v0.2.0",
69
+ "jekyll-theme-time-machine" => "pages-themes/time-machine@v0.2.0",
70
+ }
67
71
  end
68
72
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitHubPages
4
- VERSION = 213
4
+ VERSION = 217
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-pages
3
3
  version: !ruby/object:Gem::Version
4
- version: '213'
4
+ version: '217'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-19 00:00:00.000000000 Z
11
+ date: 2021-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.3.0
47
+ version: 2.3.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.3.0
54
+ version: 2.3.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: kramdown-parser-gfm
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 1.17.0
117
+ version: 1.17.2
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 1.17.0
124
+ version: 1.17.2
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: jekyll-redirect-from
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -360,20 +360,6 @@ dependencies:
360
360
  - - '='
361
361
  - !ruby/object:Gem::Version
362
362
  version: 0.5.3
363
- - !ruby/object:Gem::Dependency
364
- name: jekyll-swiss
365
- requirement: !ruby/object:Gem::Requirement
366
- requirements:
367
- - - '='
368
- - !ruby/object:Gem::Version
369
- version: 1.0.0
370
- type: :runtime
371
- prerelease: false
372
- version_requirements: !ruby/object:Gem::Requirement
373
- requirements:
374
- - - '='
375
- - !ruby/object:Gem::Version
376
- version: 1.0.0
377
363
  - !ruby/object:Gem::Dependency
378
364
  name: minima
379
365
  requirement: !ruby/object:Gem::Requirement
@@ -388,188 +374,6 @@ dependencies:
388
374
  - - '='
389
375
  - !ruby/object:Gem::Version
390
376
  version: 2.5.1
391
- - !ruby/object:Gem::Dependency
392
- name: jekyll-theme-primer
393
- requirement: !ruby/object:Gem::Requirement
394
- requirements:
395
- - - '='
396
- - !ruby/object:Gem::Version
397
- version: 0.5.4
398
- type: :runtime
399
- prerelease: false
400
- version_requirements: !ruby/object:Gem::Requirement
401
- requirements:
402
- - - '='
403
- - !ruby/object:Gem::Version
404
- version: 0.5.4
405
- - !ruby/object:Gem::Dependency
406
- name: jekyll-theme-architect
407
- requirement: !ruby/object:Gem::Requirement
408
- requirements:
409
- - - '='
410
- - !ruby/object:Gem::Version
411
- version: 0.1.1
412
- type: :runtime
413
- prerelease: false
414
- version_requirements: !ruby/object:Gem::Requirement
415
- requirements:
416
- - - '='
417
- - !ruby/object:Gem::Version
418
- version: 0.1.1
419
- - !ruby/object:Gem::Dependency
420
- name: jekyll-theme-cayman
421
- requirement: !ruby/object:Gem::Requirement
422
- requirements:
423
- - - '='
424
- - !ruby/object:Gem::Version
425
- version: 0.1.1
426
- type: :runtime
427
- prerelease: false
428
- version_requirements: !ruby/object:Gem::Requirement
429
- requirements:
430
- - - '='
431
- - !ruby/object:Gem::Version
432
- version: 0.1.1
433
- - !ruby/object:Gem::Dependency
434
- name: jekyll-theme-dinky
435
- requirement: !ruby/object:Gem::Requirement
436
- requirements:
437
- - - '='
438
- - !ruby/object:Gem::Version
439
- version: 0.1.1
440
- type: :runtime
441
- prerelease: false
442
- version_requirements: !ruby/object:Gem::Requirement
443
- requirements:
444
- - - '='
445
- - !ruby/object:Gem::Version
446
- version: 0.1.1
447
- - !ruby/object:Gem::Dependency
448
- name: jekyll-theme-hacker
449
- requirement: !ruby/object:Gem::Requirement
450
- requirements:
451
- - - '='
452
- - !ruby/object:Gem::Version
453
- version: 0.1.2
454
- type: :runtime
455
- prerelease: false
456
- version_requirements: !ruby/object:Gem::Requirement
457
- requirements:
458
- - - '='
459
- - !ruby/object:Gem::Version
460
- version: 0.1.2
461
- - !ruby/object:Gem::Dependency
462
- name: jekyll-theme-leap-day
463
- requirement: !ruby/object:Gem::Requirement
464
- requirements:
465
- - - '='
466
- - !ruby/object:Gem::Version
467
- version: 0.1.1
468
- type: :runtime
469
- prerelease: false
470
- version_requirements: !ruby/object:Gem::Requirement
471
- requirements:
472
- - - '='
473
- - !ruby/object:Gem::Version
474
- version: 0.1.1
475
- - !ruby/object:Gem::Dependency
476
- name: jekyll-theme-merlot
477
- requirement: !ruby/object:Gem::Requirement
478
- requirements:
479
- - - '='
480
- - !ruby/object:Gem::Version
481
- version: 0.1.1
482
- type: :runtime
483
- prerelease: false
484
- version_requirements: !ruby/object:Gem::Requirement
485
- requirements:
486
- - - '='
487
- - !ruby/object:Gem::Version
488
- version: 0.1.1
489
- - !ruby/object:Gem::Dependency
490
- name: jekyll-theme-midnight
491
- requirement: !ruby/object:Gem::Requirement
492
- requirements:
493
- - - '='
494
- - !ruby/object:Gem::Version
495
- version: 0.1.1
496
- type: :runtime
497
- prerelease: false
498
- version_requirements: !ruby/object:Gem::Requirement
499
- requirements:
500
- - - '='
501
- - !ruby/object:Gem::Version
502
- version: 0.1.1
503
- - !ruby/object:Gem::Dependency
504
- name: jekyll-theme-minimal
505
- requirement: !ruby/object:Gem::Requirement
506
- requirements:
507
- - - '='
508
- - !ruby/object:Gem::Version
509
- version: 0.1.1
510
- type: :runtime
511
- prerelease: false
512
- version_requirements: !ruby/object:Gem::Requirement
513
- requirements:
514
- - - '='
515
- - !ruby/object:Gem::Version
516
- version: 0.1.1
517
- - !ruby/object:Gem::Dependency
518
- name: jekyll-theme-modernist
519
- requirement: !ruby/object:Gem::Requirement
520
- requirements:
521
- - - '='
522
- - !ruby/object:Gem::Version
523
- version: 0.1.1
524
- type: :runtime
525
- prerelease: false
526
- version_requirements: !ruby/object:Gem::Requirement
527
- requirements:
528
- - - '='
529
- - !ruby/object:Gem::Version
530
- version: 0.1.1
531
- - !ruby/object:Gem::Dependency
532
- name: jekyll-theme-slate
533
- requirement: !ruby/object:Gem::Requirement
534
- requirements:
535
- - - '='
536
- - !ruby/object:Gem::Version
537
- version: 0.1.1
538
- type: :runtime
539
- prerelease: false
540
- version_requirements: !ruby/object:Gem::Requirement
541
- requirements:
542
- - - '='
543
- - !ruby/object:Gem::Version
544
- version: 0.1.1
545
- - !ruby/object:Gem::Dependency
546
- name: jekyll-theme-tactile
547
- requirement: !ruby/object:Gem::Requirement
548
- requirements:
549
- - - '='
550
- - !ruby/object:Gem::Version
551
- version: 0.1.1
552
- type: :runtime
553
- prerelease: false
554
- version_requirements: !ruby/object:Gem::Requirement
555
- requirements:
556
- - - '='
557
- - !ruby/object:Gem::Version
558
- version: 0.1.1
559
- - !ruby/object:Gem::Dependency
560
- name: jekyll-theme-time-machine
561
- requirement: !ruby/object:Gem::Requirement
562
- requirements:
563
- - - '='
564
- - !ruby/object:Gem::Version
565
- version: 0.1.1
566
- type: :runtime
567
- prerelease: false
568
- version_requirements: !ruby/object:Gem::Requirement
569
- requirements:
570
- - - '='
571
- - !ruby/object:Gem::Version
572
- version: 0.1.1
573
377
  - !ruby/object:Gem::Dependency
574
378
  name: mercenary
575
379
  requirement: !ruby/object:Gem::Requirement
@@ -707,7 +511,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
707
511
  - !ruby/object:Gem::Version
708
512
  version: '0'
709
513
  requirements: []
710
- rubygems_version: 3.1.2
514
+ rubygems_version: 3.1.6
711
515
  signing_key:
712
516
  specification_version: 4
713
517
  summary: Track GitHub Pages dependencies.