github-pages 212 → 216

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: 2858d4e4a5820702c60e849542933c8808f2ec8ba1ea5b35bda3d5bdadc13eac
4
- data.tar.gz: 87ce7072efde372a42a87babeab68b9c0285aad6371fc253e33e4d80327b282f
3
+ metadata.gz: 33c32cb8c1a7230c5ebe969a924255c927920feb595e239ff2c925ddfab7b62a
4
+ data.tar.gz: 12703aa440be953579bf71449ffdfcc99ac5385055a6f91c46d80c3e82a1d177
5
5
  SHA512:
6
- metadata.gz: b412a9d830778e97d5c206c960dd2780dc9a7ea4aa54f94334efd3367f3c4cdc86925440ec2d31d210be16d812faec6b6d80d1f3a8b5f3a9981be35fc6aff82e
7
- data.tar.gz: 4f27b8075b6b546701fa12e83a8825ad9e71abbba53f7f870c9cb7a58cbf123d31547064fe1917f6a4d45da102c6d34fa1d89dc6fd30b8edc314f0c10ace5c88
6
+ metadata.gz: 29dd85ba7d3f90df2538ef6fe01901b26c5baabe6b174d7861038926ecaed298e43f9f34ff5eb903dbc7c3da3efc142951f61c891407f0fcfe37a32fe8e9f906
7
+ data.tar.gz: 87217b0e5fd1fcebf8e4b93265e5d9089c521d4fb198741a963c4309f57c4488a432f2f356873a4f244bb5dcc84c6fcb2f3949dc7a37f8b258032a8f9a39a06f
@@ -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",
@@ -30,7 +30,7 @@ module GitHubPages
30
30
  "jekyll-seo-tag" => "2.7.1",
31
31
  "jekyll-github-metadata" => "2.13.0",
32
32
  "jekyll-avatar" => "0.7.0",
33
- "jekyll-remote-theme" => "0.4.2",
33
+ "jekyll-remote-theme" => "0.4.3",
34
34
 
35
35
  # Plugins to match GitHub.com Markdown
36
36
  "jemoji" => "0.12.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.5.4",
58
+ "jekyll-theme-architect" => "pages-themes/architect@v0.1.1",
59
+ "jekyll-theme-cayman" => "pages-themes/cayman@v0.1.1",
60
+ "jekyll-theme-dinky" => "pages-themes/dinky@v0.1.1",
61
+ "jekyll-theme-hacker" => "pages-themes/hacker@v0.1.1",
62
+ "jekyll-theme-leap-day" => "pages-themes/leap-day@v0.1.1",
63
+ "jekyll-theme-merlot" => "pages-themes/merlot@v0.1.1",
64
+ "jekyll-theme-midnight" => "pages-themes/midnight@v0.1.1",
65
+ "jekyll-theme-minimal" => "pages-themes/minimal@v0.1.1",
66
+ "jekyll-theme-modernist" => "pages-themes/modernist@v0.1.1",
67
+ "jekyll-theme-slate" => "pages-themes/slate@v0.1.1",
68
+ "jekyll-theme-tactile" => "pages-themes/tactile@v0.1.1",
69
+ "jekyll-theme-time-machine" => "pages-themes/time-machine@v0.1.1",
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 = 212
4
+ VERSION = 216
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: '212'
4
+ version: '216'
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-02-17 00:00:00.000000000 Z
11
+ date: 2021-07-22 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
@@ -254,14 +254,14 @@ dependencies:
254
254
  requirements:
255
255
  - - '='
256
256
  - !ruby/object:Gem::Version
257
- version: 0.4.2
257
+ version: 0.4.3
258
258
  type: :runtime
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
262
  - - '='
263
263
  - !ruby/object:Gem::Version
264
- version: 0.4.2
264
+ version: 0.4.3
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: jemoji
267
267
  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.