docgen-tool 3.5.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/include/require/styles/framework.css +220 -42
- package/dist/include/require/styles/framework.js +22 -3
- package/dist/include/require/styles/icons.js +9755 -0
- package/dist/include/templates/main.html +2 -35
- package/dist/include/templates/pdfCover.html +4 -71
- package/dist/include/templates/pdfFooter.html +0 -22
- package/dist/include/templates/pdfHeader.html +1 -14
- package/dist/package.json +3 -1
- package/dist/src/docgen/fs/templates.js +7 -10
- package/dist/src/docgen/views/components/logo/logo.js +12 -0
- package/dist/src/docgen/views/components/pdf-footer/pdf-footer.js +1 -1
- package/dist/src/docgen/views/components/pdf-header/pdf-header.js +14 -0
- package/dist/src/docgen/views/components/web-table-of-contents/web-table-of-contents.js +3 -3
- package/dist/src/docgen/views/pages/cover/pdf-cover.js +3 -6
- package/dist/src/docgen/views/pages/process-pages.js +7 -9
- package/package.json +3 -1
- package/dist/include/require/docgen.css +0 -136
- package/dist/include/require/styles/framework.icons.js +0 -143
- package/dist/include/templates/webCover.html +0 -43
|
@@ -972,71 +972,249 @@ button .icon svg,
|
|
|
972
972
|
/*
|
|
973
973
|
icons
|
|
974
974
|
*/
|
|
975
|
-
.
|
|
976
|
-
width:
|
|
977
|
-
height:
|
|
978
|
-
display: inline-block;
|
|
979
|
-
margin: 0;
|
|
980
|
-
overflow: hidden;
|
|
975
|
+
.dgIcon.small svg {
|
|
976
|
+
width: 20px;
|
|
977
|
+
height: 20px;
|
|
981
978
|
}
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
979
|
+
.dgIcon.large svg {
|
|
980
|
+
width: 36px;
|
|
981
|
+
height: 36px;
|
|
982
|
+
}
|
|
983
|
+
.dgIcon.success svg {
|
|
984
|
+
color: #3c8039;
|
|
985
|
+
}
|
|
986
|
+
.dgIcon.warning svg {
|
|
987
|
+
color: #987924;
|
|
988
|
+
}
|
|
989
|
+
.dgIcon.error svg {
|
|
990
|
+
color: #922429;
|
|
991
|
+
}
|
|
992
|
+
.dgIcon.info svg {
|
|
993
|
+
color: #296995;
|
|
986
994
|
}
|
|
987
995
|
|
|
988
996
|
/*table icons*/
|
|
989
|
-
.w-table td > .
|
|
997
|
+
.w-table td > .dgIcon {
|
|
990
998
|
vertical-align: middle;
|
|
991
999
|
}
|
|
992
1000
|
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
1001
|
+
.w-table td.center {
|
|
1002
|
+
display: table-cell;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
#dg-coverInfo {
|
|
1006
|
+
margin-top: 100px;
|
|
1007
|
+
margin-bottom: 50px;
|
|
1008
|
+
width: 100%;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
#dg-coverInfo {
|
|
1012
|
+
border-collapse: separate; /*http://stackoverflow.com/questions/7625586/*/
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
#dg-coverInfo th {
|
|
1016
|
+
background-color: rgb(46, 113, 225);
|
|
1017
|
+
color: white;
|
|
1018
|
+
font-size: 34px;
|
|
1019
|
+
padding: 20px;
|
|
1020
|
+
border: 1px solid rgb(46, 113, 225);
|
|
1021
|
+
border-radius: 10px 10px 0 0;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
#dg-coverInfo tr td {
|
|
1025
|
+
border-top: 2px solid rgb(46, 113, 225);
|
|
1026
|
+
border-left: 2px solid rgb(46, 113, 225);
|
|
1027
|
+
border-bottom: none;
|
|
1028
|
+
border-right: none;
|
|
1029
|
+
padding-top: 20px;
|
|
1030
|
+
padding-bottom: 20px;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
#dg-coverInfo td:last-child {
|
|
1034
|
+
border-right: 2px solid rgb(46, 113, 225);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
#dg-coverInfo .dg-finalRow td {
|
|
1038
|
+
border-bottom: 2px solid rgb(46, 113, 225);
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
#dg-summary {
|
|
1042
|
+
margin-bottom: 100px;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/*
|
|
1046
|
+
PDF header
|
|
1047
|
+
*/
|
|
1048
|
+
#dg-pdf-header {
|
|
1049
|
+
text-align: right;
|
|
996
1050
|
}
|
|
997
|
-
|
|
1051
|
+
|
|
1052
|
+
/*
|
|
1053
|
+
PDF cover
|
|
1054
|
+
*/
|
|
1055
|
+
#dg-pdfLogo {
|
|
998
1056
|
display: inline-block;
|
|
999
|
-
float:
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1057
|
+
float: right;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
#dg-pdf-cover-footer {
|
|
1061
|
+
width: 100%;
|
|
1062
|
+
text-align: center;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
/*
|
|
1066
|
+
PDF footer
|
|
1067
|
+
*/
|
|
1068
|
+
#dg-pdf-footer {
|
|
1069
|
+
border-top: 1px solid #385691;
|
|
1070
|
+
padding-top: 10px;
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
#dg-pdf-footer table {
|
|
1074
|
+
width: 100%;
|
|
1075
|
+
text-align: center;
|
|
1076
|
+
table-layout: fixed;
|
|
1077
|
+
word-wrap: break-word;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
#dg-pdf-footer a {
|
|
1081
|
+
text-decoration: none;
|
|
1082
|
+
color: #444;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
pre {
|
|
1086
|
+
font-size: 12px; /*todo - move to base styles*/
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
section blockquote p,
|
|
1090
|
+
section li p {
|
|
1003
1091
|
margin: 0;
|
|
1004
1092
|
}
|
|
1005
|
-
|
|
1006
|
-
|
|
1093
|
+
|
|
1094
|
+
.w-table {
|
|
1095
|
+
width: 100%;
|
|
1007
1096
|
}
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1097
|
+
|
|
1098
|
+
/******************************** TABLE OF CONTENTS ****************************/
|
|
1099
|
+
/*Table of contents button to initiate show/hide*/
|
|
1100
|
+
#dg-navigator {
|
|
1101
|
+
float: right;
|
|
1102
|
+
background-color: rgb(26, 34, 49);
|
|
1103
|
+
color: white;
|
|
1104
|
+
text-align: right;
|
|
1105
|
+
padding: 10px 20px 10px 20px;
|
|
1106
|
+
margin-right: 200px;
|
|
1107
|
+
border-radius: 0 0 10px 10px;
|
|
1108
|
+
cursor: pointer;
|
|
1109
|
+
font-weight: bold;
|
|
1011
1110
|
}
|
|
1012
|
-
|
|
1013
|
-
|
|
1111
|
+
|
|
1112
|
+
/*Table of contents container*/
|
|
1113
|
+
#dg-toc {
|
|
1114
|
+
color: white;
|
|
1115
|
+
background-color: rgb(26, 34, 49);
|
|
1014
1116
|
}
|
|
1015
1117
|
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
width:
|
|
1019
|
-
height: 21px;
|
|
1020
|
-
float: left;
|
|
1021
|
-
margin-right: 5px;
|
|
1118
|
+
#dg-toc table {
|
|
1119
|
+
table-layout: auto;
|
|
1120
|
+
width: 100%;
|
|
1022
1121
|
}
|
|
1023
1122
|
|
|
1024
|
-
|
|
1025
|
-
|
|
1123
|
+
#dg-toc div {
|
|
1124
|
+
padding: 15px 0 15px 0;
|
|
1026
1125
|
}
|
|
1027
1126
|
|
|
1028
|
-
|
|
1029
|
-
|
|
1127
|
+
/*Columns in table of contents*/
|
|
1128
|
+
#dg-toc td {
|
|
1129
|
+
border-right: 1px solid #666;
|
|
1130
|
+
vertical-align: top;
|
|
1131
|
+
text-align: left;
|
|
1132
|
+
padding: 0 20px 0 20px;
|
|
1030
1133
|
}
|
|
1031
1134
|
|
|
1032
|
-
|
|
1033
|
-
|
|
1135
|
+
#dg-toc ul {
|
|
1136
|
+
padding: 0;
|
|
1137
|
+
list-style-type: none;
|
|
1034
1138
|
}
|
|
1035
1139
|
|
|
1036
|
-
|
|
1037
|
-
|
|
1140
|
+
#dg-toc li {
|
|
1141
|
+
font-weight: bold;
|
|
1038
1142
|
}
|
|
1039
1143
|
|
|
1040
|
-
td
|
|
1041
|
-
|
|
1144
|
+
#dg-toc table td a {
|
|
1145
|
+
color: white;
|
|
1146
|
+
font-weight: normal;
|
|
1147
|
+
text-decoration: none;
|
|
1148
|
+
margin-left: 10px;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
#dg-toc table td a:hover {
|
|
1152
|
+
text-decoration: underline;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
#dg-tocFixedColumn {
|
|
1156
|
+
border-right: none;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
#dg-toc table #dg-tocFixedColumn a {
|
|
1160
|
+
vertical-align: middle;
|
|
1161
|
+
margin-left: 4px;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
.dg-tocGroup {
|
|
1165
|
+
width: 22%;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
.dg-tocHeading {
|
|
1169
|
+
font-size: 16px;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.dgWebTocAttribution li {
|
|
1173
|
+
display: flex;
|
|
1174
|
+
align-items: center;
|
|
1175
|
+
}
|
|
1176
|
+
.dgWebTocAttribution .dgIcon {
|
|
1177
|
+
width: 18px;
|
|
1178
|
+
height: 18px;
|
|
1179
|
+
}
|
|
1180
|
+
.dgWebTocAttribution .dgIcon svg {
|
|
1181
|
+
width: 18px;
|
|
1182
|
+
height: 18px;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/*
|
|
1186
|
+
Page table of contents
|
|
1187
|
+
*/
|
|
1188
|
+
.dg-pageToc {
|
|
1189
|
+
list-style: none;
|
|
1190
|
+
padding: 10px;
|
|
1191
|
+
border: 1px solid #999;
|
|
1192
|
+
background-color: #eee;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
/*
|
|
1196
|
+
Class to make a heading look invisible in web page, but still appear in the PDF table of contents
|
|
1197
|
+
- display:none, visibily: hidden, zero dimensions, and offscreen positioning don't work
|
|
1198
|
+
- so instead take it out of the flow and make it small and translucent
|
|
1199
|
+
*/
|
|
1200
|
+
.dg-hiddenTitle {
|
|
1201
|
+
display: block;
|
|
1202
|
+
border: none;
|
|
1203
|
+
margin: 0;
|
|
1204
|
+
padding: 0;
|
|
1205
|
+
width: 1px;
|
|
1206
|
+
height: 1px;
|
|
1207
|
+
overflow: hidden;
|
|
1208
|
+
position: absolute;
|
|
1209
|
+
background-color: transparent;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
.dg-fakeHeading {
|
|
1213
|
+
text-decoration: none;
|
|
1214
|
+
font-weight: bold;
|
|
1215
|
+
color: #385691;
|
|
1216
|
+
border-bottom: 1px solid #999;
|
|
1217
|
+
margin: 20px 0 20px 0;
|
|
1218
|
+
font-size: 16px;
|
|
1219
|
+
padding-bottom: 4px;
|
|
1042
1220
|
}
|
|
@@ -5410,11 +5410,30 @@
|
|
|
5410
5410
|
*/
|
|
5411
5411
|
|
|
5412
5412
|
function svgInject() {
|
|
5413
|
-
this.inject =
|
|
5413
|
+
this.inject = (container) => {
|
|
5414
5414
|
container = typeof container !== 'undefined' ? container : ''; //default value
|
|
5415
|
-
$(container + ' .
|
|
5416
|
-
|
|
5415
|
+
$(container + ' .dgIcon').each(function () {
|
|
5416
|
+
const name = $(this).data('name');
|
|
5417
5417
|
$(this).html(w_icons[name]);
|
|
5418
5418
|
});
|
|
5419
5419
|
};
|
|
5420
5420
|
}
|
|
5421
|
+
|
|
5422
|
+
$(document).ready(() => {
|
|
5423
|
+
$('#dg-toc').hide(); //hide the table of contents
|
|
5424
|
+
|
|
5425
|
+
//instantiate svg injector to show SVG icons
|
|
5426
|
+
const injector = new svgInject();
|
|
5427
|
+
injector.inject();
|
|
5428
|
+
|
|
5429
|
+
//code syntax highlighting
|
|
5430
|
+
$('pre code, .w-inline-code').each((i, block) => {
|
|
5431
|
+
hljs.highlightBlock(block);
|
|
5432
|
+
});
|
|
5433
|
+
|
|
5434
|
+
//toggle visibility of table of contents
|
|
5435
|
+
$('#dg-navigator').click(() => {
|
|
5436
|
+
$('#dg-toc').slideToggle('fast');
|
|
5437
|
+
$(this).toggleClass('active');
|
|
5438
|
+
});
|
|
5439
|
+
});
|