github-pages 215 → 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: 9032f6656a1d4086f4b2b82819493d377a43e25a7d654f30d44f5b7397c29d44
4
- data.tar.gz: 69d52115409b6702b1dcdb6d8d1587c7ca1b79c29e69648df7beb02a919a317f
3
+ metadata.gz: 33c32cb8c1a7230c5ebe969a924255c927920feb595e239ff2c925ddfab7b62a
4
+ data.tar.gz: 12703aa440be953579bf71449ffdfcc99ac5385055a6f91c46d80c3e82a1d177
5
5
  SHA512:
6
- metadata.gz: 99b43599cf5c351ff3b943c87cd067bf5ba6713c238e76ae7d2d28206744cca818fac9f7cce8b8501fe434ebe6a89dd4767c58dd2ae64e19f7036c93722714b4
7
- data.tar.gz: 22c4d2c1e625c60e60552ca5ab1df8f1fc6401d3ed3c5de7f788a828815742e5f473412cb349a1107b8bc404e509702785051bc06591c7f12e9d38726468b9e4
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"]
@@ -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 = 215
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: '215'
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-05-24 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
@@ -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.