Skip to content

Commit 13e9166

Browse files
committed
Enhance the details view UI and display URLs as link #5
Signed-off-by: tdruez <[email protected]>
1 parent 16dd721 commit 13e9166

File tree

1,775 files changed

+144366
-29980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,775 files changed

+144366
-29980
lines changed

app.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,13 @@ def generate_details(output_path):
9292
license_details_template = env.get_template("license_details.html")
9393
for license in licenses.values():
9494
license_data = license.to_dict()
95-
yml = saneyaml.dump(license_data)
9695
html = license_details_template.render(
9796
**base_context,
9897
license=license,
99-
license_data=yml,
98+
license_data=license_data,
10099
)
101100
write_file(output_path, f"{license.key}.html", html)
102-
write_file(output_path, f"{license.key}.yml", yml)
101+
write_file(output_path, f"{license.key}.yml", saneyaml.dump(license_data))
103102
write_file(output_path, f"{license.key}.json", json.dumps(license_data))
104103
write_file(output_path, f"{license.key}.LICENSE", license.text)
105104

docs/389-exception.html

+120-45
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
<style>
2626
table.dataTable {visibility: visible!important;}
2727
#search-section {display: none;}
28+
ul.list-style-none {list-style: none; margin: 0;}
29+
ul li:first-child {margin-top: 0;}
30+
dl {display: flex; flex-flow: row wrap;}
31+
dl dt, dl dd {margin: 0; padding: 6px 10px;}
32+
dt {flex-basis: 20%; background: #555; text-align: right; color: #fff;}
33+
dd {flex-basis: 70%; flex-grow: 1;}
2834
</style>
2935

3036
</head>
@@ -56,51 +62,120 @@
5662
<a href="https://github.com/nexB/scancode-toolkit/edit/develop/src/licensedcode/data/licenses/389-exception.LICENSE" target="_blank">edit text</a> -
5763
<a href="https://github.com/nexB/scancode-toolkit/edit/develop/src/licensedcode/data/licenses/389-exception.yml" target="_blank">edit data</a>
5864
<hr>
59-
<pre style="white-space: pre-wrap; font-family: inherit;">key: 389-exception
60-
short_name: 389 Directory Server Exception to GPL 2.0
61-
name: 389 Directory Server Exception to GPL 2.0
62-
category: Copyleft Limited
63-
owner: Fedora
64-
homepage_url: https://spdx.org/licenses/389-exception.html
65-
is_exception: yes
66-
spdx_license_key: 389-exception
67-
text_urls:
68-
- http://www.directory.fedora.redhat.com/wiki/GPL_Exception_License_Text
69-
other_urls:
70-
- http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text
71-
- http://www.gnu.org/licenses/gpl-2.0.txt
72-
standard_notice: |
73-
This Program is free software; you can redistribute it and/or modify it
74-
under the terms of the GNU General Public License as published by the Free
75-
Software Foundation; version 2 of the License.
76-
This Program is distributed in the hope that it will be useful, but WITHOUT
77-
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
78-
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
79-
more details.
80-
You should have received a copy of the GNU General Public License along
81-
with this Program; if not, write to the Free Software Foundation, Inc., 59
82-
Temple Place, Suite 330, Boston, MA 02111-1307 USA.
83-
In addition, as a special exception, Red Hat, Inc. gives You the additional
84-
right to link the code of this Program with code not covered under the GNU
85-
General Public License (&#34;Non-GPL Code&#34;) and to distribute linked
86-
combinations including the two, subject to the limitations in this
87-
paragraph. Non-GPL Code permitted under this exception must only link to
88-
the code of this Program through those well defined interfaces identified
89-
in the file named EXCEPTION found in the source code files (the &#34;Approved
90-
Interfaces&#34;). The files of Non-GPL Code may instantiate templates or use
91-
macros or inline functions from the Approved Interfaces without causing the
92-
resulting work to be covered by the GNU General Public License. Only Red
93-
Hat, Inc. may make changes or additions to the list of Approved Interfaces.
94-
You must obey the GNU General Public License in all respects for all of the
95-
Program code and other code used in conjunction with the Program except the
96-
Non-GPL Code covered by this exception. If you modify this file, you may
97-
extend this exception to your version of the file, but you are not
98-
obligated to do so. If you do not wish to provide this exception without
99-
modification, you must delete this exception statement from your version
100-
and license this file solely under the GPL without exception.
101-
</pre>
102-
<hr>
103-
<pre id="license-text" class="code" style="white-space: pre-wrap;"><code>In addition, as a special exception, Red Hat, Inc. gives You the additional
65+
<dl>
66+
67+
<dt style="">key</dt>
68+
<dd>
69+
70+
389-exception
71+
72+
</dd>
73+
74+
<dt style="">short_name</dt>
75+
<dd>
76+
77+
389 Directory Server Exception to GPL 2.0
78+
79+
</dd>
80+
81+
<dt style="">name</dt>
82+
<dd>
83+
84+
389 Directory Server Exception to GPL 2.0
85+
86+
</dd>
87+
88+
<dt style="">category</dt>
89+
<dd>
90+
91+
Copyleft Limited
92+
93+
</dd>
94+
95+
<dt style="">owner</dt>
96+
<dd>
97+
98+
Fedora
99+
100+
</dd>
101+
102+
<dt style="">homepage_url</dt>
103+
<dd>
104+
105+
<a href="https://spdx.org/licenses/389-exception.html" rel="noopener" target="_blank">https://spdx.org/licenses/389-exception.html</a>
106+
107+
</dd>
108+
109+
<dt style="">is_exception</dt>
110+
<dd>
111+
112+
True
113+
114+
</dd>
115+
116+
<dt style="">spdx_license_key</dt>
117+
<dd>
118+
119+
389-exception
120+
121+
</dd>
122+
123+
<dt style="">text_urls</dt>
124+
<dd>
125+
126+
<ul class="list-style-none">
127+
<li><a href="http://www.directory.fedora.redhat.com/wiki/GPL_Exception_License_Text" rel="noopener" target="_blank">http://www.directory.fedora.redhat.com/wiki/GPL_Exception_License_Text</a></li>
128+
</ul>
129+
130+
</dd>
131+
132+
<dt style="">other_urls</dt>
133+
<dd>
134+
135+
<ul class="list-style-none">
136+
<li><a href="http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text" rel="noopener" target="_blank">http://directory.fedoraproject.org/wiki/GPL_Exception_License_Text</a></li><li><a href="http://www.gnu.org/licenses/gpl-2.0.txt" rel="noopener" target="_blank">http://www.gnu.org/licenses/gpl-2.0.txt</a></li>
137+
</ul>
138+
139+
</dd>
140+
141+
<dt style="">standard_notice</dt>
142+
<dd>
143+
144+
This Program is free software; you can redistribute it and/or modify it
145+
under the terms of the GNU General Public License as published by the Free
146+
Software Foundation; version 2 of the License.
147+
This Program is distributed in the hope that it will be useful, but WITHOUT
148+
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
149+
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
150+
more details.
151+
You should have received a copy of the GNU General Public License along
152+
with this Program; if not, write to the Free Software Foundation, Inc., 59
153+
Temple Place, Suite 330, Boston, MA 02111-1307 USA.
154+
In addition, as a special exception, Red Hat, Inc. gives You the additional
155+
right to link the code of this Program with code not covered under the GNU
156+
General Public License (&#34;Non-GPL Code&#34;) and to distribute linked
157+
combinations including the two, subject to the limitations in this
158+
paragraph. Non-GPL Code permitted under this exception must only link to
159+
the code of this Program through those well defined interfaces identified
160+
in the file named EXCEPTION found in the source code files (the &#34;Approved
161+
Interfaces&#34;). The files of Non-GPL Code may instantiate templates or use
162+
macros or inline functions from the Approved Interfaces without causing the
163+
resulting work to be covered by the GNU General Public License. Only Red
164+
Hat, Inc. may make changes or additions to the list of Approved Interfaces.
165+
You must obey the GNU General Public License in all respects for all of the
166+
Program code and other code used in conjunction with the Program except the
167+
Non-GPL Code covered by this exception. If you modify this file, you may
168+
extend this exception to your version of the file, but you are not
169+
obligated to do so. If you do not wish to provide this exception without
170+
modification, you must delete this exception statement from your version
171+
and license this file solely under the GPL without exception.
172+
173+
174+
</dd>
175+
176+
</dl>
177+
<div class="text-bold">license_text</div>
178+
<pre id="license-text" class="code mt-1" style="white-space: pre-wrap;"><code>In addition, as a special exception, Red Hat, Inc. gives You the additional
104179
right to link the code of this Program with code not covered under the GNU
105180
General Public License (&#34;Non-GPL Code&#34;) and to distribute linked combinations
106181
including the two, subject to the limitations in this paragraph. Non-GPL Code

docs/3com-microcode.html

+60-10
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
<style>
2626
table.dataTable {visibility: visible!important;}
2727
#search-section {display: none;}
28+
ul.list-style-none {list-style: none; margin: 0;}
29+
ul li:first-child {margin-top: 0;}
30+
dl {display: flex; flex-flow: row wrap;}
31+
dl dt, dl dd {margin: 0; padding: 6px 10px;}
32+
dt {flex-basis: 20%; background: #555; text-align: right; color: #fff;}
33+
dd {flex-basis: 70%; flex-grow: 1;}
2834
</style>
2935

3036
</head>
@@ -56,16 +62,60 @@
5662
<a href="https://github.com/nexB/scancode-toolkit/edit/develop/src/licensedcode/data/licenses/3com-microcode.LICENSE" target="_blank">edit text</a> -
5763
<a href="https://github.com/nexB/scancode-toolkit/edit/develop/src/licensedcode/data/licenses/3com-microcode.yml" target="_blank">edit data</a>
5864
<hr>
59-
<pre style="white-space: pre-wrap; font-family: inherit;">key: 3com-microcode
60-
short_name: 3Com Microcode
61-
name: 3Com Microcode
62-
category: Permissive
63-
owner: HP - Hewlett Packard
64-
notes: this is a Linux firmware BSD-like license with some weird extra terms
65-
spdx_license_key: LicenseRef-scancode-3com-microcode
66-
</pre>
67-
<hr>
68-
<pre id="license-text" class="code" style="white-space: pre-wrap;"><code>
65+
<dl>
66+
67+
<dt style="">key</dt>
68+
<dd>
69+
70+
3com-microcode
71+
72+
</dd>
73+
74+
<dt style="">short_name</dt>
75+
<dd>
76+
77+
3Com Microcode
78+
79+
</dd>
80+
81+
<dt style="">name</dt>
82+
<dd>
83+
84+
3Com Microcode
85+
86+
</dd>
87+
88+
<dt style="">category</dt>
89+
<dd>
90+
91+
Permissive
92+
93+
</dd>
94+
95+
<dt style="">owner</dt>
96+
<dd>
97+
98+
HP - Hewlett Packard
99+
100+
</dd>
101+
102+
<dt style="">notes</dt>
103+
<dd>
104+
105+
this is a Linux firmware BSD-like license with some weird extra terms
106+
107+
</dd>
108+
109+
<dt style="">spdx_license_key</dt>
110+
<dd>
111+
112+
LicenseRef-scancode-3com-microcode
113+
114+
</dd>
115+
116+
</dl>
117+
<div class="text-bold">license_text</div>
118+
<pre id="license-text" class="code mt-1" style="white-space: pre-wrap;"><code>
69119
Redistribution and use in source and binary forms of the
70120
microcode software are permitted provided that the following conditions
71121
are met:

0 commit comments

Comments
 (0)