Browse Source

Merge pull request #373 from twbs/docs-min-css

Minify docs CSS
pull/381/head
XhmikosR 11 years ago
parent
commit
ca656623a5
  1. 18
      Gruntfile.js
  2. 6
      docs/_includes/header.html
  3. 9
      docs/assets/css/docs.min.css

18
Gruntfile.js

@ -80,15 +80,21 @@ module.exports = function(grunt) {
}, },
cssmin: { cssmin: {
minify: {
options: { options: {
banner: '', // set to empty ; see bellow banner: '', // set to empty ; see bellow
keepSpecialComments: '*', // set to '*' because we already add the banner in sass keepSpecialComments: '*', // set to '*' because we already add the banner in sass
report: 'min' report: 'min'
}, },
files: { ratchet: {
'dist/<%= pkg.name %>.min.css': 'dist/<%= pkg.name %>.css' src: '<%= meta.distPath %><%= pkg.name %>.css',
} dest: '<%= meta.distPath %><%= pkg.name %>.min.css'
},
docs: {
src: [
'<%= meta.docsAssetsPath %>css/docs.css',
'<%= meta.docsAssetsPath %>css/pygments-manni.css'
],
dest: '<%= meta.docsAssetsPath %>css/docs.min.css'
} }
}, },
@ -98,8 +104,8 @@ module.exports = function(grunt) {
report: 'min' report: 'min'
}, },
ratchet: { ratchet: {
src: 'dist/<%= pkg.name %>.js', src: '<%= meta.distPath %><%= pkg.name %>.js',
dest: 'dist/<%= pkg.name %>.min.js' dest: '<%= meta.distPath %><%= pkg.name %>.min.js'
} }
}, },

6
docs/_includes/header.html

@ -11,9 +11,9 @@
<!-- Roboto --> <!-- Roboto -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,500,700"> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,500,700">
<link rel="stylesheet" href="/dist/ratchet.css"> <link rel="stylesheet" href="/dist/ratchet.min.css">
<link rel="stylesheet" href="/assets/css/docs.css"> <link rel="stylesheet" href="/assets/css/docs.min.css">
<link rel="stylesheet" href="/assets/css/pygments.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]> <!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>

9
docs/assets/css/docs.min.css vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save