-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19b4833
commit 5ac7051
Showing
24 changed files
with
1,794 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/config.stamp | ||
/Makefile | ||
/config.mk | ||
src/doc/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
language: rust | ||
|
||
install: | ||
- sh ./.travis.install.deps.sh | ||
|
||
script: | ||
- ./configure --local-rust-root=`pwd`/rustc | ||
- make | ||
- make test | ||
- make distcheck | ||
|
||
after_success: | | ||
[ $TRAVIS_BRANCH = master ] && | ||
[ $TRAVIS_PULL_REQUEST = false ] && | ||
[ $BITS = 64 ] && | ||
[ $(uname -s) = Linux ] && | ||
(cd src/doc && | ||
bundle && | ||
bundle exec middleman build) && | ||
echo crates.io >> src/doc/build/CNAME && | ||
sudo pip install ghp-import | ||
ghp-import -n src/doc/build && | ||
git push -f https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages | ||
env: | ||
- BITS=32 | ||
- BITS=64 | ||
|
||
matrix: | ||
- BITS=32 | ||
- BITS=64 | ||
global: | ||
secure: fV37lqpHoVgHJHBdPegut8uf5sfaK/SrLx+Npn1ngPPzUuIh+BZkgqX11FdAxIu05YfI/C/M3smG5SOxb5X0ojK8VQdRtvb8KM6b2G839jegxGk2Bs+bAWMFVrJDl5JCZec+zU/rPlZPXLLnOv23ReGv9UvwgxLw1AJjZ2WkJ5M= | ||
os: | ||
- linux | ||
- osx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# If you have OpenSSL installed, we recommend updating | ||
# the following line to use "https" | ||
source 'http://rubygems.org' | ||
|
||
gem "middleman", "~>3.3.3" | ||
gem "middleman-blog" | ||
|
||
gem "middleman-syntax" | ||
gem "redcarpet" | ||
|
||
# Live-reloading plugin | ||
gem "middleman-livereload", "~> 3.1.0" | ||
|
||
# For faster file watcher updates on Windows: | ||
gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw] | ||
|
||
# Windows does not come with time zone data | ||
gem "tzinfo-data", platforms: [:mswin, :mingw] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
activesupport (4.1.1) | ||
i18n (~> 0.6, >= 0.6.9) | ||
json (~> 1.7, >= 1.7.7) | ||
minitest (~> 5.1) | ||
thread_safe (~> 0.1) | ||
tzinfo (~> 1.1) | ||
addressable (2.3.6) | ||
chunky_png (1.3.1) | ||
coffee-script (2.2.0) | ||
coffee-script-source | ||
execjs | ||
coffee-script-source (1.7.0) | ||
compass (0.12.6) | ||
chunky_png (~> 1.2) | ||
fssm (>= 0.2.7) | ||
sass (~> 3.2.19) | ||
compass-import-once (1.0.4) | ||
sass (>= 3.2, < 3.5) | ||
em-websocket (0.5.1) | ||
eventmachine (>= 0.12.9) | ||
http_parser.rb (~> 0.6.0) | ||
erubis (2.7.0) | ||
eventmachine (1.0.3) | ||
execjs (2.2.0) | ||
ffi (1.9.3) | ||
fssm (0.2.10) | ||
haml (4.0.5) | ||
tilt | ||
hike (1.2.3) | ||
hooks (0.4.0) | ||
uber (~> 0.0.4) | ||
http_parser.rb (0.6.0) | ||
i18n (0.6.9) | ||
json (1.8.1) | ||
kramdown (1.4.0) | ||
listen (1.3.1) | ||
rb-fsevent (>= 0.9.3) | ||
rb-inotify (>= 0.9) | ||
rb-kqueue (>= 0.2) | ||
middleman (3.3.3) | ||
coffee-script (~> 2.2.0) | ||
compass (>= 0.12.4) | ||
compass-import-once (= 1.0.4) | ||
execjs (~> 2.0) | ||
haml (>= 4.0.5) | ||
kramdown (~> 1.2) | ||
middleman-core (= 3.3.3) | ||
middleman-sprockets (>= 3.1.2) | ||
sass (>= 3.2.17, < 4.0) | ||
uglifier (~> 2.5) | ||
middleman-blog (3.5.3) | ||
addressable (~> 2.3.5) | ||
middleman-core (~> 3.2) | ||
tzinfo (>= 0.3.0) | ||
middleman-core (3.3.3) | ||
activesupport (~> 4.1.0) | ||
bundler (~> 1.1) | ||
erubis | ||
hooks (~> 0.3) | ||
i18n (~> 0.6.9) | ||
listen (~> 1.1) | ||
padrino-helpers (~> 0.12.1) | ||
rack (>= 1.4.5, < 2.0) | ||
rack-test (~> 0.6.2) | ||
thor (>= 0.15.2, < 2.0) | ||
tilt (~> 1.4.1, < 2.0) | ||
middleman-livereload (3.1.1) | ||
em-websocket (>= 0.2.0) | ||
middleman-core (>= 3.0.2) | ||
multi_json (~> 1.0) | ||
rack-livereload | ||
middleman-sprockets (3.3.3) | ||
middleman-core (>= 3.2) | ||
sprockets (~> 2.2) | ||
sprockets-helpers (~> 1.1.0) | ||
sprockets-sass (~> 1.1.0) | ||
middleman-syntax (2.0.0) | ||
middleman-core (~> 3.2) | ||
rouge (~> 1.0) | ||
minitest (5.3.5) | ||
multi_json (1.10.1) | ||
padrino-helpers (0.12.2) | ||
i18n (~> 0.6, >= 0.6.7) | ||
padrino-support (= 0.12.2) | ||
tilt (~> 1.4.1) | ||
padrino-support (0.12.2) | ||
activesupport (>= 3.1) | ||
rack (1.5.2) | ||
rack-livereload (0.3.15) | ||
rack | ||
rack-test (0.6.2) | ||
rack (>= 1.0) | ||
rb-fsevent (0.9.4) | ||
rb-inotify (0.9.5) | ||
ffi (>= 0.5.0) | ||
rb-kqueue (0.2.3) | ||
ffi (>= 0.5.0) | ||
redcarpet (2.3.0) | ||
rouge (1.4.0) | ||
sass (3.2.19) | ||
sprockets (2.12.1) | ||
hike (~> 1.2) | ||
multi_json (~> 1.0) | ||
rack (~> 1.0) | ||
tilt (~> 1.1, != 1.3.0) | ||
sprockets-helpers (1.1.0) | ||
sprockets (~> 2.0) | ||
sprockets-sass (1.1.0) | ||
sprockets (~> 2.0) | ||
tilt (~> 1.1) | ||
thor (0.19.1) | ||
thread_safe (0.3.4) | ||
tilt (1.4.1) | ||
tzinfo (1.2.1) | ||
thread_safe (~> 0.1) | ||
uber (0.0.6) | ||
uglifier (2.5.1) | ||
execjs (>= 0.3.0) | ||
json (>= 1.8.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
middleman (~> 3.3.3) | ||
middleman-blog | ||
middleman-livereload (~> 3.1.0) | ||
middleman-syntax | ||
redcarpet | ||
tzinfo-data | ||
wdm (~> 0.1.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
### | ||
# Compass | ||
### | ||
|
||
# Change Compass configuration | ||
# compass_config do |config| | ||
# config.output_style = :compact | ||
# end | ||
|
||
### | ||
# Page options, layouts, aliases and proxies | ||
### | ||
|
||
# Per-page layout changes: | ||
# | ||
# With no layout | ||
# page "/path/to/file.html", :layout => false | ||
# | ||
# With alternative layout | ||
# page "/path/to/file.html", :layout => :otherlayout | ||
# | ||
# A path which all have the same layout | ||
# with_layout :admin do | ||
# page "/admin/*" | ||
# end | ||
|
||
# Proxy pages (http://middlemanapp.com/basics/dynamic-pages/) | ||
# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => { | ||
# :which_fake_page => "Rendering a fake page with a local variable" } | ||
|
||
### | ||
# Helpers | ||
### | ||
|
||
# Automatic image dimensions on image_tag helper | ||
activate :automatic_image_sizes | ||
|
||
# Reload the browser automatically whenever files change | ||
configure :development do | ||
activate :livereload | ||
end | ||
|
||
# Methods defined in the helpers block are available in templates | ||
# helpers do | ||
# def some_helper | ||
# "Helping" | ||
# end | ||
# end | ||
|
||
activate :syntax | ||
|
||
set :css_dir, 'stylesheets' | ||
|
||
set :js_dir, 'javascripts' | ||
|
||
set :images_dir, 'images' | ||
|
||
set :fonts_dir, 'fonts' | ||
|
||
set :markdown_engine, :redcarpet | ||
set :markdown, :fenced_code_blocks => true, :smartypants => true | ||
|
||
set :relative_links, true | ||
|
||
ignore "**/*.ttf" | ||
|
||
# Build-specific configuration | ||
configure :build do | ||
# For example, change the Compass output style for deployment | ||
# activate :minify_css | ||
|
||
# Minify Javascript on build | ||
# activate :minify_javascript | ||
|
||
# Enable cache buster | ||
# activate :asset_hash | ||
|
||
# Use relative URLs | ||
activate :relative_assets | ||
|
||
# Or use a different image path | ||
# set :http_prefix, "/Content/images/" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
require "erb" | ||
|
||
def font(url, family, weight: weight, italic: italic) | ||
url = "../fonts/#{url}.woff" | ||
|
||
erb = ERB.new(<<-HERE.gsub(/^ /, ""), nil, "-") | ||
@font-face { | ||
src: url("#{url}"); | ||
font-family: "<%= family %>"; | ||
<%- if weight -%> | ||
font-weight: <%= weight %>; | ||
<%- end -%> | ||
<%- if italic -%> | ||
font-style: italic; | ||
<%- end -%> | ||
} | ||
HERE | ||
|
||
erb.result(binding) | ||
end | ||
|
||
File.open("source/stylesheets/fonts.css.scss", "w") do |file| | ||
file.puts font("Consolas", "Consolas") | ||
file.puts font("Consolas-Bold", "Consolas", weight: "bold") | ||
file.puts font("Consolas-Italic", "Consolas", italic: true) | ||
file.puts font("Consolas-Bold-Italic", "Consolas", weight: "bold", italic: true) | ||
|
||
file.puts font("Roboto/Roboto-Thin", "Roboto", weight: 100) | ||
file.puts font("Roboto/Roboto-Light", "Roboto", weight: 200) | ||
file.puts font("Roboto/Roboto-Regular", "Roboto", weight: 400) | ||
file.puts font("Roboto/Roboto-Medium", "Roboto", weight: 500) | ||
file.puts font("Roboto/Roboto-Bold", "Roboto", weight: 700) | ||
file.puts font("Roboto/Roboto-Black", "Roboto", weight: 800) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
crates.io |
Oops, something went wrong.