Skip to content

Commit d495c2d

Browse files
Updated slate
1 parent 6efc67c commit d495c2d

39 files changed

+11482
-2203
lines changed

.editorconfig

+9-21
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,18 @@
1-
# editorconfig.org
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# Top-most EditorConfig file
24
root = true
35

6+
# Unix-style newlines with a newline ending every file
47
[*]
5-
charset = utf-8
68
end_of_line = lf
7-
indent_size = 4
8-
tab_width = 4
9-
indent_style = tab
109
insert_final_newline = true
10+
indent_style = space
11+
indent_size = 2
1112
trim_trailing_whitespace = true
1213

13-
[*.md]
14-
trim_trailing_whitespace = false
14+
[*.rb]
15+
charset = utf-8
1516

16-
[*.txt]
17+
[*.md]
1718
trim_trailing_whitespace = false
18-
19-
[*.{rb,scss,json}]
20-
indent_size = 2
21-
tab_width = 2
22-
indent_style = space
23-
24-
[*.json]
25-
insert_final_newline = false
26-
27-
[*.py]
28-
indent_size = 4
29-
tab_width = 4
30-
indent_style = space

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ tmp
1414
*.DS_STORE
1515
build/
1616
.cache
17+
.vagrant
18+
.sass-cache
1719

1820
# YARD artifacts
1921
.yardoc

CONTRIBUTING.md

-11
This file was deleted.

Dockerfile

-12
This file was deleted.

Gemfile

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
ruby '>=2.3.1'
12
source 'https://rubygems.org'
23

34
# Middleman
4-
gem 'middleman', '~>3.3.10'
5-
gem 'middleman-gh-pages', '~> 0.0.3'
6-
gem 'middleman-syntax', '~> 2.0.0'
7-
gem 'middleman-autoprefixer', '~> 2.4.4'
8-
gem 'rouge', '~> 1.9.0'
9-
gem 'redcarpet', '~> 3.3.2'
10-
11-
gem 'rake', '~> 10.4.2'
12-
gem 'therubyracer', '~> 0.12.1', platforms: :ruby
5+
gem 'middleman', '~>4.2.1'
6+
gem 'middleman-syntax', '~> 3.0.0'
7+
gem 'middleman-autoprefixer', '~> 2.7.0'
8+
gem 'middleman-sprockets', '~> 4.1.0'
9+
gem 'rouge', '~> 2.0.5'
10+
gem 'redcarpet', '~> 3.4.0'
11+
gem 'nokogiri', '~> 1.8.2'
12+
gem 'middleman-compass', '~> 4.0', '>= 4.0.1'

Gemfile.lock

