1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

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
This commit is contained in:
Mike Linksvayer 2016-04-26 12:22:15 -07:00
parent 79f893e4a8
commit 213c5400bc
5 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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.

View File

@ -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.

View File

@ -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.