[ADF-4069] Added updated license list tool (#4302)

* [ADF-4069] Added updated license list tool

* [ADF-4069] Added suggestion for licence info in sidebar
This commit is contained in:
Andy Stark
2019-02-12 12:45:56 +00:00
committed by Eugenio Romano
parent 3b1341928f
commit aae4629e9a
5 changed files with 156 additions and 0 deletions

28
tools/doc/templates/licensePage.ejs vendored Normal file
View File

@@ -0,0 +1,28 @@
---
Title: License info, ADF <%= projVersion %>
---
# License information for ADF <%= projVersion %>
This page lists all third party libraries that ADF <%= projVersion %> depends on.
## Libraries
| Name | Version | License |
| -- | -- | -- |
<% for (var packageName in packages) {
var lastAtSignPos = packageName.lastIndexOf('@');
var name = packageName.substring(0, lastAtSignPos);
var version = packageName.substring(lastAtSignPos + 1);
var pack = packages[packageName];
var licenses = pack['licenseExp'] || 'N/A';
var repo = pack['repository'];
var linkedName = name;
if (repo) {
linkedName = `[${name}](${repo})`
}
-%>
| <%= linkedName %> | <%= version %> | <%= licenses %> |
<% } %>