+105-99
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (4.1.11)
5-
i18n (~> 0.6, >= 0.6.9)
6-
json (~> 1.7, >= 1.7.7)
4+
activesupport (5.0.7)
5+
concurrent-ruby (~> 1.0, >= 1.0.2)
6+
i18n (>= 0.7, < 2)
77
minitest (~> 5.1)
8-
thread_safe (~> 0.1)
98
tzinfo (~> 1.1)
10-
autoprefixer-rails (5.2.0.1)
9+
addressable (2.5.2)
10+
public_suffix (>= 2.0.2, < 4.0)
11+
autoprefixer-rails (6.7.7.2)
1112
execjs
12-
json
13-
celluloid (0.16.0)
14-
timers (~> 4.0.0)
15-
chunky_png (1.3.4)
13+
backports (3.11.4)
14+
chunky_png (1.3.10)
1615
coffee-script (2.4.1)
1716
coffee-script-source
1817
execjs
19-
coffee-script-source (1.9.1.1)
18+
coffee-script-source (1.12.2)
2019
compass (1.0.3)
2120
chunky_png (~> 1.2)
2221
compass-core (~> 1.0.2)
@@ -29,112 +28,119 @@ GEM
2928
sass (>= 3.3.0, < 3.5)
3029
compass-import-once (1.0.5)
3130
sass (>= 3.2, < 3.5)
31+
concurrent-ruby (1.0.5)
32+
contracts (0.13.0)
33+
dotenv (2.5.0)
3234
erubis (2.7.0)
33-
execjs (2.5.2)
34-
ffi (1.9.8)
35-
haml (4.0.6)
35+
execjs (2.7.0)
36+
fast_blank (1.0.0)
37+
fastimage (2.1.4)
38+
ffi (1.9.25)
39+
haml (5.0.4)
40+
temple (>= 0.8.0)
3641
tilt
37-
hike (1.2.3)
38-
hitimes (1.2.2)
39-
hooks (0.4.0)
40-
uber (~> 0.0.4)
42+
hamster (3.0.0)
43+
concurrent-ruby (~> 1.0)
44+
hashie (3.6.0)
4145
i18n (0.7.0)
42-
json (1.8.3)
43-
kramdown (1.7.0)
44-
libv8 (3.16.14.7)
45-
listen (2.10.1)
46-
celluloid (~> 0.16.0)
47-
rb-fsevent (>= 0.9.3)
48-
rb-inotify (>= 0.9)
49-
middleman (3.3.12)
46+
kramdown (1.17.0)
47+
listen (3.0.8)
48+
rb-fsevent (~> 0.9, >= 0.9.4)
49+
rb-inotify (~> 0.9, >= 0.9.7)
50+
memoist (0.16.0)
51+
middleman (4.2.1)
5052
coffee-script (~> 2.2)
51-
compass (>= 1.0.0, < 2.0.0)
5253
compass-import-once (= 1.0.5)
53-
execjs (~> 2.0)
5454
haml (>= 4.0.5)
5555
kramdown (~> 1.2)
56-
middleman-core (= 3.3.12)
57-
middleman-sprockets (>= 3.1.2)
56+
middleman-cli (= 4.2.1)
57+
middleman-core (= 4.2.1)
5858
sass (>= 3.4.0, < 4.0)
59-
uglifier (~> 2.5)
60-
middleman-autoprefixer (2.4.4)
61-
autoprefixer-rails (~> 5.2.0)
59+
middleman-autoprefixer (2.7.1)
60+
autoprefixer-rails (>= 6.5.2, < 7.0.0)
6261
middleman-core (>= 3.3.3)
63-
middleman-core (3.3.12)
64-
activesupport (~> 4.1.0)
62+
middleman-cli (4.2.1)
63+
thor (>= 0.17.0, < 2.0)
64+
middleman-compass (4.0.1)
65+
compass (>= 1.0.0, < 2.0.0)
66+
middleman-core (>= 4.0.0)
67+
middleman-core (4.2.1)
68+
activesupport (>= 4.2, < 5.1)
69+
addressable (~> 2.3)
70+
backports (~> 3.6)
6571
bundler (~> 1.1)
72+
contracts (~> 0.13.0)
73+
dotenv
6674
erubis
67-
hooks (~> 0.3)
75+
execjs (~> 2.0)
76+
fast_blank
77+
fastimage (~> 2.0)
78+
hamster (~> 3.0)
79+
hashie (~> 3.4)
6880
i18n (~> 0.7.0)
69-
listen (>= 2.7.9, < 3.0)
70-
padrino-helpers (~> 0.12.3)
71-
rack (>= 1.4.5, < 2.0)
72-
rack-test (~> 0.6.2)
73-
thor (>= 0.15.2, < 2.0)
74-
tilt (~> 1.4.1, < 2.0)
75-
middleman-gh-pages (0.0.3)
76-
rake (> 0.9.3)
77-
middleman-sprockets (3.4.2)
78-
middleman-core (>= 3.3)
79-
sprockets (~> 2.12.1)
80-
sprockets-helpers (~> 1.1.0)
81-
sprockets-sass (~> 1.3.0)
82-
middleman-syntax (2.0.0)
83-
middleman-core (~> 3.2)
84-
rouge (~> 1.0)
85-
minitest (5.7.0)
86-
multi_json (1.11.1)
87-
padrino-helpers (0.12.5)
81+
listen (~> 3.0.0)
82+
memoist (~> 0.14)
83+
padrino-helpers (~> 0.13.0)
84+
parallel
85+
rack (>= 1.4.5, < 3)
86+
sass (>= 3.4)
87+
servolux
88+
tilt (~> 2.0)
89+
uglifier (~> 3.0)
90+
middleman-sprockets (4.1.1)
91+
middleman-core (~> 4.0)
92+
sprockets (>= 3.0)
93+
middleman-syntax (3.0.0)
94+
middleman-core (>= 3.2)
95+
rouge (~> 2.0)
96+
mini_portile2 (2.3.0)
97+
minitest (5.11.3)
98+
multi_json (1.13.1)
99+
nokogiri (1.8.5)
100+
mini_portile2 (~> 2.3.0)
101+
padrino-helpers (0.13.3.4)
88102
i18n (~> 0.6, >= 0.6.7)
89-
padrino-support (= 0.12.5)
90-
tilt (~> 1.4.1)
91-
padrino-support (0.12.5)
103+
padrino-support (= 0.13.3.4)
104+
tilt (>= 1.4.1, < 3)
105+
padrino-support (0.13.3.4)
92106
activesupport (>= 3.1)
93-
rack (1.6.4)
94-
rack-test (0.6.3)
95-
rack (>= 1.0)
96-
rake (10.4.2)
97-
rb-fsevent (0.9.5)
98-
rb-inotify (0.9.5)
99-
ffi (>= 0.5.0)
100-
redcarpet (3.3.2)
101-
ref (1.0.5)
102-
rouge (1.9.0)
103-
sass (3.4.14)
104-
sprockets (2.12.3)
105-
hike (~> 1.2)
106-
multi_json (~> 1.0)
107-
rack (~> 1.0)
108-
tilt (~> 1.1, != 1.3.0)
109-
sprockets-helpers (1.1.0)
110-
sprockets (~> 2.0)
111-
sprockets-sass (1.3.1)
112-
sprockets (~> 2.0)
113-
tilt (~> 1.1)
114-
therubyracer (0.12.2)
115-
libv8 (~> 3.16.14.0)
116-
ref
117-
thor (0.19.1)
118-
thread_safe (0.3.5)
119-
tilt (1.4.1)
120-
timers (4.0.1)
121-
hitimes
122-
tzinfo (1.2.2)
107+
parallel (1.12.1)
108+
public_suffix (3.0.3)
109+
rack (2.0.5)
110+
rb-fsevent (0.10.3)
111+
rb-inotify (0.9.10)
112+
ffi (>= 0.5.0, < 2)
113+
redcarpet (3.4.0)
114+
rouge (2.0.7)
115+
sass (3.4.25)
116+
servolux (0.13.0)
117+
sprockets (3.7.2)
118+
concurrent-ruby (~> 1.0)
119+
rack (> 1, < 3)
120+
temple (0.8.0)
121+
thor (0.20.0)
122+
thread_safe (0.3.6)
123+
tilt (2.0.8)
124+
tzinfo (1.2.5)
123125
thread_safe (~> 0.1)
124-
uber (0.0.13)
125-
uglifier (2.7.1)
126-
execjs (>= 0.3.0)
127-
json (>= 1.8.0)
126+
uglifier (3.2.0)
127+
execjs (>= 0.3.0, < 3)
128128

