jekyll 4.2.1 → 4.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +474 -350
  3. data/LICENSE +21 -21
  4. data/README.markdown +83 -86
  5. data/exe/jekyll +57 -57
  6. data/lib/blank_template/_config.yml +3 -3
  7. data/lib/blank_template/_layouts/default.html +12 -12
  8. data/lib/blank_template/_sass/{main.scss → base.scss} +9 -9
  9. data/lib/blank_template/assets/css/main.scss +4 -4
  10. data/lib/blank_template/index.md +8 -8
  11. data/lib/jekyll/cache.rb +186 -190
  12. data/lib/jekyll/cleaner.rb +111 -111
  13. data/lib/jekyll/collection.rb +310 -309
  14. data/lib/jekyll/command.rb +105 -105
  15. data/lib/jekyll/commands/build.rb +82 -93
  16. data/lib/jekyll/commands/clean.rb +44 -45
  17. data/lib/jekyll/commands/doctor.rb +177 -177
  18. data/lib/jekyll/commands/help.rb +34 -34
  19. data/lib/jekyll/commands/new.rb +168 -169
  20. data/lib/jekyll/commands/new_theme.rb +39 -40
  21. data/lib/jekyll/commands/serve/live_reload_reactor.rb +119 -122
  22. data/lib/jekyll/commands/serve/livereload_assets/livereload.js +1183 -1183
  23. data/lib/jekyll/commands/serve/mime_types_charset.json +71 -0
  24. data/lib/jekyll/commands/serve/servlet.rb +206 -202
  25. data/lib/jekyll/commands/serve/websockets.rb +81 -81
  26. data/lib/jekyll/commands/serve.rb +367 -362
  27. data/lib/jekyll/configuration.rb +313 -313
  28. data/lib/jekyll/converter.rb +54 -54
  29. data/lib/jekyll/converters/identity.rb +41 -41
  30. data/lib/jekyll/converters/markdown/kramdown_parser.rb +197 -199
  31. data/lib/jekyll/converters/markdown.rb +113 -113
  32. data/lib/jekyll/converters/smartypants.rb +70 -70
  33. data/lib/jekyll/convertible.rb +257 -257
  34. data/lib/jekyll/deprecator.rb +50 -50
  35. data/lib/jekyll/document.rb +543 -544
  36. data/lib/jekyll/drops/collection_drop.rb +20 -20
  37. data/lib/jekyll/drops/document_drop.rb +74 -70
  38. data/lib/jekyll/drops/drop.rb +293 -293
  39. data/lib/jekyll/drops/excerpt_drop.rb +23 -19
  40. data/lib/jekyll/drops/jekyll_drop.rb +32 -32
  41. data/lib/jekyll/drops/site_drop.rb +66 -66
  42. data/lib/jekyll/drops/static_file_drop.rb +14 -14
  43. data/lib/jekyll/drops/theme_drop.rb +36 -0
  44. data/lib/jekyll/drops/unified_payload_drop.rb +30 -26
  45. data/lib/jekyll/drops/url_drop.rb +140 -140
  46. data/lib/jekyll/entry_filter.rb +117 -121
  47. data/lib/jekyll/errors.rb +20 -20
  48. data/lib/jekyll/excerpt.rb +200 -201
  49. data/lib/jekyll/external.rb +75 -79
  50. data/lib/jekyll/filters/date_filters.rb +110 -110
  51. data/lib/jekyll/filters/grouping_filters.rb +64 -64
  52. data/lib/jekyll/filters/url_filters.rb +98 -98
  53. data/lib/jekyll/filters.rb +532 -535
  54. data/lib/jekyll/frontmatter_defaults.rb +238 -240
  55. data/lib/jekyll/generator.rb +5 -5
  56. data/lib/jekyll/hooks.rb +107 -107
  57. data/lib/jekyll/inclusion.rb +32 -32
  58. data/lib/jekyll/layout.rb +55 -67
  59. data/lib/jekyll/liquid_extensions.rb +22 -22
  60. data/lib/jekyll/liquid_renderer/file.rb +77 -77
  61. data/lib/jekyll/liquid_renderer/table.rb +45 -55
  62. data/lib/jekyll/liquid_renderer.rb +80 -80
  63. data/lib/jekyll/log_adapter.rb +151 -151
  64. data/lib/jekyll/mime.types +939 -866
  65. data/lib/jekyll/page.rb +215 -217
  66. data/lib/jekyll/page_excerpt.rb +25 -25
  67. data/lib/jekyll/page_without_a_file.rb +14 -14
  68. data/lib/jekyll/path_manager.rb +74 -74
  69. data/lib/jekyll/plugin.rb +92 -92
  70. data/lib/jekyll/plugin_manager.rb +123 -115
  71. data/lib/jekyll/profiler.rb +51 -58
  72. data/lib/jekyll/publisher.rb +23 -23
  73. data/lib/jekyll/reader.rb +209 -192
  74. data/lib/jekyll/readers/collection_reader.rb +23 -23
  75. data/lib/jekyll/readers/data_reader.rb +113 -79
  76. data/lib/jekyll/readers/layout_reader.rb +62 -62
  77. data/lib/jekyll/readers/page_reader.rb +25 -25
  78. data/lib/jekyll/readers/post_reader.rb +85 -85
  79. data/lib/jekyll/readers/static_file_reader.rb +25 -25
  80. data/lib/jekyll/readers/theme_assets_reader.rb +52 -52
  81. data/lib/jekyll/regenerator.rb +195 -195
  82. data/lib/jekyll/related_posts.rb +52 -52
  83. data/lib/jekyll/renderer.rb +263 -265
  84. data/lib/jekyll/site.rb +576 -551
  85. data/lib/jekyll/static_file.rb +205 -208
  86. data/lib/jekyll/stevenson.rb +60 -60
  87. data/lib/jekyll/tags/highlight.rb +114 -110
  88. data/lib/jekyll/tags/include.rb +275 -275
  89. data/lib/jekyll/tags/link.rb +42 -42
  90. data/lib/jekyll/tags/post_url.rb +106 -106
  91. data/lib/jekyll/theme.rb +90 -86
  92. data/lib/jekyll/theme_builder.rb +121 -121
  93. data/lib/jekyll/url.rb +167 -167
  94. data/lib/jekyll/utils/ansi.rb +57 -57
  95. data/lib/jekyll/utils/exec.rb +26 -26
  96. data/lib/jekyll/utils/internet.rb +37 -37
  97. data/lib/jekyll/utils/platforms.rb +67 -67
  98. data/lib/jekyll/utils/thread_event.rb +31 -31
  99. data/lib/jekyll/utils/win_tz.rb +46 -75
  100. data/lib/jekyll/utils.rb +371 -367
  101. data/lib/jekyll/version.rb +5 -5
  102. data/lib/jekyll.rb +195 -195
  103. data/lib/site_template/.gitignore +5 -5
  104. data/lib/site_template/404.html +25 -25
  105. data/lib/site_template/_config.yml +55 -55
  106. data/lib/site_template/_posts/0000-00-00-welcome-to-jekyll.markdown.erb +29 -29
  107. data/lib/site_template/about.markdown +18 -18
  108. data/lib/site_template/index.markdown +6 -6
  109. data/lib/theme_template/CODE_OF_CONDUCT.md.erb +74 -74
  110. data/lib/theme_template/Gemfile +4 -4
  111. data/lib/theme_template/LICENSE.txt.erb +21 -21
  112. data/lib/theme_template/README.md.erb +50 -52
  113. data/lib/theme_template/_layouts/default.html +1 -1
  114. data/lib/theme_template/_layouts/page.html +5 -5
  115. data/lib/theme_template/_layouts/post.html +5 -5
  116. data/lib/theme_template/example/_config.yml.erb +1 -1
  117. data/lib/theme_template/example/_post.md +12 -12
  118. data/lib/theme_template/example/index.html +14 -14
  119. data/lib/theme_template/example/style.scss +7 -7
  120. data/lib/theme_template/gitignore.erb +6 -6
  121. data/lib/theme_template/theme.gemspec.erb +16 -16
  122. data/rubocop/jekyll/assert_equal_literal_actual.rb +149 -149
  123. data/rubocop/jekyll/no_p_allowed.rb +23 -23
  124. data/rubocop/jekyll/no_puts_allowed.rb +23 -23
  125. data/rubocop/jekyll.rb +5 -5
  126. metadata +64 -18
