mirror of
https://github.com/danog/sass-site.git
synced 2024-11-27 04:24:50 +01:00
merge
This commit is contained in:
commit
ba21f96f19
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,7 +1,9 @@
|
|||||||
# Include your project-specific ignores in this file
|
# Include your project-specific ignores in this file
|
||||||
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
|
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
|
||||||
|
|
||||||
|
/.sass
|
||||||
|
/source/documentation
|
||||||
|
/data/version.yml
|
||||||
|
|
||||||
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
||||||
#
|
#
|
||||||
|
3
Gemfile
3
Gemfile
@ -1,6 +1,7 @@
|
|||||||
source "http://rubygems.org"
|
source "http://rubygems.org"
|
||||||
|
|
||||||
gem "builder"
|
gem "builder"
|
||||||
|
gem "rake"
|
||||||
#gem "kss"
|
#gem "kss"
|
||||||
|
|
||||||
gem "middleman", "~>3.1.5"
|
gem "middleman", "~>3.1.5"
|
||||||
@ -11,7 +12,7 @@ gem "middleman-syntax"
|
|||||||
gem "redcarpet"
|
gem "redcarpet"
|
||||||
gem "susy", "2.0.0.alpha.4"
|
gem "susy", "2.0.0.alpha.4"
|
||||||
gem "breakpoint"
|
gem "breakpoint"
|
||||||
#gem "typogruby"
|
gem "typogruby"
|
||||||
gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw]
|
gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw]
|
||||||
platforms :mri_18 do
|
platforms :mri_18 do
|
||||||
gem "ruby18_source_location"
|
gem "ruby18_source_location"
|
||||||
|
@ -83,6 +83,7 @@ GEM
|
|||||||
rack
|
rack
|
||||||
rack-test (0.6.2)
|
rack-test (0.6.2)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
|
rake (10.1.0)
|
||||||
rb-fsevent (0.9.3)
|
rb-fsevent (0.9.3)
|
||||||
rb-inotify (0.9.2)
|
rb-inotify (0.9.2)
|
||||||
ffi (>= 0.5.0)
|
ffi (>= 0.5.0)
|
||||||
@ -92,6 +93,7 @@ GEM
|
|||||||
rouge (0.3.10)
|
rouge (0.3.10)
|
||||||
thor
|
thor
|
||||||
ruby18_source_location (0.2)
|
ruby18_source_location (0.2)
|
||||||
|
rubypants (0.2.0)
|
||||||
sass (3.2.12)
|
sass (3.2.12)
|
||||||
sprockets (2.10.0)
|
sprockets (2.10.0)
|
||||||
hike (~> 1.2)
|
hike (~> 1.2)
|
||||||
@ -109,6 +111,8 @@ GEM
|
|||||||
sass (>= 3.2.0)
|
sass (>= 3.2.0)
|
||||||
thor (0.18.1)
|
thor (0.18.1)
|
||||||
tilt (1.3.7)
|
tilt (1.3.7)
|
||||||
|
typogruby (1.0.16)
|
||||||
|
rubypants
|
||||||
uglifier (2.1.2)
|
uglifier (2.1.2)
|
||||||
execjs (>= 0.3.0)
|
execjs (>= 0.3.0)
|
||||||
multi_json (~> 1.0, >= 1.0.2)
|
multi_json (~> 1.0, >= 1.0.2)
|
||||||
@ -123,7 +127,9 @@ DEPENDENCIES
|
|||||||
middleman-favicon-maker
|
middleman-favicon-maker
|
||||||
middleman-livereload
|
middleman-livereload
|
||||||
middleman-syntax
|
middleman-syntax
|
||||||
|
rake
|
||||||
redcarpet
|
redcarpet
|
||||||
ruby18_source_location
|
ruby18_source_location
|
||||||
susy (= 2.0.0.alpha.4)
|
susy (= 2.0.0.alpha.4)
|
||||||
|
typogruby
|
||||||
wdm (~> 0.1.0)
|
wdm (~> 0.1.0)
|
||||||
|
52
Rakefile
Normal file
52
Rakefile
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
def bundle(cmd)
|
||||||
|
old_bundle_gemfile = ENV["BUNDLE_GEMFILE"]
|
||||||
|
ENV.delete("BUNDLE_GEMFILE")
|
||||||
|
sh %{bundle #{cmd}}
|
||||||
|
ensure
|
||||||
|
ENV["BUNDLE_GEMFILE"]
|
||||||
|
end
|
||||||
|
|
||||||
|
task :sass do
|
||||||
|
unless Dir.exists?(".sass")
|
||||||
|
sh %{git clone git://github.com/nex3/sass .sass}
|
||||||
|
end
|
||||||
|
|
||||||
|
Dir.chdir(".sass") do
|
||||||
|
sh %{rm -f Gemfile}
|
||||||
|
sh %{git fetch}
|
||||||
|
sh %{git checkout origin/stable}
|
||||||
|
# Check out the most recent released stable version
|
||||||
|
sh %{git checkout #{File.read("VERSION").strip}}
|
||||||
|
|
||||||
|
# Stable doesn't have a Gemfile, but it needs one to avoid using
|
||||||
|
# this package's Gemfile. This should be removed when 3.3 is
|
||||||
|
# released.
|
||||||
|
File.open('Gemfile', 'w') do |f|
|
||||||
|
f.puts <<GEMFILE
|
||||||
|
source "https://rubygems.org"
|
||||||
|
gemspec
|
||||||
|
gem 'rake'
|
||||||
|
GEMFILE
|
||||||
|
end
|
||||||
|
|
||||||
|
bundle 'install'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
task :sass_version => :sass do
|
||||||
|
require 'yaml'
|
||||||
|
version = File.read(".sass/VERSION").strip
|
||||||
|
name = File.read(".sass/VERSION_NAME").strip
|
||||||
|
File.open('data/version.yml', 'w') {|f| f.write(YAML.dump({'number' => version, 'name' => name}))}
|
||||||
|
end
|
||||||
|
|
||||||
|
task :sass_docs => :sass do
|
||||||
|
Dir.chdir(".sass") {bundle %{exec rake doc}}
|
||||||
|
sh %{rm -rf source/documentation}
|
||||||
|
sh %{cp -r .sass/doc source/documentation}
|
||||||
|
sh %{find source/documentation -name '*.html' } +
|
||||||
|
%{-exec sed 's/css\\/common\\.css/..\\/assets\\/stylesheets\\/docs.css/g' -i {} \\;}
|
||||||
|
end
|
||||||
|
|
||||||
|
desc "Import information from Sass."
|
||||||
|
task :import_sass => [:sass_version, :sass_docs]
|
@ -1,5 +1,7 @@
|
|||||||
require "builder"
|
require "builder"
|
||||||
require 'susy'
|
require 'susy'
|
||||||
|
require 'breakpoint'
|
||||||
|
require 'middleman-syntax'
|
||||||
# TODO: Make this work
|
# TODO: Make this work
|
||||||
# require "kss"
|
# require "kss"
|
||||||
# require 'typogruby'
|
# require 'typogruby'
|
||||||
@ -58,6 +60,7 @@ with_layout :styleguide do
|
|||||||
#@styleguide = Kss::Parser.new('source/css')
|
#@styleguide = Kss::Parser.new('source/css')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
page "/documentation/*", :directory_index => false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
number: 3.2.12
|
|
||||||
name: Media Mark
|
|
||||||
notes: ~
|
|
7
source/assets/stylesheets/docs.css.scss
Normal file
7
source/assets/stylesheets/docs.css.scss
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/*! Sass
|
||||||
|
* by Team Sass Design (@teamsassdesign)
|
||||||
|
*/
|
||||||
|
|
||||||
|
.maruku_toc {
|
||||||
|
display: none;
|
||||||
|
}
|
@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
title: Documentation
|
|
||||||
---
|
|
||||||
|
|
||||||
%p= link_to "Yardocs will go here.", "http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- content_for (:complementary) do
|
|
||||||
%h3 Elsewhere
|
|
||||||
%ul
|
|
||||||
%li= link_to "Better Sass Docs", "http://www.kaelig.fr/bettersassdocs/"
|
|
@ -25,7 +25,10 @@
|
|||||||
.alert.release
|
.alert.release
|
||||||
.container
|
.container
|
||||||
%ul
|
%ul
|
||||||
|
- if data.respond_to?(:version)
|
||||||
%li Current Release: <span class="release-name">#{data.version.name} (#{data.version.number})</span>
|
%li Current Release: <span class="release-name">#{data.version.name} (#{data.version.number})</span>
|
||||||
|
- else
|
||||||
|
%li Current Release: <span class="release-name">???</span>
|
||||||
%li=link_to "Release Notes", "http://sass-lang.com/docs/yardoc/file.SASS_CHANGELOG.html"
|
%li=link_to "Release Notes", "http://sass-lang.com/docs/yardoc/file.SASS_CHANGELOG.html"
|
||||||
%li=link_to "Fork on Github", "https://github.com/nex3/sass"
|
%li=link_to "Fork on Github", "https://github.com/nex3/sass"
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
:markdown
|
:markdown
|
||||||
* [Install](/install)
|
* [Install](/install)
|
||||||
* [Learn Sass](/guide)
|
* [Learn Sass](/guide)
|
||||||
* [Documentation](/documentation)
|
* [Documentation](/documentation/file.SASS_REFERENCE.html)
|
||||||
* [Get Involved](/community)
|
* [Get Involved](/community)
|
||||||
|
|
||||||
.banner-toggle
|
.banner-toggle
|
||||||
|
Loading…
Reference in New Issue
Block a user