From 213c5400bc0774b452f8476b4a0532b8dc2a5856 Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Tue, 26 Apr 2016 12:22:15 -0700 Subject: [PATCH] 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.