mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
c9dbe70f03
as recommended by https://www.w3.org/WAI/tutorials/tables/two-headers/ http://webaim.org/techniques/tables/data
3.2 KiB
3.2 KiB
layout | permalink | title | class |
---|---|---|---|
default | /appendix/ | Appendix | license-types |
All licenses described in the choosealicense.com repository, in a table.
{% assign types = "permissions|conditions|limitations" | split: "|" %} {% assign seen_tags = '' %} {% for type in types %} {% assign rules = site.data.rules[type] | sort: "label" %} {% for rule_obj in rules %} {% if seen_tags contains rule_obj.tag %} {% continue %} {% endif %} {% capture seen_tags %}{{ seen_tags | append:rule_obj.tag }}{% endcapture %} {% endfor %} {% endfor %} {% for license in site.licenses | sort: 'path' %} {% assign seen_tags = '' %} {% for type in types %} {% assign rules = site.data.rules[type] | sort: "label" %} {% for rule_obj in rules %} {% assign req = rule_obj.tag %} {% if seen_tags contains req %} {% continue %} {% endif %} {% capture seen_tags %}{{ seen_tags | append:req }}{% endcapture %} {% assign seen_req = false %} {% for t in types %} {% if license[t] contains req %} {% assign seen_req = true %} {% endif %} {% endfor %} {% unless seen_req %} {% endunless %} {% endfor %} {% endfor %} {% endfor %}License | {{ rule_obj.label }} | |
---|---|---|
{{ license.title }} |
Legend
Open source licenses grant to the public permissions () to do things with licensed works copyright or other "intellectual property" laws might otherwise disallow.
Most open source licenses' grants of permissions are subject to compliance with conditions ().
Most open source licenses also have limitations () that usually disclaim warranty and liability and sometimes expressly exclude patent or trademark from licenses' grants.
-
{% assign seen_tags = '' %}
{% for type in types %}
{% assign rules = site.data.rules[type] | sort: "label" %}
{% for rule_obj in rules %}
{% assign req = rule_obj.tag %}
{% if seen_tags contains req %}
{% continue %}
{% endif %}
- {{ rule_obj.label }} {% capture seen_tags %}{{ seen_tags | append:req }}{% endcapture %} {% for t in types %} {% for r in site.data.rules[t] | sort: "label" %} {% if r.tag == req %}
- {{ r.description }} {% endif %} {% endfor %} {% endfor %} {% endfor %} {% endfor %}