1
0
mirror of https://github.com/github/choosealicense.com synced 2024-07-03 08:59:12 +02:00

Merge pull request #421 from github/package-metadata

License identifiers and package descriptions hint
This commit is contained in:
Mike Linksvayer 2016-06-02 13:55:17 -07:00 committed by GitHub
commit 3b8047917e
2 changed files with 8 additions and 0 deletions

View File

@ -12,7 +12,11 @@
<strong>Note: </strong> {{ page.note | markdownify | remove: '<p>' | remove: '</p>' }}
</p>
{% endif %}
{% assign xgpl = false %}
{% if page.spdx-id contains 'GPL' %}{% assign xgpl = true %}{% endif %}
<p class="note"><strong>Optional: </strong> Add <strong><code>{{ page.spdx-id }}</code>{% if xgpl %}+{% endif %}</strong>{% if xgpl %} (or <strong><code>{{ page.spdx-id }}</code></strong> to disallow future versions){% endif %} to your project's package description, if applicable (e.g., <a href="https://docs.npmjs.com/files/package.json#license">Node.js</a>, <a href="http://guides.rubygems.org/specification-reference/#license=">Ruby</a>, and <a href="http://doc.crates.io/manifest.html#package-metadata">Rust</a>). This will ensure the license is displayed in package directories.</p>
</div>
{% if page.source %}
<div class="source">
<a href="{{ page.source }}">

View File

@ -286,6 +286,10 @@ strong {
width: 100%;
}
.note {
color: #687072;
}
.button {
-webkit-border-radius: 3px;
-moz-border-radius: 3px;