livingstyleguide 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/lib/livingstyleguide/version.rb +1 -1
  3. data/stylesheets/_livingstyleguide.scss +26 -0
  4. data/stylesheets/livingstyleguide/_code.scss +8 -5
  5. data/stylesheets/livingstyleguide/_color-swatches.scss +8 -9
  6. data/stylesheets/livingstyleguide/_content.scss +11 -8
  7. data/stylesheets/livingstyleguide/_layout.scss +6 -2
  8. metadata +31 -161
  9. data/.gitignore +0 -19
  10. data/.travis.yml +0 -5
  11. data/CHANGELOG.md +0 -95
  12. data/Gemfile +0 -4
  13. data/MIT-LICENSE.md +0 -11
  14. data/README.md +0 -111
  15. data/Rakefile +0 -25
  16. data/livingstyleguide.gemspec +0 -33
  17. data/sache.json +0 -6
  18. data/test/example_test_helper.rb +0 -22
  19. data/test/fixtures/markdown/code-block-and-example.md +0 -8
  20. data/test/fixtures/markdown/code-with-highlight-block.md +0 -6
  21. data/test/fixtures/markdown/code-with-highlight.md +0 -4
  22. data/test/fixtures/markdown/code.md +0 -6
  23. data/test/fixtures/markdown/example-with-highlight.md +0 -5
  24. data/test/fixtures/markdown/example.md +0 -4
  25. data/test/fixtures/markdown/font-example.md +0 -4
  26. data/test/fixtures/markdown/full-width-example.md +0 -5
  27. data/test/fixtures/markdown/haml-example-with-highlight.md +0 -5
  28. data/test/fixtures/markdown/haml-example.md +0 -5
  29. data/test/fixtures/markdown/text.md +0 -15
  30. data/test/fixtures/markdown/variables.md +0 -4
  31. data/test/fixtures/standalone/config.rb +0 -0
  32. data/test/fixtures/standalone/modules/_buttons.md +0 -6
  33. data/test/fixtures/standalone/modules/_buttons.scss +0 -4
  34. data/test/fixtures/standalone/style.html.lsg +0 -0
  35. data/test/fixtures/standalone/style.scss +0 -5
  36. data/test/fixtures/standalone/styleguide-as-json.html.lsg +0 -9
  37. data/test/fixtures/standalone/styleguide-with-header-footer.html.lsg +0 -7
  38. data/test/fixtures/standalone/styleguide-with-javascript.html.lsg +0 -8
  39. data/test/fixtures/standalone/styleguide-with-sass.html.lsg +0 -6
  40. data/test/fixtures/standalone/styleguide-with-scss.html.lsg +0 -7
  41. data/test/fixtures/standalone/styleguide-with-style.html.lsg +0 -7
  42. data/test/fixtures/standalone/styleguide.html.lsg +0 -3
  43. data/test/fixtures/stylesheets/variables/_more-other-colors.sass +0 -2
  44. data/test/fixtures/stylesheets/variables/colors.scss +0 -2
  45. data/test/fixtures/stylesheets/variables/other-colors.sass +0 -2
  46. data/test/integration/command_line_test.rb +0 -12
  47. data/test/integration/markdown_test.rb +0 -136
  48. data/test/integration/sprockets_test.rb +0 -19
  49. data/test/integration/standalone_test.rb +0 -68
  50. data/test/integration/variables_test.rb +0 -33
  51. data/test/test_helper.rb +0 -28
  52. data/test/unit/code_block_test.rb +0 -53
  53. data/test/unit/example_test.rb +0 -142
  54. data/test/unit/filter_hooks_test.rb +0 -46
  55. data/test/unit/filters/add_wrapper_class_test.rb +0 -15
  56. data/test/unit/filters/coffee_script_test.rb +0 -19
  57. data/test/unit/filters/colors_test.rb +0 -65
  58. data/test/unit/filters/font_example_test.rb +0 -47
  59. data/test/unit/filters/full_width_test.rb +0 -16
  60. data/test/unit/filters/haml_test.rb +0 -20
  61. data/test/unit/filters/highlights_test.rb +0 -26
  62. data/test/unit/filters/javascript_test.rb +0 -18
  63. data/test/unit/sass_extensions_test.rb +0 -28
  64. data/website/.gitignore +0 -22
  65. data/website/Gemfile +0 -13
  66. data/website/README.md +0 -32
  67. data/website/config.rb +0 -37
  68. data/website/source/.htaccess +0 -144
  69. data/website/source/changelog.html.md +0 -95
  70. data/website/source/images/graphics-2x/example-project.png +0 -0
  71. data/website/source/images/graphics-2x/github.png +0 -0
  72. data/website/source/images/graphics-2x/hagenburger.png +0 -0
  73. data/website/source/images/graphics-2x/issues.png +0 -0
  74. data/website/source/images/graphics-2x/livingstyleguide.png +0 -0
  75. data/website/source/images/graphics-2x/made-in-berlin.png +0 -0
  76. data/website/source/images/graphics-2x/rubygems.png +0 -0
  77. data/website/source/images/graphics-2x/twitter.png +0 -0
  78. data/website/source/images/graphics/example-project.png +0 -0
  79. data/website/source/images/graphics/github.png +0 -0
  80. data/website/source/images/graphics/hagenburger.png +0 -0
  81. data/website/source/images/graphics/issues.png +0 -0
  82. data/website/source/images/graphics/livingstyleguide.png +0 -0
  83. data/website/source/images/graphics/made-in-berlin.png +0 -0
  84. data/website/source/images/graphics/rubygems.png +0 -0
  85. data/website/source/images/graphics/twitter.png +0 -0
  86. data/website/source/index.html.haml +0 -49
  87. data/website/source/layouts/markdown.html.haml +0 -40
  88. data/website/source/style/components/_markdown.md +0 -23
  89. data/website/source/style/components/_markdown.sass +0 -52
  90. data/website/source/style/styles.sass +0 -286
  91. data/website/source/styleguide.html.lsg +0 -11