data/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2008-present Tom Preston-Werner and Jekyll contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2008-present Tom Preston-Werner and Jekyll contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.markdown CHANGED
@@ -1,86 +1,83 @@
1
- # [Jekyll](https://jekyllrb.com/)
2
-
3
- [![Gem Version](https://img.shields.io/gem/v/jekyll.svg)][ruby-gems]
4
- [![Linux Build Status](https://github.com/jekyll/jekyll/workflows/Continuous%20Integration/badge.svg)][ci-workflow]
5
- [![Windows Build status](https://img.shields.io/appveyor/ci/jekyll/jekyll/master.svg?label=Windows%20build)][appveyor]
6
- [![Security](https://hakiri.io/github/jekyll/jekyll/master.svg)][hakiri]
7
- [![Backers on Open Collective](https://opencollective.com/jekyll/backers/badge.svg)](#backers)
8
- [![Sponsors on Open Collective](https://opencollective.com/jekyll/sponsors/badge.svg)](#sponsors)
9
-
10
- [ruby-gems]: https://rubygems.org/gems/jekyll
11
- [hakiri]: https://hakiri.io/github/jekyll/jekyll/master
12
- [ci-workflow]: https://github.com/jekyll/jekyll/actions?query=workflow%3A%22Continuous+Integration%22+branch%3Amaster
13
- [appveyor]: https://ci.appveyor.com/project/jekyll/jekyll/branch/master
14
-
15
- Jekyll is a simple, blog-aware, static site generator perfect for personal, project, or organization sites. Think of it like a file-based CMS, without all the complexity. Jekyll takes your content, renders Markdown and Liquid templates, and spits out a complete, static website ready to be served by Apache, Nginx or another web server. Jekyll is the engine behind [GitHub Pages](https://pages.github.com), which you can use to host sites right from your GitHub repositories.
16
-
17
- ## Philosophy
18
-
19
- Jekyll does what you tell it to do — no more, no less. It doesn't try to outsmart users by making bold assumptions, nor does it burden them with needless complexity and configuration. Put simply, Jekyll gets out of your way and allows you to concentrate on what truly matters: your content.
20
-
21
- See: https://jekyllrb.com/philosophy
22
-
23
- ## Getting Started
24
-
25
- * [Install](https://jekyllrb.com/docs/installation/) the gem
26
- * Read up about its [Usage](https://jekyllrb.com/docs/usage/) and [Configuration](https://jekyllrb.com/docs/configuration/)
27
- * Take a gander at some existing [Sites](https://github.com/jekyll/jekyll/wiki/sites)
28
- * [Fork](https://github.com/jekyll/jekyll/fork) and [Contribute](https://jekyllrb.com/docs/contributing/) your own modifications
29
- * Have questions? Check out our official forum community [Jekyll Talk](https://talk.jekyllrb.com/) or [`#jekyll` on irc.freenode.net](https://botbot.me/freenode/jekyll/)
30
-
31
- ## Diving In
32
-
33
- * [Migrate](http://import.jekyllrb.com/docs/home/) from your previous system
34
- * Learn how [Front Matter](https://jekyllrb.com/docs/front-matter/) works
35
- * Put information on your site with [Variables](https://jekyllrb.com/docs/variables/)
36
- * Customize the [Permalinks](https://jekyllrb.com/docs/permalinks/) your posts are generated with
37
- * Use the built-in [Liquid Extensions](https://jekyllrb.com/docs/templates/) to make your life easier
38
- * Use custom [Plugins](https://jekyllrb.com/docs/plugins/) to generate content specific to your site
39
- * Watch [video tutorials from Giraffe Academy](https://jekyllrb.com/tutorials/video-walkthroughs/)
40
-
41
- ## Need help?
42
-
43
- If you don't find the answer to your problem in our [docs](https://jekyllrb.com/docs/), or in the [troubleshooting section](https://jekyllrb.com/docs/troubleshooting/), ask the [community](https://jekyllrb.com/docs/community/) for help.
44
-
45
- ## Code of Conduct
46
-
47
- In order to have a more open and welcoming community, Jekyll adheres to a
48
- [code of conduct](CODE_OF_CONDUCT.markdown) adapted from the Ruby on Rails code of
49
- conduct.
50
-
51
- Please adhere to this code of conduct in any interactions you have in the
52
- Jekyll community. It is strictly enforced on all official Jekyll
53
- repositories, websites, and resources. If you encounter someone violating
54
- these terms, please let one of our [core team members](https://jekyllrb.com/team/#core-team) know and we will address it as soon as possible.
55
-
56
- ## Credits
57
-
58
- ### Sponsors
59
-
60
- Support this project by becoming a sponsor. Your logo will show up in this README with a link to your website. [Become a sponsor!](https://opencollective.com/jekyll#sponsor)
61
-
62
- <a href="https://opencollective.com/jekyll/sponsor/0/website" target="_blank"><img src="https://opencollective.com/jekyll/sponsor/0/avatar.svg" /></a>
63
- <a href="https://opencollective.com/jekyll/sponsor/1/website" target="_blank"><img src="https://opencollective.com/jekyll/sponsor/1/avatar.svg" /></a>
64
- <a href="https://opencollective.com/jekyll/sponsor/2/website" target="_blank"><img src="https://opencollective.com/jekyll/sponsor/2/avatar.svg" /></a>
65
- <a href="https://opencollective.com/jekyll/sponsor/3/website" target="_blank"><img src="https://opencollective.com/jekyll/sponsor/3/avatar.svg" /></a>
66
- <a href="https://opencollective.com/jekyll/sponsor/4/website" target="_blank"><img src="https://opencollective.com/jekyll/sponsor/4/avatar.svg" /></a>
67
- <a href="https://opencollective.com/jekyll/sponsor/5/website" target="_blank"><img src="https://opencollective.com/jekyll/sponsor/5/avatar.svg" /></a>
68
- <a href="https://opencollective.com/jekyll/sponsor/6/website" target="_blank"><img src="https://opencollective.com/jekyll/sponsor/6/avatar.svg" /></a>
69
- <a href="https://opencollective.com/jekyll/sponsor/7/website" target="_blank"><img src="https://opencollective.com/jekyll/sponsor/7/avatar.svg" /></a>
70
- <a href="https://opencollective.com/jekyll/sponsor/8/website" target="_blank"><img src="https://opencollective.com/jekyll/sponsor/8/avatar.svg" /></a>
71
- <a href="https://opencollective.com/jekyll/sponsor/9/website" target="_blank"><img src="https://opencollective.com/jekyll/sponsor/9/avatar.svg" /></a>
72
-
73
- ### Contributors
74
-
75
- This project exists thanks to all the people who contribute.
76
- <a href="../../graphs/contributors"><img src="https://opencollective.com/jekyll/contributors.svg?width=890&button=false" /></a>
77
-
78
- ### Backers
79
-
80
- Thank you to all our backers! 🙏 [Become a backer](https://opencollective.com/jekyll#backer)
81
-
82
- <a href="https://opencollective.com/jekyll#backers" target="_blank"><img src="https://opencollective.com/jekyll/backers.svg?width=890" /></a>
83
-
84
- ## License
85
-
86
- See the [LICENSE](https://github.com/jekyll/jekyll/blob/master/LICENSE) file.
1
+ # [Jekyll](https://jekyllrb.com/)
2
+
3
+ [![Gem Version](https://img.shields.io/gem/v/jekyll.svg)][ruby-gems]
4
+ [![Linux Build Status](https://github.com/jekyll/jekyll/workflows/Continuous%20Integration/badge.svg)][ci-workflow]
5
+ [![Windows Build status](https://img.shields.io/appveyor/ci/jekyll/jekyll/master.svg?label=Windows%20build)][appveyor]
6
+ [![Backers on Open Collective](https://opencollective.com/jekyll/backers/badge.svg)](#backers)
7
+ [![Sponsors on Open Collective](https://opencollective.com/jekyll/sponsors/badge.svg)](#sponsors)
8
+
9
+ [ruby-gems]: https://rubygems.org/gems/jekyll
10
+ [ci-workflow]: https://github.com/jekyll/jekyll/actions?query=workflow%3A%22Continuous+Integration%22+branch%3Amaster
11
+ [appveyor]: https://ci.appveyor.com/project/jekyll/jekyll/branch/master
12
+
13
+ Jekyll is a simple, blog-aware, static site generator perfect for personal, project, or organization sites. Think of it like a file-based CMS, without all the complexity. Jekyll takes your content, renders Markdown and Liquid templates, and spits out a complete, static website ready to be served by Apache, Nginx or another web server. Jekyll is the engine behind [GitHub Pages](https://pages.github.com), which you can use to host sites right from your GitHub repositories.
14
+
15
+ ## Philosophy
16
+
17
+ Jekyll does what you tell it to do — no more, no less. It doesn't try to outsmart users by making bold assumptions, nor does it burden them with needless complexity and configuration. Put simply, Jekyll gets out of your way and allows you to concentrate on what truly matters: your content.
18
+
19
+ See: [https://jekyllrb.com/philosophy](https://jekyllrb.com/philosophy)
20
+
21
+ ## Getting Started
22
+
23
+ * [Install](https://jekyllrb.com/docs/installation/) the gem
24
+ * Read up about its [Usage](https://jekyllrb.com/docs/usage/) and [Configuration](https://jekyllrb.com/docs/configuration/)
25
+ * Take a gander at some existing [Sites](https://github.com/jekyll/jekyll/wiki/sites)
26
+ * [Fork](https://github.com/jekyll/jekyll/fork) and [Contribute](https://jekyllrb.com/docs/contributing/) your own modifications
27
+ * Have questions? Check out our official forum community [Jekyll Talk](https://talk.jekyllrb.com/) and [`#jekyll` Channel on Libera IRC](https://libera.chat)
28
+
29
+ ## Diving In
30
+
31
+ * [Migrate](https://import.jekyllrb.com/docs/home/) from your previous system
32
+ * Learn how [Front Matter](https://jekyllrb.com/docs/front-matter/) works
33
+ * Put information on your site with [Variables](https://jekyllrb.com/docs/variables/)
34
+ * Customize the [Permalinks](https://jekyllrb.com/docs/permalinks/) your posts are generated with
35
+ * Use the built-in [Liquid Extensions](https://jekyllrb.com/docs/templates/) to make your life easier
36
+ * Use custom [Plugins](https://jekyllrb.com/docs/plugins/) to generate content specific to your site
37
+ * Watch [video tutorials from Giraffe Academy](https://jekyllrb.com/tutorials/video-walkthroughs/)
38
+
39
+ ## Need help?
40
+
41
+ If you don't find the answer to your problem in our [docs](https://jekyllrb.com/docs/), or in the [troubleshooting section](https://jekyllrb.com/docs/troubleshooting/), ask the [community](https://jekyllrb.com/docs/community/) for help.
42
+
43
+ ## Code of Conduct
44
+
45
+ In order to have a more open and welcoming community, Jekyll adheres to a
46
+ [code of conduct](https://jekyllrb.com/docs/conduct/) adapted from the Ruby on Rails code of
47
+ conduct.
48
+
49
+ Please adhere to this code of conduct in any interactions you have in the
50
+ Jekyll community. It is strictly enforced on all official Jekyll
51
+ repositories, websites, and resources. If you encounter someone violating
52
+ these terms, please let one of our [core team members](https://jekyllrb.com/team/#core-team) know and we will address it as soon as possible.
53
+
54
+ ## Credits
55
+
56
+ ### Sponsors
57
+
58
+ Support this project by becoming a sponsor. Your logo will show up in this README with a link to your website. [Become a sponsor!](https://opencollective.com/jekyll#sponsor)
59
+ [![Jekyll Sponsor 0](https://opencollective.com/jekyll/sponsor/0/avatar.svg)](https://opencollective.com/jekyll/sponsor/0/website)
60
+ [![Jekyll Sponsor 1](https://opencollective.com/jekyll/sponsor/1/avatar.svg)](https://opencollective.com/jekyll/sponsor/1/website)
61
+ [![Jekyll Sponsor 2](https://opencollective.com/jekyll/sponsor/2/avatar.svg)](https://opencollective.com/jekyll/sponsor/2/website)
62
+ [![Jekyll Sponsor 3](https://opencollective.com/jekyll/sponsor/3/avatar.svg)](https://opencollective.com/jekyll/sponsor/3/website)
63
+ [![Jekyll Sponsor 4](https://opencollective.com/jekyll/sponsor/4/avatar.svg)](https://opencollective.com/jekyll/sponsor/4/website)
64
+ [![Jekyll Sponsor 5](https://opencollective.com/jekyll/sponsor/5/avatar.svg)](https://opencollective.com/jekyll/sponsor/5/website)
65
+ [![Jekyll Sponsor 6](https://opencollective.com/jekyll/sponsor/6/avatar.svg)](https://opencollective.com/jekyll/sponsor/6/website)
66
+ [![Jekyll Sponsor 7](https://opencollective.com/jekyll/sponsor/7/avatar.svg)](https://opencollective.com/jekyll/sponsor/7/website)
67
+ [![Jekyll Sponsor 8](https://opencollective.com/jekyll/sponsor/8/avatar.svg)](https://opencollective.com/jekyll/sponsor/8/website)
68
+ [![Jekyll Sponsor 9](https://opencollective.com/jekyll/sponsor/9/avatar.svg)](https://opencollective.com/jekyll/sponsor/9/website)
69
+
70
+ ### Contributors
71
+
72
+ This project exists thanks to all the people who contribute.
73
+ [![Jekyll Contributors](https://opencollective.com/jekyll/contributors.svg?width=890&button=false)](../../graphs/contributors)
74
+
75
+ ### Backers
76
+
77
+ Thank you to all our backers! 🙏 [Become a backer](https://opencollective.com/jekyll#backer)
78
+
79
+ [![Jekyll Backers](https://opencollective.com/jekyll/backers.svg?width=890)](https://opencollective.com/jekyll#backers)
80
+
81
+ ## License
82
+
83
+ See the [LICENSE](https://github.com/jekyll/jekyll/blob/master/LICENSE) file.
data/exe/jekyll CHANGED
@@ -1,57 +1,57 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- STDOUT.sync = true
5
-
6
- $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
7
-
8
- require "jekyll"
9
- require "mercenary"
10
-
11
- Jekyll::PluginManager.require_from_bundler
12
-
13
- Jekyll::Deprecator.process(ARGV)
14
-
15
- Mercenary.program(:jekyll) do |p|
16
- p.version Jekyll::VERSION
17
- p.description "Jekyll is a blog-aware, static site generator in Ruby"
18
- p.syntax "jekyll <subcommand> [options]"
19
-
20
- p.option "source", "-s", "--source [DIR]", "Source directory (defaults to ./)"
21
- p.option "destination", "-d", "--destination [DIR]",
22
- "Destination directory (defaults to ./_site)"
23
- p.option "safe", "--safe", "Safe mode (defaults to false)"
24
- p.option "plugins_dir", "-p", "--plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]]", Array,
25
- "Plugins directory (defaults to ./_plugins)"
26
- p.option "layouts_dir", "--layouts DIR", String,
27
- "Layouts directory (defaults to ./_layouts)"
28
- p.option "profile", "--profile", "Generate a Liquid rendering profile"
29
-
30
- Jekyll::External.require_if_present(Jekyll::External.blessed_gems) do |g, ver_constraint|
31
- cmd = g.split("-").last
32
- p.command(cmd.to_sym) do |c|
33
- c.syntax cmd
34
- c.action do
35
- Jekyll.logger.abort_with "You must install the '#{g}' gem" \
36
- " version #{ver_constraint} to use the 'jekyll #{cmd}' command."
37
- end
38
- end
39
- end
40
-
41
- Jekyll::Command.subclasses.each { |c| c.init_with_program(p) }
42
-
43
- p.action do |args, _|
44
- if args.empty?
45
- Jekyll.logger.error "A subcommand is required."
46
- puts p
47
- abort
48
- else
49
- subcommand = args.first
50
- unless p.has_command? subcommand
51
- Jekyll.logger.abort_with "fatal: 'jekyll #{args.first}' could not" \
52
- " be found. You may need to install the jekyll-#{args.first} gem" \
53
- " or a related gem to be able to use this subcommand."
54
- end
55
- end
56
- end
57
- end
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ STDOUT.sync = true
5
+
6
+ $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
7
+
8
+ require "jekyll"
9
+ require "mercenary"
10
+
11
+ Jekyll::PluginManager.require_from_bundler
12
+
13
+ Jekyll::Deprecator.process(ARGV)
14
+
15
+ Mercenary.program(:jekyll) do |p|
16
+ p.version Jekyll::VERSION
17
+ p.description "Jekyll is a blog-aware, static site generator in Ruby"
18
+ p.syntax "jekyll <subcommand> [options]"
19
+
20
+ p.option "source", "-s", "--source [DIR]", "Source directory (defaults to ./)"
21
+ p.option "destination", "-d", "--destination [DIR]",
22
+ "Destination directory (defaults to ./_site)"
23
+ p.option "safe", "--safe", "Safe mode (defaults to false)"
24
+ p.option "plugins_dir", "-p", "--plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]]", Array,
25
+ "Plugins directory (defaults to ./_plugins)"
26
+ p.option "layouts_dir", "--layouts DIR", String,
27
+ "Layouts directory (defaults to ./_layouts)"
28
+ p.option "profile", "--profile", "Generate a Liquid rendering profile"
29
+
30
+ Jekyll::External.require_if_present(Jekyll::External.blessed_gems) do |g, ver_constraint|
31
+ cmd = g.split("-").last
32
+ p.command(cmd.to_sym) do |c|
33
+ c.syntax cmd
34
+ c.action do
35
+ Jekyll.logger.abort_with "You must install the '#{g}' gem" \
36
+ " version #{ver_constraint} to use the 'jekyll #{cmd}' command."
37
+ end
38
+ end
39
+ end
40
+
41
+ Jekyll::Command.subclasses.each { |c| c.init_with_program(p) }
42
+
43
+ p.action do |args, _|
44
+ if args.empty?
45
+ Jekyll.logger.error "A subcommand is required."
46
+ puts p
47
+ abort
48
+ else
49
+ subcommand = args.first
50
+ unless p.has_command? subcommand
51
+ Jekyll.logger.abort_with "fatal: 'jekyll #{args.first}' could not" \
52
+ " be found. You may need to install the jekyll-#{args.first} gem" \
53
+ " or a related gem to be able to use this subcommand."
54
+ end
55
+ end
56
+ end
57
+ end
@@ -1,3 +1,3 @@
1
- url: "" # the base hostname & protocol for your site, e.g. http://example.com
2
- baseurl: "" # the subpath of your site, e.g. /blog
3
- title: "" # the name of your site, e.g. ACME Corp.
1
+ url: "" # the base hostname & protocol for your site, e.g. http://example.com
2
+ baseurl: "" # the subpath of your site, e.g. /blog
3
+ title: "" # the name of your site, e.g. ACME Corp.
@@ -1,12 +1,12 @@
1
- <!DOCTYPE html>
2
- <html lang="{{ site.lang | default: "en-US" }}">
3
- <head>
4
- <meta name="viewport" content="width=device-width, initial-scale=1">
5
- <meta charset="utf-8">
6
- <title>{{ page.title }} - {{ site.title }}</title>
7
- <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
8
- </head>
9
- <body>
10
- {{ content }}
11
- </body>
12
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="{{ site.lang | default: "en-US" }}">
3
+ <head>
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+ <meta charset="utf-8">
6
+ <title>{{ page.title }} - {{ site.title }}</title>
7
+ <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
8
+ </head>
9
+ <body>
10
+ {{ content }}
11
+ </body>
12
+ </html>
@@ -1,9 +1,9 @@
1
- $backgroundColor: #ffffff;
2
- $bodyColor: #000000;
3
- $bodyFont: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
4
-
5
- body {
6
- background: $backgroundColor;
7
- color: $bodyColor;
8
- font-family: $bodyFont;
9
- }
1
+ $backgroundColor: #ffffff;
2
+ $bodyColor: #000000;
3
+ $bodyFont: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
4
+
5
+ body {
6
+ background: $backgroundColor;
7
+ color: $bodyColor;
8
+ font-family: $bodyFont;
9
+ }
@@ -1,4 +1,4 @@
1
- ---
2
- ---
3
-
4
- @import "main";
1
+ ---
2
+ ---
3
+
4
+ @import "base";
@@ -1,8 +1,8 @@
1
- ---
2
- layout: default
3
- title: "Happy Jekylling!"
4
- ---
5
-
6
- ## You're ready to go!
7
-
8
- Start developing your Jekyll website.
1
+ ---
2
+ layout: default
3
+ title: "Happy Jekylling!"
4
+ ---
5
+
6
+ ## You're ready to go!
7
+
8
+ Start developing your Jekyll website.