mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
take projects listed on homepage from license using property
This commit is contained in:
parent
9ec2de1a50
commit
ab3ee0061b
17
_includes/using-sentence.html
Normal file
17
_includes/using-sentence.html
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{% assign id = "/licenses/" | append: include.license-id %}
|
||||||
|
{% assign licenses = site.licenses | where:"id", id %}
|
||||||
|
{% for license in licenses %}
|
||||||
|
{% assign using = license.using %}
|
||||||
|
{% if using.size > 0 %}
|
||||||
|
{% for used in using limit: 3 %}
|
||||||
|
{% assign last = forloop.last %}
|
||||||
|
{% if last %}
|
||||||
|
and
|
||||||
|
{% endif %}
|
||||||
|
{% for hash in used %}
|
||||||
|
<a href="{{ hash[1] }}">{{ hash[0] }}</a>{% if last == false %},{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
use the {% if license.nickname %}{{ license.nickname }}{% else %}{{ license.title }}{% endif %}.
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
@ -10,6 +10,11 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
|
|||||||
|
|
||||||
note: The Apache Foundation recommends taking the additional step of adding a boilerplate notice to the header of each source file. You can find the notice at the very end of the license in the appendix.
|
note: The Apache Foundation recommends taking the additional step of adding a boilerplate notice to the header of each source file. You can find the notice at the very end of the license in the appendix.
|
||||||
|
|
||||||
|
using:
|
||||||
|
- Android: https://github.com/android/platform_system_core/blob/master/NOTICE
|
||||||
|
- Apache: https://svn.apache.org/viewvc/httpd/httpd/trunk/LICENSE?view=markup
|
||||||
|
- Swift: https://github.com/apple/swift/blob/master/LICENSE.txt
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- include-copyright
|
- include-copyright
|
||||||
- document-changes
|
- document-changes
|
||||||
|
@ -12,6 +12,11 @@ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of
|
|||||||
|
|
||||||
note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license.
|
note: The Free Software Foundation recommends taking the additional step of adding a boilerplate notice to the top of each file. The boilerplate can be found at the end of the license.
|
||||||
|
|
||||||
|
using:
|
||||||
|
- Bash: http://git.savannah.gnu.org/cgit/bash.git/tree/COPYING
|
||||||
|
- GIMP: https://git.gnome.org/browse/gimp/tree/COPYING
|
||||||
|
- Privacy Badger: https://github.com/EFForg/privacybadgerfirefox/blob/master/LICENSE
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- include-copyright
|
- include-copyright
|
||||||
- document-changes
|
- document-changes
|
||||||
|
@ -7,6 +7,12 @@ description: A permissive license that is short and to the point. It lets people
|
|||||||
|
|
||||||
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
|
how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
|
||||||
|
|
||||||
|
using:
|
||||||
|
- jQuery: https://github.com/jquery/jquery/blob/master/LICENSE.txt
|
||||||
|
- .NET Core: https://github.com/dotnet/corefx/blob/master/LICENSE
|
||||||
|
- Rails: https://github.com/rails/rails/blob/master/activerecord/MIT-LICENSE
|
||||||
|
|
||||||
|
|
||||||
required:
|
required:
|
||||||
- include-copyright
|
- include-copyright
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ permalink: /
|
|||||||
The <a href="licenses/mit">MIT License</a> is a permissive license that is short and to the point. It lets people do anything they want with your code as long as they provide attribution back to you and don’t hold you liable.
|
The <a href="licenses/mit">MIT License</a> is a permissive license that is short and to the point. It lets people do anything they want with your code as long as they provide attribution back to you and don’t hold you liable.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://github.com/jquery/jquery/blob/master/LICENSE.txt">jQuery</a>, <a href="https://github.com/rails/rails/blob/master/activerecord/MIT-LICENSE">Rails</a> and <a href="https://github.com/dotnet/corefx/blob/master/LICENSE">.NET Core</a> use the MIT License.
|
{% include using-sentence.html license-id="mit" %}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="patents">
|
<li class="patents">
|
||||||
@ -33,7 +33,7 @@ permalink: /
|
|||||||
The <a href="licenses/apache-2.0/">Apache License 2.0</a> is a permissive license similar to the MIT License, but also provides an express grant of patent rights from contributors to users.
|
The <a href="licenses/apache-2.0/">Apache License 2.0</a> is a permissive license similar to the MIT License, but also provides an express grant of patent rights from contributors to users.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://svn.apache.org/viewvc/httpd/httpd/trunk/LICENSE?view=markup">Apache</a>, <a href="https://github.com/apple/swift/blob/master/LICENSE.txt">Swift</a>, and <a href="https://github.com/android/platform_system_core/blob/master/NOTICE">Android</a> use the Apache License 2.0.
|
{% include using-sentence.html license-id="apache-2.0" %}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="copyleft">
|
<li class="copyleft">
|
||||||
@ -45,7 +45,7 @@ permalink: /
|
|||||||
The <a href="licenses/gpl-3.0/">GNU GPLv3</a> is a copyleft license that requires anyone who distributes your code or a derivative work to make the source available under the same terms, and also provides an express grant of patent rights from contributors to users.
|
The <a href="licenses/gpl-3.0/">GNU GPLv3</a> is a copyleft license that requires anyone who distributes your code or a derivative work to make the source available under the same terms, and also provides an express grant of patent rights from contributors to users.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="http://git.savannah.gnu.org/cgit/bash.git/tree/COPYING">Bash</a>, <a href="https://git.gnome.org/browse/gimp/tree/COPYING">GIMP</a>, and <a href="https://github.com/EFForg/privacybadgerfirefox/blob/master/LICENSE">Privacy Badger</a> use the GNU GPLv3.
|
{% include using-sentence.html license-id="gpl-3.0" %}
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user