129129
PLATFORMS
130130
ruby
131131

132132
DEPENDENCIES
133-
middleman (~> 3.3.10)
134-
middleman-autoprefixer (~> 2.4.4)
135-
middleman-gh-pages (~> 0.0.3)
136-
middleman-syntax (~> 2.0.0)
137-
rake (~> 10.4.2)
138-
redcarpet (~> 3.3.2)
139-
rouge (~> 1.9.0)
140-
therubyracer (~> 0.12.1)
133+
middleman (~> 4.2.1)
134+
middleman-autoprefixer (~> 2.7.0)
135+
middleman-compass (~> 4.0, >= 4.0.1)
136+
middleman-sprockets (~> 4.1.0)
137+
middleman-syntax (~> 3.0.0)
138+
nokogiri (~> 1.8.2)
139+
redcarpet (~> 3.4.0)
140+
rouge (~> 2.0.5)
141+
142+
RUBY VERSION
143+
ruby 2.5.1p57
144+
145+
BUNDLED WITH
146+
1.16.1

config.rb

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1+
# Unique header generation
2+
require './lib/unique_head.rb'
3+
14
# Markdown
25
set :markdown_engine, :redcarpet
36
set :markdown,
47
fenced_code_blocks: true,
58
smartypants: true,
69
disable_indented_code_blocks: true,
710
prettify: true,
11+
strikethrough: true,
812
tables: true,
913
with_toc_data: true,
10-
no_intra_emphasis: true
14+
no_intra_emphasis: true,
15+
renderer: UniqueHeadCounter
1116

1217
# Assets
1318
set :css_dir, 'stylesheets'
@@ -17,6 +22,11 @@
1722

1823
# Activate the syntax highlighter
1924
activate :syntax
25+
ready do
26+
require './lib/multilang.rb'
27+
end
28+
29+
activate :sprockets
2030

2131
activate :autoprefixer do |config|
2232
config.browsers = ['last 2 version', 'Firefox ESR']
@@ -30,9 +40,19 @@
3040

3141
# Build Configuration
3242
configure :build do
43+
# If you're having trouble with Middleman hanging, commenting
44+
# out the following two lines has been known to help
3345
activate :minify_css
3446
activate :minify_javascript
3547
# activate :relative_assets
3648
# activate :asset_hash
3749
# activate :gzip
3850
end
51+
52+
# Deploy Configuration
53+
# If you want Middleman to listen on a different port, you can set that below
54+
set :port, 4567
55+
56+
helpers do
57+
require './lib/toc_data.rb'
58+
end

0 commit comments

Comments
 (0)