Skip to content

Commit 4b649c2

Browse files
committed
.
1 parent 4af125d commit 4b649c2

15 files changed

+2608
-20
lines changed

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*.gem
2+
*.sublime-project
3+
*.sublime-workspace
4+
.bundle
5+
.DS_Store
6+
.jekyll-metadata
7+
.sass-cache
8+
_asset_bundler_cache
9+
_site
10+
codekit-config.json
11+
example/_site
12+
Gemfile.lock
13+
node_modules
14+
npm-debug.log*

.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

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source "https://rubygems.org"
2+
gemspec

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013-2019 Michael Rose and 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.

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

_config.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,13 @@ author:
111111
avatar : # path of avatar image, e.g. "/assets/images/bio-photo.jpg"
112112
bio : "programmer"
113113
location : "Pangyo"
114-
email :
114+
115115
links:
116116
- label: "Email"
117117
icon: "fas fa-fw fa-envelope-square"
118118
# url: mailto:[email protected]
119119
- label: "LinkdedIn"
120-
icon: "fas fa-fw fa-link"
120+
icon: "fas fa-fw fa-linkedin"
121121
url: "https://www.linkedin.com/in/%EC%84%B1%ED%99%98-%EB%B0%95-017601a4/"
122122
- label: "Twitter"
123123
icon: "fab fa-fw fa-twitter-square"
@@ -286,11 +286,13 @@ defaults:
286286
# _posts
287287
- scope:
288288
path: ""
289-
type: posts
289+
type: docs
290290
values:
291291
layout: single
292292
author_profile: true
293293
read_time: true
294294
comments: # true
295295
share: true
296296
related: true
297+
sidebar:
298+
nav: "docs"

_data/navigation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# main links
2-
main:
2+
docs:
33
- title: "Quick-Start Guide"
44
url: https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/
55
# - title: "About"

banner.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const fs = require("fs");
2+
const pkg = require("./package.json");
3+
const filename = "assets/js/main.min.js";
4+
const script = fs.readFileSync(filename);
5+
const padStart = str => ("0" + str).slice(-2);
6+
const dateObj = new Date();
7+
const date = `${dateObj.getFullYear()}-${padStart(
8+
dateObj.getMonth() + 1
9+
)}-${padStart(dateObj.getDate())}`;
10+
const banner = `/*!
11+
* Minimal Mistakes Jekyll Theme ${pkg.version} by ${pkg.author}
12+
* Copyright 2013-${dateObj.getFullYear()} Michael Rose - mademistakes.com | @mmistakes
13+
* Licensed under ${pkg.license}
14+
*/
15+
`;
16+
17+
if (script.slice(0, 3) != "/**") {
18+
fs.writeFileSync(filename, banner + script);
19+
}

category/About.md

-4
This file was deleted.

category/Flutter.md

-4
This file was deleted.

category/Jenkins.md

-4
This file was deleted.

category/Unity.md

-4
This file was deleted.

0 commit comments

Comments
 (0)