1
0
mirror of https://github.com/github/choosealicense.com synced 2024-11-05 19:28:50 +01:00
choosealicense.com/appendix.md

1.7 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 }}