Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.

Commit b572152

Browse files
author
Sarah Kowalik
committed
Merge remote-tracking branch 'tripit/master'
2 parents 5c43373 + 28b58ae commit b572152

30 files changed

+2911
-246
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ tmp
3434
.yardoc
3535
_yardoc
3636
doc/
37+
.idea/

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Changelog
2+
3+
## Version 1.1
4+
5+
*July 27th, 2014*
6+
7+
**Fixes:**
8+
9+
- Finally, a fix for the redcarpet upgrade bug
10+
11+
## Version 1.0
12+
13+
*July 2, 2014*
14+
15+
[View Issues](https://github.com/tripit/slate/issues?milestone=1&state=closed)
16+
17+
**Features:**
18+
19+
- Responsive designs for phones and tablets
20+
- Started tagging versions
21+
22+
**Fixes:**
23+
24+
- Fixed 'unrecognized expression' error
25+
- Fixed #undefined hash bug
26+
- Fixed bug where the current language tab would be unselected
27+
- Fixed bug where tocify wouldn't highlight the current section while searching
28+
- Fixed bug where ids of header tags would have special characters that caused problems
29+
- Updated layout so that pages with disabled search wouldn't load search.js
30+
- Cleaned up Javascript

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Contributing to Slate
2+
3+
Thanks for contributing to Slate! A couple of quick guidelines for submitting PRs:
4+
5+
- Please point your pull requests at the `dev` branch, and keep your commit messages clear and informative.
6+
- Please make sure your contributions work in the most recent version of Chrome, Firefox, and IE.
7+
- If you're implementing a new feature, even if it's relatively small, it's nice to open an issue before you start so that others know what you're working on and can help make sure you're on the right track.
8+
9+
Thanks again! Happy coding.

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM ubuntu:trusty
2+
3+
RUN apt-get update
4+
RUN apt-get install -yq ruby ruby-dev build-essential
5+
RUN gem install --no-ri --no-rdoc bundler
6+
ADD Gemfile /app/Gemfile
7+
ADD Gemfile.lock /app/Gemfile.lock
8+
RUN cd /app; bundle install
9+
ADD . /app
10+
EXPOSE 4567
11+
WORKDIR /app
12+
CMD ["bundle", "exec", "middleman", "server"]

Gemfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# the following line to use "https"
33
source 'http://rubygems.org'
44

5-
gem "middleman", "~>3.2.0"
5+
gem "middleman", "~>3.3.0"
66

77
# For syntax highlighting
88
gem "middleman-syntax"
@@ -11,7 +11,7 @@ gem "middleman-syntax"
1111
gem 'middleman-gh-pages'
1212

1313
# Live-reloading plugin
14-
gem "middleman-livereload", "~> 3.1.0"
14+
gem "middleman-livereload", "~> 3.3.0"
1515

1616
gem 'redcarpet', '~> 3.1.1'
1717

@@ -23,9 +23,8 @@ platforms :mri_18 do
2323
gem "ruby18_source_location"
2424
end
2525

26-
gem "rake", "~> 10.1.0"
26+
gem "rake", "~> 10.3.0"
2727

28-
gem 'execjs'
2928
gem 'therubyracer', :platforms => :ruby
3029

3130
gem 'nokogiri'

Gemfile.lock

Lines changed: 60 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,36 @@
11
GEM
22
remote: http://rubygems.org/
33
specs:
4-
activesupport (3.2.17)
5-
i18n (~> 0.6, >= 0.6.4)
6-
multi_json (~> 1.0)
4+
activesupport (4.0.4)
5+
i18n (~> 0.6, >= 0.6.9)
6+
minitest (~> 4.2)
7+
multi_json (~> 1.3)
8+
thread_safe (~> 0.1)
9+
tzinfo (~> 0.3.37)
710
chunky_png (1.3.0)
811
coffee-script (2.2.0)
912
coffee-script-source
1013
execjs
1114
coffee-script-source (1.7.0)
12-
compass (0.12.4)
15+
compass (0.12.6)
1316
chunky_png (~> 1.2)
1417
fssm (>= 0.2.7)
15-
sass (~> 3.2.17)
18+
sass (~> 3.2.19)
19+
compass-import-once (1.0.4)
20+
sass (>= 3.2, < 3.5)
1621
em-websocket (0.5.0)
1722
eventmachine (>= 0.12.9)
1823
http_parser.rb (~> 0.5.3)
24+
erubis (2.7.0)
1925
eventmachine (1.0.3)
20-
execjs (1.4.0)
21-
multi_json (~> 1.0)
26+
execjs (2.0.2)
2227
ffi (1.9.3)
2328
fssm (0.2.10)
2429
haml (4.0.5)
2530
tilt
2631
hike (1.2.3)
32+
hooks (0.4.0)
33+
uber (~> 0.0.4)
2734
http_parser.rb (0.5.3)
2835
i18n (0.6.9)
2936
json (1.8.1)
@@ -33,90 +40,102 @@ GEM
3340
rb-fsevent (>= 0.9.3)
3441
rb-inotify (>= 0.9)
3542
rb-kqueue (>= 0.2)
36-
middleman (3.2.2)
43+
middleman (3.3.2)
3744
coffee-script (~> 2.2.0)
38-
compass (>= 0.12.2)
39-
execjs (~> 1.4.0)
40-
haml (>= 3.1.6)
45+
compass (>= 0.12.4)
46+
compass-import-once (~> 1.0.4)
47+
execjs (~> 2.0)
48+
haml (>= 4.0.5)
4149
kramdown (~> 1.2)
42-
middleman-core (= 3.2.2)
50+
middleman-core (= 3.3.2)
4351
middleman-sprockets (>= 3.1.2)
44-
sass (>= 3.1.20)
45-
uglifier (~> 2.4.0)
46-
middleman-core (3.2.2)
47-
activesupport (~> 3.2.6)
52+
sass (>= 3.2.17, < 4.0)
53+
uglifier (~> 2.5)
54+
middleman-core (3.3.2)
55+
activesupport (~> 4.0.1)
4856
bundler (~> 1.1)
57+
erubis
58+
hooks (~> 0.3)
4959
i18n (~> 0.6.9)
5060
listen (~> 1.1)
51-
rack (>= 1.4.5)
52-
rack-test (~> 0.6.1)
61+
padrino-helpers (~> 0.12.1)
62+
rack (>= 1.4.5, < 2.0)
63+
rack-test (~> 0.6.2)
5364
thor (>= 0.15.2, < 2.0)
54-
tilt (~> 1.4.1)
65+
tilt (~> 1.4.1, < 2.0)
5566
middleman-gh-pages (0.0.3)
5667
rake (> 0.9.3)
57-
middleman-livereload (3.1.1)
58-
em-websocket (>= 0.2.0)
59-
middleman-core (>= 3.0.2)
60-
multi_json (~> 1.0)
61-
rack-livereload
62-
middleman-sprockets (3.3.1)
68+
middleman-livereload (3.3.2)
69+
em-websocket (~> 0.5.0)
70+
middleman-core (~> 3.2)
71+
rack-livereload (~> 0.3.15)
72+
middleman-sprockets (3.3.3)
6373
middleman-core (>= 3.2)
64-
sprockets (~> 2.1)
65-
sprockets-helpers (~> 1.0.0)
66-
sprockets-sass (~> 1.0.0)
74+
sprockets (~> 2.2)
75+
sprockets-helpers (~> 1.1.0)
76+
sprockets-sass (~> 1.1.0)
6777
middleman-syntax (2.0.0)
6878
middleman-core (~> 3.2)
6979
rouge (~> 1.0)
7080
mini_portile (0.6.0)
81+
minitest (4.7.5)
7182
multi_json (1.9.2)
72-
nokogiri (1.6.2.1)
83+
nokogiri (1.6.3.1)
7384
mini_portile (= 0.6.0)
85+
padrino-helpers (0.12.1)
86+
i18n (~> 0.6, >= 0.6.7)
87+
padrino-support (= 0.12.1)
88+
tilt (~> 1.4.1)
89+
padrino-support (0.12.1)
90+
activesupport (>= 3.1)
7491
rack (1.5.2)
7592
rack-livereload (0.3.15)
7693
rack
7794
rack-test (0.6.2)
7895
rack (>= 1.0)
79-
rake (10.1.1)
96+
rake (10.3.1)
8097
rb-fsevent (0.9.4)
8198
rb-inotify (0.9.3)
8299
ffi (>= 0.5.0)
83100
rb-kqueue (0.2.2)
84101
ffi (>= 0.5.0)
85-
redcarpet (3.1.1)
102+
redcarpet (3.1.2)
86103
ref (1.0.5)
87104
rouge (1.3.3)
88105
ruby18_source_location (0.2)
89-
sass (3.2.17)
90-
sprockets (2.12.0)
106+
sass (3.2.19)
107+
sprockets (2.12.1)
91108
hike (~> 1.2)
92109
multi_json (~> 1.0)
93110
rack (~> 1.0)
94111
tilt (~> 1.1, != 1.3.0)
95-
sprockets-helpers (1.0.1)
112+
sprockets-helpers (1.1.0)
96113
sprockets (~> 2.0)
97-
sprockets-sass (1.0.3)
114+
sprockets-sass (1.1.0)
98115
sprockets (~> 2.0)
99116
tilt (~> 1.1)
100117
therubyracer (0.12.1)
101118
libv8 (~> 3.16.14.0)
102119
ref
103-
thor (0.18.1)
120+
thor (0.19.1)
121+
thread_safe (0.3.3)
104122
tilt (1.4.1)
105-
uglifier (2.4.0)
123+
tzinfo (0.3.39)
124+
uber (0.0.4)
125+
uglifier (2.5.0)
106126
execjs (>= 0.3.0)
107127
json (>= 1.8.0)
108128

109129
PLATFORMS
110130
ruby
111131

112132
DEPENDENCIES
113-
execjs
114-
middleman (~> 3.2.0)
133+
middleman (~> 3.3.0)
115134
middleman-gh-pages
116-
middleman-livereload (~> 3.1.0)
135+
middleman-livereload (~> 3.3.0)
117136
middleman-syntax
118137
nokogiri
119-
rake (~> 10.1.0)
138+
rake (~> 10.3.0)
120139
redcarpet (~> 3.1.1)
121140
ruby18_source_location
122141
therubyracer

config.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require './lib/redcarpet_header_fix'
2+
13
set :css_dir, 'stylesheets'
24

35
set :js_dir, 'javascripts'
@@ -49,3 +51,4 @@
4951
# Or use a different image path
5052
# set :http_prefix, "/Content/images/"
5153
end
54+

lib/redcarpet_header_fix.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module RedcarpetHeaderFix
2+
def header(text, level)
3+
clean_id = text.downcase.gsub(/( +|\.+)/, '-').gsub(/[^a-zA-Z0-9\-_]/, '')
4+
"<h#{level} id='#{clean_id}'>#{text}</h#{level}>"
5+
end
6+
end
7+
8+
require 'middleman-core/renderers/redcarpet'
9+
Middleman::Renderers::MiddlemanRedcarpetHTML.send :include, RedcarpetHeaderFix

source/fonts/icomoon.eot

100644100755
300 Bytes
Binary file not shown.

source/fonts/icomoon.svg

100644100755
Lines changed: 12 additions & 11 deletions
Loading

0 commit comments

Comments
 (0)