Skip to content

Commit 7ffc029

Browse files
committed
Merge pull request #406 from github/appendix
Appendix/table of all repo licenses; closes #388
2 parents 0b0ff8f + 4ad3bf9 commit 7ffc029

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

about.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ If you already know what you're doing and have a license you prefer to use, that
1010

1111
## Not comprehensive
1212

13-
This site is not a comprehensive directory of open source licenses. We think there are too many options, which adds to the confusion. On the homepage, we break it down into just three licenses. The vast majority of projects will likely be fine choosing from one of these three. Just in case you have specific needs not covered by those three, we also highlight a [few other licenses to consider](/licenses/).
13+
This site is not a comprehensive directory of open source licenses. We think there are too many options, which adds to the confusion. On the [homepage](/), we break it down into just three licenses. The vast majority of projects will likely be fine choosing from one of these three. Just in case you have specific needs not covered by those three, we also highlight a [few other licenses to consider](/licenses/), and have a page about [licenses for non-software projects](/non-software/).
14+
15+
See our [appendix](/appendix) for a table of all of the licenses cataloged in the choosealicense.com repository and the links below for *even more licenses* that you **do not** need to learn about when choosing a license for your project.
1416

1517
### Additional resources
1618

appendix.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
layout: default
3+
permalink: /appendix/
4+
title: Appendix
5+
class: license-types
6+
---
7+
8+
All licenses described in the choosealicense.com [repository](https://github.com/github/choosealicense.com), in a table.
9+
10+
<table border style="font-size: xx-small">
11+
<tr><th>License</th>
12+
{% assign types = "permissions|conditions|limitations" | split: "|" %}
13+
{% for type in types %}
14+
{% assign rules = site.data.rules[type] | sort: "label" %}
15+
{% for rule_obj in rules %}
16+
<th style="text-align: center; width:7%">{{ rule_obj.label }}</th>
17+
{% endfor %}
18+
{% endfor %}
19+
</tr>
20+
{% for license in site.licenses | sort: 'path' %}
21+
<tr style="height: 3em"><td><a href="{{ license.id }}">{{ license.title }}</a></td>
22+
{% for type in types %}
23+
{% assign rules = site.data.rules[type] | sort: "label" %}
24+
{% for rule_obj in rules %}
25+
<td class="license-{{ type }}" style="text-align:center">{% assign req = rule_obj.tag %}
26+
{% if license[type] contains req %}
27+
<span class="license-sprite {{ req }}"></span>
28+
{% endif %}</td>
29+
{% endfor %}
30+
{% endfor %}
31+
</tr>
32+
{% endfor %}
33+
</table>

0 commit comments

Comments
 (0)