docgen-tool 3.2.2 → 3.2.3

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.
Files changed (42) hide show
  1. package/dist/docgen.js +51 -0
  2. package/dist/source/docgen.js +905 -0
  3. package/dist/source/example/contents.json +12 -0
  4. package/dist/source/example/files/images/logo.png +0 -0
  5. package/dist/source/example/index.txt +4 -0
  6. package/dist/source/example/parameters.json +37 -0
  7. package/dist/source/example/release-notes.txt +1 -0
  8. package/dist/source/optional/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
  9. package/dist/source/optional/katex/fonts/KaTeX_Main-Bold.woff +0 -0
  10. package/dist/source/optional/katex/fonts/KaTeX_Main-Italic.woff +0 -0
  11. package/dist/source/optional/katex/fonts/KaTeX_Main-Regular.woff +0 -0
  12. package/dist/source/optional/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  13. package/dist/source/optional/katex/fonts/KaTeX_Math-Italic.woff +0 -0
  14. package/dist/source/optional/katex/fonts/KaTeX_Math-Regular.woff +0 -0
  15. package/dist/source/optional/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
  16. package/dist/source/optional/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
  17. package/dist/source/optional/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
  18. package/dist/source/optional/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
  19. package/dist/source/optional/katex/katex.min.css +1 -0
  20. package/dist/source/optional/katex/katex.min.js +6 -0
  21. package/dist/source/pdf-contents.xsl +71 -0
  22. package/dist/source/pdf-stylesheet.css +59 -0
  23. package/dist/source/require/docgen.css +136 -0
  24. package/dist/source/require/katexInjector.js +18 -0
  25. package/dist/source/require/print.css +26 -0
  26. package/dist/source/require/styles/fonts/DroidSansMono.woff +0 -0
  27. package/dist/source/require/styles/fonts/Montserrat-Italic.woff +0 -0
  28. package/dist/source/require/styles/fonts/Montserrat-Regular.woff +0 -0
  29. package/dist/source/require/styles/fonts/Montserrat-SemiBold.woff +0 -0
  30. package/dist/source/require/styles/fonts/Montserrat-SemiBoldItalic.woff +0 -0
  31. package/dist/source/require/styles/framework.css +949 -0
  32. package/dist/source/require/styles/framework.icons.js +79 -0
  33. package/dist/source/require/styles/framework.js +16 -0
  34. package/dist/source/require/styles/highlight.min.css +1 -0
  35. package/dist/source/require/styles/highlight.min.js +6 -0
  36. package/dist/source/templates/main.html +95 -0
  37. package/dist/source/templates/pdfCover.html +128 -0
  38. package/dist/source/templates/pdfFooter.html +59 -0
  39. package/dist/source/templates/pdfHeader.html +21 -0
  40. package/dist/source/templates/redirect.html +10 -0
  41. package/dist/source/templates/webCover.html +73 -0
  42. package/package.json +1 -1
