File tree Expand file tree Collapse file tree 1 file changed +5
-30
lines changed Expand file tree Collapse file tree 1 file changed +5
-30
lines changed Original file line number Diff line number Diff line change @@ -18,41 +18,16 @@ task test: %i[test-news-plugin test-linter lint build]
18
18
19
19
desc "Build the Jekyll site"
20
20
task :build do
21
- require "lanyon "
21
+ require "jekyll "
22
22
23
- Lanyon . build
24
- end
25
-
26
- namespace :build do
27
-
28
- def build_subpage ( lang )
29
- require "yaml"
30
- require "lanyon"
31
-
32
- exclude_config = YAML . load_file ( CONFIG ) [ "exclude" ]
33
- exclude_langs = ( LANGUAGES - [ lang ] ) . map { |x | "#{ x } /" }
34
-
35
- exclude = exclude_config + exclude_langs
36
-
37
- Lanyon . build ( exclude : exclude )
38
- end
39
-
40
- desc "Build the Jekyll site (`lang' language part only)"
41
- task :lang do
42
- puts "Please specify one of the valid language codes:"
43
- puts LANGUAGES . join ( ", " ) << "."
44
- end
45
-
46
- LANGUAGES . each do |lang |
47
- task lang . to_sym do
48
- build_subpage ( lang )
49
- end
50
- end
23
+ Jekyll ::Commands ::Build . process ( { } )
51
24
end
52
25
53
26
desc "Serve the Jekyll site locally"
54
27
task :serve do
55
- sh "rackup config.ru"
28
+ require "jekyll"
29
+
30
+ Jekyll ::Commands ::Serve . process ( { } )
56
31
end
57
32
58
33
namespace :new_post do
You can’t perform that action at this time.
0 commit comments