Permalink
Browse files

organize assets for less.github.io so that the grunt build manages ev…

…erything.
  • Loading branch information...
1 parent a075771 commit ed80c4a8d45bab1688ad42545eeace02d1bc6867 @jonschlinkert jonschlinkert committed Mar 2, 2014
View
@@ -41,7 +41,7 @@ module.exports = function(grunt) {
options: {
flatten: true,
production: false,
- assets: '<%= site.assets %>',
+ assets: '<%= site.dest %>/public',
// Metadata
pkg: '<%= pkg %>',
@@ -113,17 +113,28 @@ module.exports = function(grunt) {
paths: ['styles/bootstrap', 'styles/components']
},
site: {
- src: ['styles/site.less'],
- dest: '<%= assemble.options.assets %>/css/site.css'
+ src: ['styles/index.less'],
+ dest: '<%= assemble.options.assets %>/css/index.css'
}
},
// Copy source assets to _gh_pages
copy: {
assets: {
- src: ['assets/**'],
- dest: '<%= site.dest %>/'
- }
+ files: [
+ {expand: true, cwd: '<%= site.assets %>/public', src: ['**'], dest: '<%= site.dest %>/public/'},
+ {expand: true, cwd: '<%= site.assets %>/root', src: ['*'], dest: '<%= site.dest %>/', rename: function(dest, src) {
+ dest = dest + src.replace(/^_/, '');
+ return dest;
+ }}
+ ]
+ },
+ // root: {
+ // files: [
+ // {expand: true, flatten: true, cwd: '<%= site.assets %>', src: ['_.gitignore'], dest: '<%= site.dest %>/.gitignore'},
+ // {expand: true, flatten: true, cwd: '<%= site.assets %>', src: ['_CNAME'], dest: '<%= site.dest %>/CNAME'}
+ // ]
+ // }
},
clean: {
View
@@ -2,14 +2,16 @@
# BUILD CONFIG
# =============================================
-root: _gh_pages
+# Dest config
+root: _less.github.io
dest: <%= site.root %>
-assets: <%= site.dest %>/assets
-date: <%= new Date() %>
+# Source config
+assets: assets
# Data
data: data
+date: <%= new Date() %>
# Styles
styles: styles
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
View
@@ -0,0 +1,8 @@
+node_modules
+npm-debug.log
+
+tmp
+temp
+TODO.md
+
+*.sublime-*
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,22 @@
+Copyright (c) 2013 Alexis Sellier, Less.js, contributors.
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,17 @@
+# lesscss.org
+
+> Official website and documentation for LESS/Less.js
+
+
+### [Visit the website](http://lesscss.org)
+
+### [Visit Less.js](https://github.com/less/less.js)
+
+
+Please go to the [main branch](https://github.com/less/less-docs) for source files.
+
+## Contributing
+In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com).
+
+## Release History
+_(Nothing yet)_
View
@@ -0,0 +1 @@
+lesscss.org
View
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="utf-8"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+ <link type="application/atom+xml" href="http://lesscss.org/feed/" rel="self">
+ <link href="http://lesscss.org/atom.xml" rel="self">
+ <link href="http://lesscss.org/">
+ <title>Less.js</title>
+ <updated>Sun, 26 Jan 2014 00:00:00 +0000</updated>
+ <id>http://lesscss.org</id>
+ <author>
+ <name>Alexis Sellier</name>
+ <email>self@cloudhead.net</email>
+ </author>
+ <rights>Copyright (c) 2009-2014, Alexis Sellier. All rights reserved.</rights>
+
+
+ <entry>
+ <title>About</title>
+ <link href="http://lesscss.org/about/">
+ <updated>Sun, 26 Jan 2014 20:58:34 +0000</updated>
+ <id>http://lesscss.org/about</id>
+ <content type="html"></content>
+ </entry>
+
+
+ <entry>
+ <title>Blog</title>
+ <link href="http://lesscss.org/blog/">
+ <updated>Sun, 26 Jan 2014 20:58:34 +0000</updated>
+ <id>http://lesscss.org/blog</id>
+ <content type="html"></content>
+ </entry>
+
+
+ <entry>
+ <title>Cheatsheet</title>
+ <link href="http://lesscss.org/cheatsheet/">
+ <updated>Sun, 26 Jan 2014 20:58:34 +0000</updated>
+ <id>http://lesscss.org/cheatsheet</id>
+ <content type="html"></content>
+ </entry>
+
+
+ <entry>
+ <title>Language Features</title>
+ <link href="http://lesscss.org/features/">
+ <updated>Sun, 26 Jan 2014 20:58:34 +0000</updated>
+ <id>http://lesscss.org/features</id>
+ <content type="html"></content>
+ </entry>
+
+
+ <entry>
+ <title>Functions</title>
+ <link href="http://lesscss.org/functions/">
+ <updated>Sun, 26 Jan 2014 20:58:34 +0000</updated>
+ <id>http://lesscss.org/functions</id>
+ <content type="html"></content>
+ </entry>
+
+
+ <entry>
+ <title>Getting started</title>
+ <link href="http://lesscss.org/index/">
+ <updated>Sun, 26 Jan 2014 20:58:34 +0000</updated>
+ <id>http://lesscss.org/index</id>
+ <content type="html"></content>
+ </entry>
+
+
+ <entry>
+ <title>Plugins</title>
+ <link href="http://lesscss.org/plugins/">
+ <updated>Sun, 26 Jan 2014 20:58:34 +0000</updated>
+ <id>http://lesscss.org/plugins</id>
+ <content type="html"></content>
+ </entry>
+
+
+ <entry>
+ <title>Usage</title>
+ <link href="http://lesscss.org/usage/">
+ <updated>Sun, 26 Jan 2014 20:58:34 +0000</updated>
+ <id>http://lesscss.org/usage</id>
+ <content type="html"></content>
+ </entry>
+
+</feed>
@@ -9,7 +9,7 @@
</title>
<!-- Main styles -->
-<link href="{{ assets }}/css/site.css" rel="stylesheet">
+<link href="{{ assets }}/css/index.css" rel="stylesheet">
<!-- Webfonts -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300|Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'>
@@ -21,4 +21,4 @@
<![endif]-->
<!-- Favicons -->
-<link rel="shortcut icon" href="{{ assets }}/favicon.ico">
+<link rel="shortcut icon" href="{{ assets }}/ico/favicon.ico">

0 comments on commit ed80c4a

Please sign in to comment.