Skip to content

Commit 3e214cb

Browse files
Start from scratch from template
1 parent eb0ba44 commit 3e214cb

File tree

345 files changed

+33789
-104419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+33789
-104419
lines changed

.gitignore

-10
This file was deleted.

.jshintrc

-20
This file was deleted.

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: ruby
2+
cache: bundler
3+
gemfile: docs/Gemfile
4+
script:
5+
- bundle exec jekyll algolia --source docs --destination docs/_site --config docs/_config.yml
6+
branches:
7+
only:
8+
# Change this to gh-pages if you're deploying using the gh-pages branch
9+
- master
10+
rvm:
11+
- 2.4

404.md

-17
This file was deleted.

Gemfile

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
source 'https://rubygems.org'
2-
3-
gem 'jekyll'
4-
gem 'jekyll-sitemap'
5-
gem 'octopress'
1+
source "https://rubygems.org"
2+
gemspec

Gemfile.lock

-89
This file was deleted.

Gruntfile.js

-88
This file was deleted.

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 Michael Rose
3+
Copyright (c) 2013-2020 Michael Rose and contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

-3
This file was deleted.

Rakefile

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
require "bundler/gem_tasks"
2+
require "jekyll"
3+
require "listen"
4+
5+
def listen_ignore_paths(base, options)
6+
[
7+
/_config\.ya?ml/,
8+
/_site/,
9+
/\.jekyll-metadata/
10+
]
11+
end
12+
13+
def listen_handler(base, options)
14+
site = Jekyll::Site.new(options)
15+
Jekyll::Command.process_site(site)
16+
proc do |modified, added, removed|
17+
t = Time.now
18+
c = modified + added + removed
19+
n = c.length
20+
relative_paths = c.map{ |p| Pathname.new(p).relative_path_from(base).to_s }
21+
print Jekyll.logger.message("Regenerating:", "#{relative_paths.join(", ")} changed... ")
22+
begin
23+
Jekyll::Command.process_site(site)
24+
puts "regenerated in #{Time.now - t} seconds."
25+
rescue => e
26+
puts "error:"
27+
Jekyll.logger.warn "Error:", e.message
28+
Jekyll.logger.warn "Error:", "Run jekyll build --trace for more information."
29+
end
30+
end
31+
end
32+
33+
task :preview do
34+
base = Pathname.new('.').expand_path
35+
options = {
36+
"source" => base.join('test').to_s,
37+
"destination" => base.join('test/_site').to_s,
38+
"force_polling" => false,
39+
"serving" => true,
40+
"theme" => "minimal-mistakes-jekyll"
41+
}
42+
43+
options = Jekyll.configuration(options)
44+
45+
ENV["LISTEN_GEM_DEBUGGING"] = "1"
46+
listener = Listen.to(
47+
base.join("_data"),
48+
base.join("_includes"),
49+
base.join("_layouts"),
50+
base.join("_sass"),
51+
base.join("assets"),
52+
options["source"],
53+
:ignore => listen_ignore_paths(base, options),
54+
:force_polling => options['force_polling'],
55+
&(listen_handler(base, options))
56+
)
57+
58+
begin
59+
listener.start
60+
Jekyll.logger.info "Auto-regeneration:", "enabled for '#{options["source"]}'"
61+
62+
unless options['serving']
63+
trap("INT") do
64+
listener.stop
65+
puts " Halting auto-regeneration."
66+
exit 0
67+
end
68+
69+
loop { sleep 1000 }
70+
end
71+
rescue ThreadError
72+
# You pressed Ctrl-C, oh my!
73+
end
74+
75+
Jekyll::Commands::Serve.process(options)
76+
end

0 commit comments

Comments
 (0)