@@ -0,0 +1,95 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" ><!--Prevent IE using compatibility mode on local or intranet pages. Do not put scripts before this line.-->
5
+ <meta name="viewport" content="width=device-width, user-scalable=yes"><!--Mobile device scaling-->
6
+ <meta charset="UTF-8">
7
+ <title></title>
8
+
9
+ <!--load stylesheets first (rationale: https://developers.google.com/speed/docs/best-practices/rtt#PutStylesBeforeScripts)-->
10
+ <link rel="stylesheet" href="require/styles/framework.css" type="text/css" />
11
+ <link rel="stylesheet" href="require/styles/highlight.min.css" type="text/css" />
12
+ <link rel="stylesheet" href="require/docgen.css" type="text/css" />
13
+ <link rel="stylesheet" href="require/print.css" media="print" />
14
+
15
+ <!--load scripts second-->
16
+
17
+ <script src="require/styles/framework.js"></script>
18
+ <script src="require/styles/framework.icons.js"></script>
19
+ <script src="require/styles/highlight.min.js"></script>
20
+
21
+ <!--inline scripts last-->
22
+
23
+ <script type="text/javascript">
24
+
25
+ $(document).ready( function () {
26
+ $("#dg-toc").hide(); //hide the table of contents
27
+
28
+ //instantiate an svg injector to show SVG icons
29
+ var injector = new svgInject();
30
+ injector.inject();
31
+
32
+ //code syntax highlighting
33
+ $('pre code, .w-inline-code').each(function(i, block) {
34
+ hljs.highlightBlock(block);
35
+ });
36
+
37
+ //toggle visibility of table of contents
38
+ $("#dg-navigator").click(function()
39
+ {
40
+ $("#dg-toc").slideToggle("fast");
41
+ $(this).toggleClass("active");
42
+ });
43
+
44
+ });
45
+ </script>
46
+
47
+ <script type="text/x-mathjax-config">
48
+ //MathJax configuration is the same as used by math.stackexchange.com
49
+ MathJax.Hub.Config({"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"], linebreaks: { automatic:true }, EqnChunk: (MathJax.Hub.Browser.isMobile ? 10 : 50) },
50
+ tex2jax: { inlineMath: [ ["$", "$"], ["\\\\(","\\\\)"] ], displayMath: [ ["$$","$$"], ["\\[", "\\]"] ], processEscapes: true, ignoreClass: "tex2jax_ignore|dno" },
51
+ TeX: { noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } }, Macros: { href: "{}" } },
52
+ messageStyle: "none"
53
+ });
54
+ </script>
55
+
56
+ </head>
57
+
58
+ <body>
59
+
60
+ <div id="dg-toc"></div>
61
+ <div id="dg-navigator">Table of contents</div>
62
+
63
+ <header>
64
+ <div class="w-fixed-width header-container">
65
+ <div class="header-title">
66
+ <a id="dg-homelink" href="#">
67
+ <div id="dg-logo" style="background-image:url('docs/images/logo.svg');">
68
+ <span id="dg-title"></span> <span id="dg-web-title-version" style="font-weight:normal;"></span>
69
+ </div>
70
+ </a>
71
+ </div>
72
+ <div class="header-extra">
73
+ <span id="dg-backlink"></span>
74
+ </div>
75
+ </div>
76
+ </header>
77
+
78
+ <section id="dg-content">
79
+
80
+ </section>
81
+
82
+ <footer>
83
+ <div><p class="w-fixed-width"><span id="dg-web-footer">.</p></div>
84
+ <div class="w-fixed-width">
85
+ <p><span id="dg-copyright"></span></p>
86
+ <p>
87
+ <span id="dg-marking"></span>
88
+ <span id="dg-legalese"></span>
89
+ <span id="dg-attribution"></span>
90
+ </p>
91
+ </div>
92
+ </footer>
93
+
94
+ </body>
95
+ </html>
@@ -0,0 +1,128 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" ><!--Prevent IE using compatibility mode on local or intranet pages. Do not put scripts before this line.-->
5
+ <meta name="viewport" content="width=device-width, user-scalable=yes"><!--Mobile device scaling-->
6
+ <meta charset="UTF-8">
7
+ <title>DocGen</title>
8
+
9
+ <!--load stylesheets first (rationale: https://developers.google.com/speed/docs/best-practices/rtt#PutStylesBeforeScripts)-->
10
+ <link rel="stylesheet" href="../require/styles/framework.css" type="text/css" />
11
+ <link rel="stylesheet" href="../require/docgen.css" type="text/css" />
12
+ <link rel="stylesheet" href="../require/print.css" media="print" />
13
+
14
+ <style>
15
+
16
+ html {
17
+ background: none;
18
+ min-height: 100%;
19
+ }
20
+
21
+ #dg-pdfLogo {
22
+ display: inline-block;
23
+ float: right;
24
+
25
+ }
26
+
27
+ #dg-coverInfo {
28
+ margin-top: 100px;
29
+ margin-bottom: 50px;
30
+ width: 100%;
31
+ }
32
+
33
+ #dg-coverInfo {
34
+ border-collapse: separate; /*http://stackoverflow.com/questions/7625586/*/
35
+ }
36
+
37
+ #dg-coverInfo th {
38
+ background-color: rgb(46, 113, 225);
39
+ color: white;
40
+ font-size: 34px;
41
+ padding: 20px;
42
+ border: 1px solid rgb(46, 113, 225);
43
+ border-radius: 10px 10px 0 0;
44
+ }
45
+
46
+ #dg-coverInfo tr td {
47
+ border-top: 2px solid rgb(46, 113, 225);
48
+ border-left: 2px solid rgb(46, 113, 225);
49
+ border-bottom: none;
50
+ border-right: none;
51
+ padding-top: 20px;
52
+ padding-bottom: 20px;
53
+ }
54
+
55
+ #dg-coverInfo td:last-child {
56
+ border-right: 2px solid rgb(46, 113, 225);
57
+ }
58
+
59
+ #dg-coverInfo .dg-finalRow td {
60
+ border-bottom: 2px solid rgb(46, 113, 225);
61
+ }
62
+
63
+ #dg-summary {
64
+ margin-bottom: 100px;
65
+ }
66
+
67
+ #dg-footer {
68
+ /*position: fixed;*/
69
+ /*bottom: 0px;*/
70
+ width: 100%;
71
+ text-align: center;
72
+ }
73
+
74
+ #footnote {
75
+ font-size: 9px;
76
+ }
77
+
78
+
79
+ </style>
80
+
81
+ <script src="../require/styles/framework.js"></script>
82
+
83
+ </head>
84
+ <body>
85
+
86
+ <div class="w-clear-after"><div id="dg-pdfLogo"><img src="../files/images/logo.svg" /></div></div>
87
+
88
+ <table class="w-table w-fixed" id="dg-coverInfo">
89
+ <thead>
90
+ <tr>
91
+ <th colspan="3" id="dg-title"></th>
92
+ </tr>
93
+ </thead>
94
+ <tfoot>
95
+ </tfoot>
96
+ <tbody>
97
+ <tr>
98
+ <td><strong>Owner: </strong> <span id="dg-owner"></span></td>
99
+ <td><strong>Version: </strong> <span id="dg-version"></span></td>
100
+ <td><strong>Released: </strong> <span id="dg-release-date"></span></td>
101
+ </tr>
102
+ <tr>
103
+ <td><strong>Author: </strong> <span id="dg-author"></span></td>
104
+ <td colspan="2"><strong>Contributors: </strong> <span id="dg-contributors"></span></td>
105
+ </tr>
106
+ <tr class="dg-finalRow">
107
+ <td><strong>Module: </strong> <span id="dg-module"></span></td>
108
+ <td><strong>ID: </strong> <span id="dg-id"></span></td>
109
+ <td><strong>Link: </strong> <span id="dg-website"></span></td>
110
+ </tr>
111
+ <tr>
112
+ </tbody>
113
+ </table>
114
+
115
+ <h1>Summary</h1>
116
+ <p id="dg-summary"></p>
117
+
118
+ <div id="dg-footer">
119
+ <p><span id="dg-copyright"></span></p>
120
+ <p id="footnote">
121
+ <span id="dg-marking"></span>
122
+ <span id="dg-legalese"></span>
123
+ <span id="dg-attribution"></span>
124
+ </p>
125
+ </div>
126
+
127
+ </body>
128
+ </html>
@@ -0,0 +1,59 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <link rel="stylesheet" href="../require/styles/framework.css" type="text/css" />
6
+ <link rel="stylesheet" href="../require/docgen.css" type="text/css" />
7
+ <link rel="stylesheet" href="../require/print.css" media="print" />
8
+
9
+ <style>
10
+
11
+ #dg-footer {
12
+ border-top: 1px solid #385691;
13
+ padding-top: 10px;
14
+ }
15
+
16
+ #dg-footer table {
17
+ width: 100%;
18
+ text-align: center;
19
+ table-layout: fixed;
20
+ word-wrap: break-word;
21
+ }
22
+
23
+ a {
24
+ text-decoration: none;
25
+ color: #444;
26
+ }
27
+
28
+ </style>
29
+
30
+ <script> /*from wkhtmltopdf documenation - substitutes in parameters like page numbers at runtime*/
31
+ function subst() {
32
+ var vars={};
33
+ var x=document.location.search.substring(1).split('&');
34
+ for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
35
+ var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
36
+ for(var i in x) {
37
+ var y = document.getElementsByClassName(x[i]);
38
+ for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
39
+ }
40
+ }
41
+ </script>
42
+
43
+ </head>
44
+ <body onload="subst()">
45
+
46
+ <div id="dg-footer">
47
+ <table><thead></thead><tfoot></tfoot><tbody>
48
+ <tr>
49
+ <td><span id="dg-title"></span> <span id="dg-web-title-version"></span></td>
50
+ <td><span id="dg-copyright"></span></td>
51
+ <td>Page <span class="page"></span> of <span class="topage"></span></td>
52
+ </tr>
53
+ </tbody></table>
54
+ </div>
55
+
56
+ </body>
57
+ </html>
58
+
59
+
@@ -0,0 +1,21 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+
5
+ <link rel="stylesheet" href="../require/styles/framework.css" type="text/css" />
6
+ <link rel="stylesheet" href="../require/docgen.css" type="text/css" />
7
+ <link rel="stylesheet" href="../require/print.css" media="print" />
8
+
9
+ <style>
10
+ #dg-header {
11
+ text-align:right;
12
+ }
13
+
14
+ </style>
15
+ </head>
16
+ <body>
17
+ <div id="dg-header">
18
+ <img src="../files/images/logo.svg" />
19
+ </div>
20
+ </body>
21
+ </html>
@@ -0,0 +1,10 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <meta http-equiv="REFRESH" content="0;url=docs/index.html">
6
+ </head>
7
+ <body>
8
+ <a href="docs/index.html" style="color:#ccc;font-size:12px">Redirect to homepage</a>
9
+ </body>
10
+ </html>
@@ -0,0 +1,73 @@
1
+ <style>
2
+
3
+ #dg-coverInfo {
4
+ margin-top: 100px;
5
+ margin-bottom: 50px;
6
+ width: 100%;
7
+ }
8
+
9
+ #dg-coverInfo {
10
+ border-collapse: separate; /*http://stackoverflow.com/questions/7625586/*/
11
+ }
12
+
13
+ #dg-coverInfo th {
14
+ background-color: rgb(46, 113, 225);
15
+ color: white;
16
+ font-size: 34px;
17
+ padding: 20px;
18
+ border: 1px solid rgb(46, 113, 225);
19
+ border-radius: 10px 10px 0 0;
20
+ }
21
+
22
+ #dg-coverInfo tr td {
23
+ border-top: 2px solid rgb(46, 113, 225);
24
+ border-left: 2px solid rgb(46, 113, 225);
25
+ border-bottom: none;
26
+ border-right: none;
27
+ padding-top: 20px;
28
+ padding-bottom: 20px;
29
+ }
30
+
31
+ #dg-coverInfo td:last-child {
32
+ border-right: 2px solid rgb(46, 113, 225);
33
+ }
34
+
35
+ #dg-coverInfo .dg-finalRow td {
36
+ border-bottom: 2px solid rgb(46, 113, 225);
37
+ }
38
+
39
+ #dg-summary {
40
+ margin-bottom: 100px;
41
+ }
42
+
43
+ </style>
44
+
45
+ <table class="w-table w-fixed" id="dg-coverInfo">
46
+ <thead>
47
+ <tr>
48
+ <th colspan="3" id="dg-title"></th>
49
+ </tr>
50
+ </thead>
51
+ <tfoot>
52
+ </tfoot>
53
+ <tbody>
54
+ <tr>
55
+ <td><strong>Owner: </strong> <span id="dg-owner"></span></td>
56
+ <td><strong>Version: </strong> <span id="dg-version"></span></td>
57
+ <td><strong>Released: </strong> <span id="dg-release-date"></span></td>
58
+ </tr>
59
+ <tr>
60
+ <td><strong>Author: </strong> <span id="dg-author"></span></td>
61
+ <td colspan="2"><strong>Contributors: </strong> <span id="dg-contributors"></span></td>
62
+ </tr>
63
+ <tr class="dg-finalRow">
64
+ <td><strong>Module: </strong> <span id="dg-module"></span></td>
65
+ <td><strong>ID: </strong> <span id="dg-id"></span></td>
66
+ <td><strong>Link: </strong> <span id="dg-website"></span></td>
67
+ </tr>
68
+ <tr>
69
+ </tbody>
70
+ </table>
71
+
72
+ <h1>Summary</h1>
73
+ <p id="dg-summary"></p>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docgen-tool",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "A tool for creating HTML and PDF documentation",
5
5
  "main": "dist/docgen.js",
6
6
  "bin": {