From 57a1b0799760aeb3f1057d7ef50ec27e7b9e5018 Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Fri, 22 Apr 2016 11:35:31 -0700 Subject: [PATCH 01/12] rm symlinks, maybe fix #383 (Windows build) Not certain this is right thing to do, but https://jekyllrb.com/docs/assets/ says "Note that the sass_dir becomes the load path for Sass imports, nothing more" so setting it to `assets/vendor` and changing imports accordingly ought and seems to work without disturbing other files under `assets/vendor`, even though the docs continue "This folder should only contain imports." --- _config.yml | 2 +- _sass/jquery.qtip.scss | 1 - _sass/normalize.scss | 1 - assets/css/application.scss | 4 ++-- 4 files changed, 3 insertions(+), 5 deletions(-) delete mode 120000 _sass/jquery.qtip.scss delete mode 120000 _sass/normalize.scss diff --git a/_config.yml b/_config.yml index 19edbe1..83c7d2c 100644 --- a/_config.yml +++ b/_config.yml @@ -41,7 +41,7 @@ gems: - jekyll-coffeescript sass: - sass_dir: _sass + sass_dir: assets/vendor style: :compressed twitter: diff --git a/_sass/jquery.qtip.scss b/_sass/jquery.qtip.scss deleted file mode 120000 index a354cd5..0000000 --- a/_sass/jquery.qtip.scss +++ /dev/null @@ -1 +0,0 @@ -../assets/vendor/qtip2/jquery.qtip.css \ No newline at end of file diff --git a/_sass/normalize.scss b/_sass/normalize.scss deleted file mode 120000 index 8bd92d4..0000000 --- a/_sass/normalize.scss +++ /dev/null @@ -1 +0,0 @@ -../assets/vendor/normalize-css/normalize.css \ No newline at end of file diff --git a/assets/css/application.scss b/assets/css/application.scss index c65a15d..dc72f7c 100644 --- a/assets/css/application.scss +++ b/assets/css/application.scss @@ -1,8 +1,8 @@ --- --- -@import "normalize"; -@import "jquery.qtip"; +@import "normalize-css/normalize.css"; +@import "qtip2/jquery.qtip.css"; body { background: #fafafa; From 4a27230587d6270f595368a9ca067930abc66973 Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Fri, 22 Apr 2016 15:40:13 -0700 Subject: [PATCH 02/12] skip sass bundling of qtip and normalize --- _config.yml | 1 - assets/css/application.scss | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 83c7d2c..8da0521 100644 --- a/_config.yml +++ b/_config.yml @@ -41,7 +41,6 @@ gems: - jekyll-coffeescript sass: - sass_dir: assets/vendor style: :compressed twitter: diff --git a/assets/css/application.scss b/assets/css/application.scss index dc72f7c..bdd128a 100644 --- a/assets/css/application.scss +++ b/assets/css/application.scss @@ -1,8 +1,8 @@ --- --- -@import "normalize-css/normalize.css"; -@import "qtip2/jquery.qtip.css"; +@import "/assets/vendor/normalize-css/normalize.css"; +@import "/assets/vendor/qtip2/jquery.qtip.css"; body { background: #fafafa; From 6e6af9b7aad3b9fb38a456449db2a66cb7553a9d Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Sun, 24 Apr 2016 09:25:24 -0700 Subject: [PATCH 03/12] min version of qtip css --- assets/css/application.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/application.scss b/assets/css/application.scss index bdd128a..020ae91 100644 --- a/assets/css/application.scss +++ b/assets/css/application.scss @@ -2,7 +2,7 @@ --- @import "/assets/vendor/normalize-css/normalize.css"; -@import "/assets/vendor/qtip2/jquery.qtip.css"; +@import "/assets/vendor/qtip2/jquery.qtip.min.css"; body { background: #fafafa; From abef7e0bab2957c201ab2cbb41ba7b18fc49f2f4 Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Mon, 25 Apr 2016 15:08:39 -0700 Subject: [PATCH 04/12] state changes missing from 4 licenses which have condition also drop 'significant' from description, does not correspond to any license --- README.md | 2 +- _data/rules.yml | 2 +- _licenses/afl-3.0.txt | 1 + _licenses/lgpl-2.1.txt | 1 + _licenses/lgpl-3.0.txt | 1 + _licenses/osl-3.0.txt | 1 + 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 96fca86..8f96c63 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ The license properties (rules) are stored as a bulleted list within the licenses #### Conditions * `include-copyright` - Include a copy of the license and copyright notice with the code. -* `document-changes` - Indicate significant changes made to the code. +* `document-changes` - Indicate changes made to the code. * `disclose-source` - Source code must be made available when distributing the software. * `network-use-disclose` - Users who interact with the software via network are given the right to receive a copy of the corresponding source code. * `same-license` - Modifications must be released under the same license when distributing the software. In some cases a similar or related license may be used. diff --git a/_data/rules.yml b/_data/rules.yml index 0b56dff..1eee415 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -2,7 +2,7 @@ conditions: - description: Include a copy of the license and copyright notice with the code. label: License and Copyright Notice tag: include-copyright -- description: Indicate significant changes made to the code. +- description: Indicate changes made to the code. label: State Changes tag: document-changes - description: Source code must be made available when distributing the software. diff --git a/_licenses/afl-3.0.txt b/_licenses/afl-3.0.txt index a145e35..7332fa5 100644 --- a/_licenses/afl-3.0.txt +++ b/_licenses/afl-3.0.txt @@ -8,6 +8,7 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of conditions: - include-copyright + - document-changes permissions: - commercial-use diff --git a/_licenses/lgpl-2.1.txt b/_licenses/lgpl-2.1.txt index cdb428c..7056384 100644 --- a/_licenses/lgpl-2.1.txt +++ b/_licenses/lgpl-2.1.txt @@ -13,6 +13,7 @@ note: The Free Software Foundation recommends taking the additional step of addi conditions: - include-copyright - disclose-source + - document-changes - same-license permissions: diff --git a/_licenses/lgpl-3.0.txt b/_licenses/lgpl-3.0.txt index 13a7d45..e327788 100644 --- a/_licenses/lgpl-3.0.txt +++ b/_licenses/lgpl-3.0.txt @@ -13,6 +13,7 @@ note: The Free Software Foundation recommends taking the additional step of addi conditions: - include-copyright - disclose-source + - document-changes - same-license diff --git a/_licenses/osl-3.0.txt b/_licenses/osl-3.0.txt index 4e4adaa..f5110cd 100644 --- a/_licenses/osl-3.0.txt +++ b/_licenses/osl-3.0.txt @@ -16,6 +16,7 @@ using: conditions: - include-copyright - disclose-source + - document-changes - network-use-disclose - same-license From 213c5400bc0774b452f8476b4a0532b8dc2a5856 Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Tue, 26 Apr 2016 12:22:15 -0700 Subject: [PATCH 05/12] re-add 'featured' field was unused for choosealicense.com display after https://github.com/github/choosealicense.com/pull/386 but choosealicense.com is vendored into licensee which eventually is used in GitHub; 'featured' determines what is highlighted in license drop-down eg at https://github.com/new --- README.md | 1 + _data/meta.yml | 4 ++++ _licenses/apache-2.0.txt | 1 + _licenses/gpl-3.0.txt | 1 + _licenses/mit.txt | 1 + 5 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 8f96c63..7e11c16 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ Licenses sit in the `/_licenses` folder. Each license has YAML front matter desc #### Optional fields +* `featured` - Whether the license should be featured on the main page (defaults to false) * `note` - Additional information about the licenses * `using` - A list of notable projects using the license in the form of `project_name: "url"` * `redirect_from` - Relative path(s) to redirect to the license from, to prevent breaking old URLs diff --git a/_data/meta.yml b/_data/meta.yml index 41d0c5c..11b61f7 100644 --- a/_data/meta.yml +++ b/_data/meta.yml @@ -31,6 +31,10 @@ # Optional fields +- name: featured + description: Whether the license should be featured on the main page (defaults to false) + required: false + - name: note description: Additional information about the licenses required: false diff --git a/_licenses/apache-2.0.txt b/_licenses/apache-2.0.txt index 4fcc6b5..577ad81 100644 --- a/_licenses/apache-2.0.txt +++ b/_licenses/apache-2.0.txt @@ -2,6 +2,7 @@ title: Apache License 2.0 redirect_from: /licenses/apache/ source: http://www.apache.org/licenses/LICENSE-2.0.html +featured: true description: A permissive license that also provides an express grant of patent rights from contributors to users. diff --git a/_licenses/gpl-3.0.txt b/_licenses/gpl-3.0.txt index 82268b3..1b4c051 100644 --- a/_licenses/gpl-3.0.txt +++ b/_licenses/gpl-3.0.txt @@ -3,6 +3,7 @@ title: GNU General Public License v3.0 nickname: GNU GPLv3 redirect_from: /licenses/gpl-v3/ source: http://www.gnu.org/licenses/gpl-3.0.txt +featured: true description: The GNU GPL is the most widely used free software license and has a strong copyleft requirement. When distributing derived works, the source code of the work must be made available under the same license. diff --git a/_licenses/mit.txt b/_licenses/mit.txt index 262a4de..db38c0d 100644 --- a/_licenses/mit.txt +++ b/_licenses/mit.txt @@ -1,6 +1,7 @@ --- title: MIT License source: https://opensource.org/licenses/MIT +featured: true description: A permissive license that is short and to the point. It lets people do anything with your code with proper attribution and without warranty. From 78aac74fb22b5d81a8d28ffe0dc74b7f741245d1 Mon Sep 17 00:00:00 2001 From: git Date: Tue, 26 Apr 2016 16:43:40 -0700 Subject: [PATCH 06/12] Restructure individual license pages, added styles to improve alignment --- _includes/sidebar.html | 39 +----------------------------- _layouts/license.html | 48 ++++++++++++++++++++++++++++++++++++- assets/css/application.scss | 10 ++++++++ 3 files changed, 58 insertions(+), 39 deletions(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 07f8fb9..fc174ba 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -1,23 +1,7 @@