data/website/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- # See http://help.github.com/ignore-files/ for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile ~/.gitignore_global
6
-
7
- # Ignore bundler config
8
- /.bundle
9
-
10
- # Ignore the build directory
11
- /build
12
-
13
- # Ignore Sass’ cache
14
- /.sass-cache
15
-
16
- # Ignore .DS_store file
17
- .DS_Store
18
-
19
- # Ignore Compass’ sprites
20
- /source/images/graphics-*.png
21
- /source/fonts/
22
-
data/website/Gemfile DELETED
@@ -1,13 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'compass', '1.0.0.alpha.19'
4
- gem "middleman", git: 'git@github.com:middleman/middleman.git', branch: 'v3-stable'
5
- gem 'middleman-livereload', '~> 3.1.0'
6
- gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw]
7
- gem 'compass-placeholders'
8
- gem 'livingstyleguide', path: '..'
9
-
10
- platforms :mri_18 do
11
- gem 'ruby18_source_location'
12
- end
13
-
data/website/README.md DELETED
@@ -1,32 +0,0 @@
1
- Website for The LivingStyleGuide Gem
2
- ======================================
3
-
4
- The source of the [website](http://livingstyleguide.org/) of [The LivingStyleGuide Gem](https://github.com/hagenburger/livingstyleguide).
5
-
6
-
7
- Setup
8
- -----
9
-
10
- git clone git@github.com:hagenburger/livingstyleguide-website.git
11
- cd livingstyleguide-website
12
- bundle
13
-
14
-
15
- Development
16
- -----------
17
-
18
- cd livingstyleguide-website
19
- middleman
20
- open http://localhost:4567/
21
-
22
- Now you can open the style guide at <http://localhost:4567/>.
23
-
24
-
25
- Credits
26
- -------
27
-
28
- Designed and developed by:
29
- [Nico Hagenburger](https://github.com/hagenburger)
30
- [hagenburger.net](http://hagenburger.net)
31
- @[hagenburger](https://twitter.com/hagenburger)
32
-
data/website/config.rb DELETED
@@ -1,37 +0,0 @@
1
- require 'compass-placeholders'
2
-
3
- activate :livereload
4
-
5
- page '/', layout: false
6
- page '/changelog.html', layout: :markdown
7
-
8
- set :css_dir, 'style'
9
- set :js_dir, 'javascripts'
10
- set :images_dir, 'images'
11
-
12
- set :haml, { attr_wrapper: '"', format: :html5 }
13
-
14
- configure :build do
15
- activate :minify_css
16
- activate :minify_javascript
17
- activate :asset_hash
18
- activate :relative_assets
19
- end
20
-
21
- require 'fileutils'
22
- Dir.glob 'source/images/graphics/*@2x.png' do |file|
23
- new_file = file.sub('graphics', 'graphics-2x').sub('@2x', '')
24
- FileUtils.mv file, new_file
25
- end
26
-
27
- helpers do
28
- def livingstyleguide_gem_version
29
- # Prefer `git tag` over version.rb as tags are released:
30
- versions = `git tag`.split(/\n/)
31
- current = versions.last
32
- current.sub(/^v/, '')
33
- rescue
34
- '0.0.0'
35
- end
36
- end
37
-
@@ -1,144 +0,0 @@
1
- # Use UTF-8 encoding for anything served as `text/html` or `text/plain`.
2
-
3
- AddDefaultCharset utf-8
4
-
5
-
6
- # Set default domain
7
-
8
- <IfModule mod_rewrite.c>
9
- RewriteEngine On
10
- RewriteCond %{HTTP_HOST} !=localhost [NC]
11
- RewriteCond %{HTTP_HOST} !=127.0.0.1
12
- RewriteCond %{HTTP_HOST} !^livingstyleguide\.org$ [NC]
13
- RewriteRule ^(.*)$ http://livingstyleguide.org/$1 [R=301,L]
14
- </IfModule>
15
-
16
-
17
- # Force UTF-8 for certain file formats.
18
-
19
- <IfModule mod_mime.c>
20
- AddCharset utf-8 .atom .css .js .json .rss .vtt .webapp .xml
21
- </IfModule>
22
-
23
-
24
- # Block access to directories without a default document.
25
-
26
- <IfModule mod_autoindex.c>
27
- Options -Indexes
28
- </IfModule>
29
-
30
-
31
- # Block access to hidden files and directories.
32
-
33
- <IfModule mod_rewrite.c>
34
- RewriteCond %{SCRIPT_FILENAME} -d [OR]
35
- RewriteCond %{SCRIPT_FILENAME} -f
36
- RewriteRule "(^|/)\." - [F]
37
- </IfModule>
38
-
39
-
40
- # Compression
41
-
42
- <IfModule mod_deflate.c>
43
-
44
- # Force compression for mangled headers.
45
- # http://developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping
46
-
47
- <IfModule mod_setenvif.c>
48
- <IfModule mod_headers.c>
49
- SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
50
- RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
51
- </IfModule>
52
- </IfModule>
53
-
54
-
55
- # Compress all output labeled with one of the following MIME-types
56
- # (for Apache versions below 2.3.7, you don't need to enable `mod_filter`
57
- # and can remove the `<IfModule mod_filter.c>` and `</IfModule>` lines
58
- # as `AddOutputFilterByType` is still in the core directives).
59
-
60
- <IfModule mod_filter.c>
61
- AddOutputFilterByType DEFLATE application/atom+xml \
62
- application/javascript \
63
- application/json \
64
- application/rss+xml \
65
- application/vnd.ms-fontobject \
66
- application/x-font-ttf \
67
- application/x-web-app-manifest+json \
68
- application/xhtml+xml \
69
- application/xml \
70
- font/opentype \
71
- image/svg+xml \
72
- image/x-icon \
73
- text/css \
74
- text/html \
75
- text/plain \
76
- text/x-component \
77
- text/xml
78
- </IfModule>
79
-
80
- </IfModule>
81
-
82
-
83
- # ETag removal (for expires)
84
-
85
- <IfModule mod_headers.c>
86
- Header unset ETag
87
- </IfModule>
88
-
89
- FileETag None
90
-
91
-
92
- # Expires headers (for better cache control)
93
-
94
- <IfModule mod_expires.c>
95
-
96
- ExpiresActive on
97
- ExpiresDefault "access plus 1 month"
98
-
99
- # CSS
100
- ExpiresByType text/css "access plus 1 year"
101
-
102
- # Data interchange
103
- ExpiresByType application/json "access plus 0 seconds"
104
- ExpiresByType application/xml "access plus 0 seconds"
105
- ExpiresByType text/xml "access plus 0 seconds"
106
-
107
- # Favicon (cannot be renamed!)
108
- ExpiresByType image/x-icon "access plus 1 week"
109
-
110
- # HTML components (HTCs)
111
- ExpiresByType text/x-component "access plus 1 month"
112
-
113
- # HTML
114
- ExpiresByType text/html "access plus 10 minutes"
115
-
116
- # JavaScript
117
- ExpiresByType application/javascript "access plus 1 year"
118
-
119
- # Manifest files
120
- ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
121
- ExpiresByType text/cache-manifest "access plus 0 seconds"
122
-
123
- # Media
124
- ExpiresByType audio/ogg "access plus 1 month"
125
- ExpiresByType image/gif "access plus 1 month"
126
- ExpiresByType image/jpeg "access plus 1 month"
127
- ExpiresByType image/png "access plus 1 month"
128
- ExpiresByType video/mp4 "access plus 1 month"
129
- ExpiresByType video/ogg "access plus 1 month"
130
- ExpiresByType video/webm "access plus 1 month"
131
-
132
- # Web feeds
133
- ExpiresByType application/atom+xml "access plus 1 hour"
134
- ExpiresByType application/rss+xml "access plus 1 hour"
135
-
136
- # Web fonts
137
- ExpiresByType application/font-woff "access plus 1 month"
138
- ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
139
- ExpiresByType application/x-font-ttf "access plus 1 month"
140
- ExpiresByType font/opentype "access plus 1 month"
141
- ExpiresByType image/svg+xml "access plus 1 month"
142
-
143
- </IfModule>
144
-
@@ -1,95 +0,0 @@
1
- # Changelog
2
-
3
- ## 1.0.2
4
-
5
- * Fixed an issue where the command line interface used the input
6
- filename as the output filename
7
- * Fixed an error causes by Compass’ `brightness()` function in 1.0.0
8
- alpha versions
9
- * Fixed asset URL handling with Middleman and Sprockets
10
- * **Internal:**
11
- * Integrated the website into the repository
12
- * Added the
13
- [changelog](http://livingstyleguide.org/changelog.html) to the website
14
- * Automated website deployment after a new version of the gem is
15
- released
16
-
17
-
18
- ## 1.0.1
19
-
20
- * Fixed dependencies for broken gems
21
-
22
-
23
- ## 1.0.0
24
-
25
- * New design and API for colors
26
- * [Show anchors naxt to headlines](https://github.com/hagenburger/livingstyleguide/issues/23)
27
- * [JSON for config files](https://github.com/hagenburger/livingstyleguide/issues/37)
28
- * Updated styling of the style guide
29
-
30
-
31
- ## 1.0.0.alpha.3
32
-
33
- * [Cache control for Sprockets](https://github.com/hagenburger/livingstyleguide/issues/25)
34
- * API to provide [filters in examples](https://github.com/hagenburger/livingstyleguide/issues/22)
35
- * Dropped `haml-example`, `layout-example`, `javascript-example` and `haml-layout-example`;
36
- moved into [filters](https://github.com/hagenburger/livingstyleguide/issues/28)
37
- * [A set of pre-defined filters](https://github.com/hagenburger/livingstyleguide/tree/master/lib/livingstyleguide/filters)
38
- * [Default filters](https://github.com/hagenburger/livingstyleguide/issues/31) (e. g. all templates should use Haml)
39
- * [CoffeeScript examples](https://github.com/hagenburger/livingstyleguide/issues/34)
40
-
41
-
42
- ## 0.6.0.alpha.2
43
-
44
- * Better support for load paths in Rails
45
- * Fix for colors
46
- * New YAML based configuration
47
- ([see this gist](https://gist.github.com/hagenburger/7945859#file-styleguide-1-html-lsg))
48
- * Option to set the HTML title
49
- * Custom footer and header HTML
50
- ([example](https://github.com/hagenburger/livingstyleguide/blob/master/test/fixtures/standalone/styleguide-with-header-footer.html.lsg))
51
- * Linking of JavaScript files (like jQuery, application.js, …) into the
52
- style guide
53
- ([example](https://github.com/hagenburger/livingstyleguide/blob/master/test/fixtures/standalone/styleguide-with-javascript.html.lsg))
54
- * Custom styles can be set within YAML configuration
55
- ([example](https://github.com/hagenburger/livingstyleguide/blob/master/test/fixtures/standalone/styleguide-with-style.html.lsg))
56
-
57
-
58
- ## 0.6.0.alpha.1
59
-
60
- * Added Rails support
61
- * Removed globbing
62
- * Set .html.lsg as default file extension
63
-
64
-
65
- ## 0.6.0.alpha.0
66
-
67
- * Implemented command line interface
68
-
69
-
70
- ## 0.5.2
71
-
72
- * More stable CSS
73
-
74
-
75
- ## 0.5.1
76
-
77
- * Fixed highlighting in Haml code examples
78
- * Use the Haml syntax highlighter
79
-
80
-
81
- ## 0.5.0
82
-
83
- * Added support for Haml code in examples (`haml-example`,
84
- `haml-layout-example`)
85
-
86
-
87
- ## 0.4.2
88
-
89
- * Added `display` properties to avoid conflicts with resets
90
-
91
-
92
- ## 0.4.1
93
-
94
- * Added anchors (ids) to headlines
95
-
@@ -1,49 +0,0 @@
1
- ---
2
- title: LivingStyleGuide Gem—easily create front-end style guides
3
- layout: false
4
- ---
5
-
6
- !!!html5
7
- %html
8
- %head
9
- %meta(charset="utf-8")
10
- %meta(http-equiv="X-UA-Compatible" content="IE=edge")
11
- %meta(name="description" content="The LivingStyleGuide is a Ruby Gem to easily create front-end style guides with markdown while working with Sass/SCSS and Compass.")
12
- %meta(name="viewport" content="width=device-width, initial-scale=1")
13
- %meta(name="author" content="Nico Hagenburger")
14
- %title= data.page.title
15
- %link(href="#{asset_path(:css, 'styles')}" rel="stylesheet")
16
- %script(src="//use.typekit.net/nbn2flh.js")
17
- %script try{Typekit.load();}catch(e){}
18
- %body.layout
19
- %header.header
20
- .header--logo
21
- %h2.header--slogan The easiest way to create front-end style guides with Sass and Compass
22
- %span.header--version
23
- = livingstyleguide_gem_version
24
- %code.installation
25
- gem install livingstyleguide
26
- .links
27
- %a.links--item.-rubygems-org(href="https://rubygems.org/gems/livingstyleguide") RubyGems.org
28
- %a.links--item.-github(href="https://github.com/hagenburger/livingstyleguide") Fork me on Github
29
- %a.links--item.-issues(href="https://github.com/hagenburger/livingstyleguide/issues") Open issues
30
- %a.links--item.-twitter(href="https://twitter.com/hagenburger") Follow for Updates
31
- %a.links--item.-example-project(href="https://github.com/hagenburger/livingstyleguide-example") Example Projects
32
- %footer.footer
33
- %a.footer--made-in-berlin(href="http://www.hagenburger.net/BLOG/Made-in-Berlin.html") Made in Berlin
34
- %a.footer--made-by-hagenburger(href="http://www.hagenburger.net") Nico Hagenburger
35
- %a.footer--contact(href="http://www.hagenburger.net/CONTACT.html") Contact
36
- %script
37
- :plain
38
- var _paq = _paq || [];
39
- _paq.push(["trackPageView"]);
40
- _paq.push(["enableLinkTracking"]);
41
-
42
- (function() {
43
- var u=(("https:" == document.location.protocol) ? "https" : "http") + "://nh.fornax.uberspace.de/piwik/";
44
- _paq.push(["setTrackerUrl", u+"piwik.php"]);
45
- _paq.push(["setSiteId", "2"]);
46
- var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
47
- g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
48
- })();
49
-
@@ -1,40 +0,0 @@
1
- !!!html5
2
- %html
3
- %head
4
- %meta(charset="utf-8")
5
- %meta(http-equiv="X-UA-Compatible" content="IE=edge")
6
- %meta(name="description" content="The LivingStyleGuide is a Ruby Gem to easily create front-end style guides with markdown while working with Sass/SCSS and Compass.")
7
- %meta(name="viewport" content="width=device-width, initial-scale=1")
8
- %meta(name="author" content="Nico Hagenburger")
9
- %title= data.page.title
10
- %link(href="#{asset_path(:css, 'styles')}" rel="stylesheet")
11
- %script(src="//use.typekit.net/nbn2flh.js")
12
- %script try{Typekit.load();}catch(e){}
13
- %body.layout
14
- %header.header
15
- .header--logo
16
- %h2.header--slogan The easiest way to create front-end style guides with Sass and Compass
17
- %span.header--version
18
- = livingstyleguide_gem_version
19
- .layout--container
20
- %article.markdown
21
- = yield
22
- %footer.footer
23
- %a.footer--made-in-berlin(href="http://www.hagenburger.net/BLOG/Made-in-Berlin.html") Made in Berlin
24
- %a.footer--made-by-hagenburger(href="http://www.hagenburger.net") Nico Hagenburger
25
- %a.footer--contact(href="http://www.hagenburger.net/CONTACT.html") Contact
26
- %script
27
- :plain
28
- var _paq = _paq || [];
29
- _paq.push(["trackPageView"]);
30
- _paq.push(["enableLinkTracking"]);
31
-
32
- (function() {
33
- var u=(("https:" == document.location.protocol) ? "https" : "http") + "://nh.fornax.uberspace.de/piwik/";
34
- _paq.push(["setTrackerUrl", u+"piwik.php"]);
35
- _paq.push(["setSiteId", "2"]);
36
- var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
37
- g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
38
- })();
39
-
40
-