Permalink
Browse files

Pull Less.js version directly from Github

* Fix package.json template paths
* Update team list
* Add submodule info
  • Loading branch information...
1 parent c7cf32e commit 0fd6e84945ec73d625ba7ec9b95df31780e23235 Matthew Dean committed Mar 26, 2016
View
@@ -93,7 +93,7 @@ repo: <%= pkg.homepage %>
issues: <%= pkg.bugs.url %>?&state=open
download:
source: <%= pkg.homepage %>/archive/master.zip
- latest: https://raw.github.com/less/less.js/master/dist/less-<%= less.version %>.min.js
+ latest: https://raw.github.com/less/less.js/master/dist/less.js
cdn:
cloudflare: //cdnjs.cloudflare.com/ajax/libs/less.js/
View
@@ -17,6 +17,13 @@ module.exports = function(grunt) {
site: grunt.file.readYAML('.assemblerc.yml'),
_less: grunt.file.readJSON('data/less.json'),
+ download: {
+ package: {
+ src: 'https://raw.githubusercontent.com/less/less.js/master/package.json',
+ dest: 'data/less.json'
+ }
+ },
+
jshint: {
options: {
jshintrc: '.jshintrc'
@@ -189,10 +196,12 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-prettify');
grunt.loadNpmTasks('grunt-repos');
grunt.loadNpmTasks('grunt-sync-pkg');
+ grunt.loadNpmTasks('grunt-http-download');
grunt.registerTask('update', ['repos', 'default']);
grunt.registerTask('design', [
'clean',
+ 'download',
'copy',
'less:site',
'assemble:site',
@@ -204,6 +213,7 @@ module.exports = function(grunt) {
grunt.registerTask('default', [
'jshint',
'clean',
+ 'download',
'copy',
'less:site',
'assemble:site'
@@ -1,6 +1,6 @@
> "if"'s around selectors
-Released [v1.5.0]({{ less.master }}CHANGELOG.md)
+Released [v1.5.0]({{ less.master.url }}CHANGELOG.md)
Guards can also be applied to css selectors, which is syntactic sugar for declaring the mixin and then calling it immediately.
@@ -1,6 +1,6 @@
> Allow wrapping of a css block, defined in a mixin
-Released [v1.7.0]({{ less.master }}CHANGELOG.md)
+Released [v1.7.0]({{ less.master.url }}CHANGELOG.md)
A detached ruleset is a group of css properties, nested rulesets, media declarations or anything else stored in a variable. You can include it into a ruleset or another structure and all its properties are going to be copied there. You can also use it as a mixin argument and pass it around as any other variable.
@@ -1,6 +1,6 @@
> Extend is a Less pseudo-class which merges the selector it is put on with ones that match what it references.
-Released [v1.4.0]({{ less.master }}CHANGELOG.md)
+Released [v1.4.0]({{ less.master.url }}CHANGELOG.md)
```less
nav ul {
@@ -51,7 +51,7 @@ Example: `@import (optional, reference) "foo.less";`
## reference
> Use `@import (reference)` to import external files, but without adding the imported styles to the compiled output unless referenced.
-Released [v1.5.0]({{ less.master }}CHANGELOG.md)
+Released [v1.5.0]({{ less.master.url }}CHANGELOG.md)
Example: `@import (reference) "foo.less";`
@@ -76,7 +76,7 @@ And you will pull in only `.navbar` related styles from Bootstrap.
## inline
> Use `@import (inline)` to include external files, but not process them.
-Released [v1.5.0]({{ less.master }}CHANGELOG.md)
+Released [v1.5.0]({{ less.master.url }}CHANGELOG.md)
Example: `@import (inline) "not-less-compatible.css";`
@@ -88,7 +88,7 @@ So you can use this to include the file in the output so that all CSS will be in
## less
> Use `@import (less)` to treat imported files as Less, regardless of file extension.
-Released [v1.4.0]({{ less.master }}CHANGELOG.md)
+Released [v1.4.0]({{ less.master.url }}CHANGELOG.md)
Example:
@@ -100,7 +100,7 @@ Example:
## css
> Use `@import (css)` to treat imported files as regular CSS, regardless of file extension. This means the import statement will be left as it is.
-Released [v1.4.0]({{ less.master }}CHANGELOG.md)
+Released [v1.4.0]({{ less.master.url }}CHANGELOG.md)
Example:
@@ -117,7 +117,7 @@ outputs
## once
> The default behavior of `@import` statements. It means the file is imported only once and subsequent import statements for that file will be ignored.
-Released [v1.4.0]({{ less.master }}CHANGELOG.md)
+Released [v1.4.0]({{ less.master.url }}CHANGELOG.md)
This is the default behavior of `@import` statements.
@@ -132,7 +132,7 @@ Example:
## multiple
> Use `@import (multiple)` to allow importing of multiple files with the same name. This is the opposite behavior to once.
-Released [v1.4.0]({{ less.master }}CHANGELOG.md)
+Released [v1.4.0]({{ less.master.url }}CHANGELOG.md)
Example:
@@ -159,4 +159,4 @@ Outputs
## optional
> Use `@import (optional)` to allow importing of a file only when it exists. Without the `optional` keyword Less throws a FileError and stops compiling when importing a file that can not be found.
-Released [v2.3.0]({{ less.master }}CHANGELOG.md)
+Released [v2.3.0]({{ less.master.url }}CHANGELOG.md)
@@ -6,7 +6,7 @@ The `merge` feature allows for aggregating values from multiple properties into
> Append property value with comma
-Released [v1.5.0]({{ less.master }}CHANGELOG.md)
+Released [v1.5.0]({{ less.master.url }}CHANGELOG.md)
Example:
@@ -31,7 +31,7 @@ Outputs
> Append property value with space
-Released [v1.7.0]({{ less.master }}CHANGELOG.md)
+Released [v1.7.0]({{ less.master.url }}CHANGELOG.md)
Example:
@@ -91,7 +91,7 @@ format-s-upper: "repetitions: 3 file: directory%2Ffile.less";
> Replaces a text within a string.
-Released [v1.7.0]({{ less.master }}CHANGELOG.md)
+Released [v1.7.0]({{ less.master.url }}CHANGELOG.md)
Parameters:
@@ -3,7 +3,7 @@
Get the latest Less.js source code by downloading it directly from GitHub.
-#### [Clone or Fork via GitHub]({{ less.repo }})
+#### [Clone or Fork via GitHub]({{ less.repository.url }})
Fork the project and send us a pull request!
@@ -2,7 +2,7 @@
title: Developing Less
---
-Thanks for thinking about contributing. Please read the [contributing instructions]({{ less.master }}CONTRIBUTING.md) carefully to avoid wasted work.
+Thanks for thinking about contributing. Please read the [contributing instructions]({{ less.master.url }}CONTRIBUTING.md) carefully to avoid wasted work.
## Install These Tools
@@ -6,7 +6,7 @@ Also see: [GUIs for Less.js](#guis-for-less)
## Editors and IDEs
-* [Crunch!](http://crunchapp.net/) (built-in support)
+* [Crunch 2!](https://getcrunch.co/) (built-in compiling, debugging, and searching across @imports)
* [Mindscape Web Workbench][web-workbench] (built-in support)
* [NetBeans][netbeans] (built-in [syntax highlighting][netbeans-sh])
* [TextMate](https://github.com/appden/less.tmbundle)
@@ -12,7 +12,8 @@ _This page focuses on GUI compilers. For command line usage and tools see [Comma
> The editor and compiler for awesome people.
-Crunch 2 is a cross-platform (Windows, Mac, and Linux) editor with integrated compiling. If you work with large Less projects, you should definitely try it out, as you only need the free version for Less files. Available at: [http://getcrunch.co/](http://getcrunch.co/).
+Crunch 2 is a cross-platform (Windows, Mac, and Linux) editor with integrated compiling. If you work with large Less projects, you should definitely try it out, as you only need the free version for Less files. Available at: [https://getcrunch.co/](http://getcrunch.co/).
+
![Crunch screenshot](http://getcrunch.co/wp-content/uploads/2015/10/crunch_retina2.jpg)
View
@@ -1,6 +1,6 @@
{
"name": "less",
- "version": "2.5.3",
+ "version": "2.6.1",
"description": "Leaner CSS",
"homepage": "http://lesscss.org",
"author": {
@@ -17,49 +17,52 @@
"type": "git",
"url": "https://github.com/less/less.js.git"
},
- "licenses": [
- {
- "type": "Apache v2",
- "url": "https://github.com/less/less.js/blob/master/LICENSE"
- }
- ],
+ "master": {
+ "url": "https://github.com/less/less.js/blob/master/"
+ },
+ "license": "Apache-2.0",
"bin": {
"lessc": "./bin/lessc"
},
- "main": "./lib/less/index",
+ "main": "index",
"directories": {
"test": "./test"
},
"jam": {
"main": "./dist/less.js"
},
+ "browser": "./dist/less.js",
"engines": {
- "node": ">=0.8.0"
+ "node": ">=0.10.0"
},
"scripts": {
"test": "grunt test"
},
"optionalDependencies": {
- "graceful-fs": "~3.0.2",
- "mime": "~1.2.11",
- "request": "~2.40.0",
- "mkdirp": "~0.5.0",
- "clean-css": "2.2.x",
- "source-map": "0.1.x"
+ "errno": "^0.1.1",
+ "graceful-fs": "^4.1.2",
+ "image-size": "~0.4.0",
+ "mime": "^1.2.11",
+ "mkdirp": "^0.5.0",
+ "promise": "^7.1.1",
+ "request": "^2.51.0",
+ "source-map": "^0.5.3"
},
"devDependencies": {
- "diff": "~1.0",
- "grunt": "~0.4.2",
- "grunt-contrib-clean": "~0.5.0",
- "grunt-contrib-concat": "~0.4.0",
- "grunt-contrib-connect": "~0.7.0",
- "grunt-contrib-jasmine": "~0.5.2",
- "grunt-contrib-jshint": "~0.10.0",
- "grunt-contrib-uglify": "~0.4.0",
- "grunt-shell": "~0.7.0",
- "http-server": "~0.6.1",
- "matchdep": "~0.3.0",
- "time-grunt": "~0.3.1"
+ "diff": "^2.2.1",
+ "grunt": "^0.4.5",
+ "grunt-contrib-clean": "^1.0.0",
+ "grunt-contrib-concat": "^1.0.0",
+ "grunt-contrib-connect": "^0.11.2",
+ "grunt-contrib-jasmine": "^1.0.0",
+ "grunt-contrib-jshint": "^1.0.0",
+ "grunt-contrib-uglify": "^0.11.0",
+ "grunt-jscs": "^2.7.0",
+ "grunt-shell": "^1.1.1",
+ "grunt-browserify": "~4.0.1",
+ "jit-grunt": "^0.9.1",
+ "time-grunt": "^1.0.0",
+ "grunt-saucelabs": "^8.3.2"
},
"keywords": [
"compile less",
@@ -85,11 +88,5 @@
"stylesheet",
"variables in css",
"css less"
- ],
- "repo": "https://github.com/less/less.js.git",
- "issues": "https://github.com/less/less.js/issues",
- "master": "https://github.com/less/less.js/blob/master/",
- "rawmaster": "https://raw.github.com/less/less.js/master/dist/",
- "rawcurrent": "https://raw.github.com/less/less.js/v",
- "sourcearchive": "https://github.com/less/less.js/archive/v"
+ ]
}
View
@@ -9,15 +9,9 @@ members:
follow: "http://ghbtns.com/github-btn.html?user=cloudhead&type=follow"
gravatar: "http://www.gravatar.com/avatar/a8a0061962c41735ca87789720da46c8"
- - name: Jon Schlinkert
- username: jonschlinkert
- contribution: "Language Design, Documentation, Community"
- follow: "http://ghbtns.com/github-btn.html?user=jonschlinkert&type=follow"
- gravatar: "http://www.gravatar.com/avatar/1bba28be5506009e85fb9dde1dd66535"
-
- name: Luke Page
username: lukeapage
- contribution: "Development, Language Design, Documentation, Releasing"
+ contribution: "Releasing, Development, Language Design, Documentation"
follow: "http://ghbtns.com/github-btn.html?user=lukeapage&type=follow"
gravatar: "http://www.gravatar.com/avatar/a80ab1a8297225d70baffc52adf6aefd"
@@ -35,7 +29,7 @@ members:
- name: Matthew Dean
username: matthew-dean
- contribution: "Language Design, Community"
+ contribution: "Project Management, Releasing, Development, Language Design, Community"
follow: "http://ghbtns.com/github-btn.html?user=matthew-dean&type=follow"
gravatar: "http://www.gravatar.com/avatar/09caa4a26a5e57031146b5e06b4d7a8c"
View
@@ -51,6 +51,7 @@
"grunt-contrib-copy": "^0.5.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-watch": "^0.6.1",
+ "grunt-http-download": "^0.1.0",
"grunt-prettify": "^0.3.5",
"grunt-repos": "^0.1.2",
"grunt-sync-pkg": "^0.1.2",
@@ -29,4 +29,12 @@
.docs-section + .docs-section {
padding-top: 40px;
-}
+}
+
+@media (max-width: 767px) {
+ .docs-content {
+ padding: 1px 20px;
+ }
+}
+
+
@@ -3,27 +3,4 @@
html {
font-size: 16px;
}
-@media (min-width: 48em) {
- html {
- font-size: 20px;
- }
-}
-
-
-// Add some extra padding for navbar
-body {
- font: @body-font;
- color: #5a5a5a;
- background: @body-bg;
- padding-top: @body-padding;
-}
-
-
- // About page. The `slug` property in YAML front
- // matter automatically sets the class on `body`
-.about {
- font-size: 16px;
-}
-
-
@@ -91,6 +91,8 @@
.sidebar.affix {
position: fixed; // Undo the static from mobile first approach
top: 45px;
+ bottom: 0;
+ overflow: auto;
}
.sidebar.affix-bottom {
position: absolute; // Undo the static from mobile first approach
Oops, something went wrong.

0 comments on commit 0fd6e84

Please sign in to comment.