docgen-tool 2.1.3 → 3.0.1

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 (113) hide show
  1. package/LICENSE +35 -33
  2. package/{docgen → dist/docgen.js} +13 -24
  3. package/{source → dist/source}/docgen.js +380 -357
  4. package/dist/source/require/docgen.css +138 -0
  5. package/dist/source/require/katexInjector.js +18 -0
  6. package/dist/source/require/print.css +26 -0
  7. package/{source → dist/source}/templates/main.html +93 -93
  8. package/package.json +50 -20
  9. package/.npmignore +0 -2
  10. package/docs/advanced-content.html +0 -239
  11. package/docs/commonmark.html +0 -225
  12. package/docs/docgen.pdf +0 -0
  13. package/docs/files/images/logo.png +0 -0
  14. package/docs/files/images/overview.png +0 -0
  15. package/docs/files/images/pdf.png +0 -0
  16. package/docs/files/images/svg/icon.svg +0 -845
  17. package/docs/files/images/svg/overview.svg +0 -1345
  18. package/docs/files/images/text.png +0 -0
  19. package/docs/files/images/web.png +0 -0
  20. package/docs/index.html +0 -333
  21. package/docs/installation.html +0 -121
  22. package/docs/ownership.html +0 -164
  23. package/docs/release-notes.html +0 -148
  24. package/docs/require/docgen.css +0 -131
  25. package/docs/require/katexInjector.js +0 -22
  26. package/docs/require/print.css +0 -19
  27. package/docs/running.html +0 -123
  28. package/docs/troubleshooting.html +0 -105
  29. package/docs/upgrading.html +0 -124
  30. package/docs/version-control.html +0 -102
  31. package/docs/writing-content.html +0 -305
  32. package/index.html +0 -10
  33. package/source/example/contents.json +0 -12
  34. package/source/example/files/images/logo.png +0 -0
  35. package/source/example/index.txt +0 -4
  36. package/source/example/parameters.json +0 -37
  37. package/source/example/release-notes.txt +0 -1
  38. package/source/optional/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
  39. package/source/optional/katex/fonts/KaTeX_Main-Bold.woff +0 -0
  40. package/source/optional/katex/fonts/KaTeX_Main-Italic.woff +0 -0
  41. package/source/optional/katex/fonts/KaTeX_Main-Regular.woff +0 -0
  42. package/source/optional/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  43. package/source/optional/katex/fonts/KaTeX_Math-Italic.woff +0 -0
  44. package/source/optional/katex/fonts/KaTeX_Math-Regular.woff +0 -0
  45. package/source/optional/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
  46. package/source/optional/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
  47. package/source/optional/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
  48. package/source/optional/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
  49. package/source/optional/katex/katex.min.css +0 -1
  50. package/source/optional/katex/katex.min.js +0 -6
  51. package/source/pdf-stylesheet.css +0 -53
  52. package/source/release-checklist.txt +0 -27
  53. package/source/require/docgen.css +0 -131
  54. package/source/require/katexInjector.js +0 -22
  55. package/source/require/print.css +0 -19
  56. package/source/require/webknife/fonts/DroidSansMono.woff +0 -0
  57. package/source/require/webknife/fonts/OpenSans.woff +0 -0
  58. package/source/require/webknife/fonts/OpenSansBold.woff +0 -0
  59. package/source/require/webknife/fonts/OpenSansBoldItalic.woff +0 -0
  60. package/source/require/webknife/fonts/OpenSansItalic.woff +0 -0
  61. package/source/require/webknife/framework.icons.js +0 -82
  62. package/source/require/webknife/framework.min.css +0 -3
  63. package/source/require/webknife/framework.min.js +0 -14
  64. package/source/require/webknife/highlight.min.css +0 -1
  65. package/source/require/webknife/highlight.min.js +0 -6
  66. package/source/user-guide/advanced-content.txt +0 -171
  67. package/source/user-guide/commonmark.txt +0 -156
  68. package/source/user-guide/contents.json +0 -57
  69. package/source/user-guide/files/images/logo.png +0 -0
  70. package/source/user-guide/files/images/overview.png +0 -0
  71. package/source/user-guide/files/images/pdf.png +0 -0
  72. package/source/user-guide/files/images/svg/icon.svg +0 -845
  73. package/source/user-guide/files/images/svg/overview.svg +0 -1345
  74. package/source/user-guide/files/images/text.png +0 -0
  75. package/source/user-guide/files/images/web.png +0 -0
  76. package/source/user-guide/index.txt +0 -245
  77. package/source/user-guide/installation.txt +0 -49
  78. package/source/user-guide/parameters.json +0 -37
  79. package/source/user-guide/release-notes.txt +0 -64
  80. package/source/user-guide/running.txt +0 -47
  81. package/source/user-guide/troubleshooting.txt +0 -32
  82. package/source/user-guide/upgrading.txt +0 -25
  83. package/source/user-guide/version-control.txt +0 -13
  84. package/source/user-guide/writing-content.txt +0 -269
  85. /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
  86. /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Main-Bold.woff +0 -0
  87. /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Main-Italic.woff +0 -0
  88. /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Main-Regular.woff +0 -0
  89. /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  90. /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Math-Italic.woff +0 -0
  91. /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Math-Regular.woff +0 -0
  92. /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
  93. /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
  94. /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
  95. /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
  96. /package/{docs/require → dist/source/optional}/katex/katex.min.css +0 -0
  97. /package/{docs/require → dist/source/optional}/katex/katex.min.js +0 -0
  98. /package/{source → dist/source}/pdf-contents.xsl +0 -0
  99. /package/{docs → dist/source}/require/webknife/fonts/DroidSansMono.woff +0 -0
  100. /package/{docs → dist/source}/require/webknife/fonts/OpenSans.woff +0 -0
  101. /package/{docs → dist/source}/require/webknife/fonts/OpenSansBold.woff +0 -0
  102. /package/{docs → dist/source}/require/webknife/fonts/OpenSansBoldItalic.woff +0 -0
  103. /package/{docs → dist/source}/require/webknife/fonts/OpenSansItalic.woff +0 -0
  104. /package/{docs → dist/source}/require/webknife/framework.icons.js +0 -0
  105. /package/{docs → dist/source}/require/webknife/framework.min.css +0 -0
  106. /package/{docs → dist/source}/require/webknife/framework.min.js +0 -0
  107. /package/{docs → dist/source}/require/webknife/highlight.min.css +0 -0
  108. /package/{docs → dist/source}/require/webknife/highlight.min.js +0 -0
  109. /package/{source → dist/source}/templates/pdfCover.html +0 -0
  110. /package/{source → dist/source}/templates/pdfFooter.html +0 -0
  111. /package/{source → dist/source}/templates/pdfHeader.html +0 -0
  112. /package/{source → dist/source}/templates/redirect.html +0 -0
  113. /package/{source → dist/source}/templates/webCover.html +0 -0
@@ -1,171 +0,0 @@
1
- <style>
2
- .container {
3
- box-sizing: border-box;
4
- float:left;
5
- width: 480px;
6
- }
7
- .codeContainer {
8
- margin: 0 20px 0 0;
9
- }
10
- .codeContainer pre {
11
- margin: 0;
12
- }
13
- .codeContainer code {
14
- }
15
- .codeContainer p {
16
- margin: 0;
17
- padding: 0;
18
- }
19
- .exampleContainer {
20
- margin: 0;
21
- border: 1px solid #666;
22
- border-radius: 6px;
23
- padding: 0 18px 0 18px;
24
- }
25
- .exampleContainer img {
26
- margin-top: 5px;
27
- }
28
- #content table {
29
- width: 400px!important;
30
- }
31
- .hljs-change {
32
- background-color: initial!important;
33
- }
34
- </style>
35
-
36
- Advanced styles
37
- ---------------
38
-
39
- DocGen is built on the [Webknife CSS framework](http://mtmacdonald.github.io/webknife). Any of the HTML elements and
40
- styles from Webknife can be used in a DocGen source file. For details, see
41
- the [Webknife reference guide](http://mtmacdonald.github.io/webknife/docs/reference.html).
42
-
43
- Basic tables
44
- ------------
45
-
46
- Basic tables can be inserted with the Github-flavoured Markdown
47
- [table extension](https://help.github.com/articles/github-flavored-markdown/#tables).
48
-
49
- <div class="container codeContainer">
50
- <pre><code>| Heading | Heading | Heading |
51
- |:-----------:----------:|--------:|
52
- | Something | Something | ? |
53
- | Another | Another | ? |
54
- | One more | One more | ? |</code></pre>
55
- </div>
56
- <div class="container exampleContainer">
57
- <table class="w-table w-fixed w-stripe">
58
- <thead>
59
- <tr>
60
- <th style="text-align:left">Heading</th>
61
- <th style="text-align:center">Heading</th>
62
- <th style="text-align:right">Heading</th>
63
- </tr>
64
- </thead>
65
- <tbody>
66
- <tr>
67
- <td style="text-align:left">Something</td>
68
- <td style="text-align:center">Something</td>
69
- <td style="text-align:right">?</td>
70
- </tr>
71
- <tr>
72
- <td style="text-align:left">Another</td>
73
- <td style="text-align:center">Another</td>
74
- <td style="text-align:right">?</td>
75
- </tr>
76
- <tr>
77
- <td style="text-align:left">One more</td>
78
- <td style="text-align:center">One more</td>
79
- <td style="text-align:right">?</td>
80
- </tr>
81
- </tbody>
82
- </table>
83
- </div><br class="w-clear"/>
84
-
85
- HTML tables
86
- -----------
87
-
88
- Regular HTML can also be used for tables, allowing full custom styling (including table and column widths).
89
-
90
- <div class="container codeContainer">
91
- <pre><code>&lt;table style=&quot;width:100%;&quot;&gt;
92
- &lt;tr&gt;
93
- &lt;th&gt;Heading&lt;/th&gt;
94
- &lt;th&gt;Heading&lt;/th&gt;
95
- &lt;th&gt;Heading&lt;/th&gt;
96
- &lt;/tr&gt;
97
- &lt;tr&gt;
98
- &lt;td class=&quot;bold&quot;&gt;Example&lt;/td&gt;
99
- &lt;td&gt;Example&lt;/td&gt;
100
- &lt;td&gt;Example&lt;/td&gt;
101
- &lt;/tr&gt;
102
- &lt;tr&gt;
103
- &lt;td&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/td&gt;
104
- &lt;td class=&quot;w-success-text&quot;&gt;Example&lt;/td&gt;
105
- &lt;td&gt;&lt;span class=&quot;w-icon&quot; data-name=&quot;checkmark&quot;&gt;&lt;/span&gt;&lt;/td&gt;
106
- &lt;/tr&gt;
107
- &lt;tr&gt;
108
- &lt;td&gt;&lt;strong&gt;Example&lt;/strong&gt;&lt;/td&gt;
109
- &lt;td class=&quot;w-error-text&quot;&gt;Example&lt;/td&gt;
110
- &lt;td&gt;&lt;span class=&quot;w-icon&quot; data-name=&quot;close&quot;&gt;&lt;/td&gt;
111
- &lt;/tr&gt;
112
- &lt;/table&gt;</code></pre>
113
- </div>
114
- <div class="container exampleContainer">
115
- <table style="width:100%;">
116
- <tr>
117
- <th>Heading</th>
118
- <th>Heading</th>
119
- <th>Heading</th>
120
- </tr>
121
- <tr>
122
- <td class="bold">Example</td>
123
- <td>Example</td>
124
- <td>Example</td>
125
- </tr>
126
- <tr>
127
- <td><strong>Example</strong></td>
128
- <td class="w-success-text">Example</td>
129
- <td><span class="w-icon" data-name="checkmark"></span></td>
130
- </tr>
131
- <tr>
132
- <td><strong>Example</strong></td>
133
- <td class="w-error-text">Example</td>
134
- <td><span class="w-icon" data-name="close"></td>
135
- </tr>
136
- </table>
137
- </div><br class="w-clear"/>
138
-
139
- Creating internal links to page sections
140
- ----------------------------------------
141
-
142
- To create links to other sections within one content page, put hyphens between the words in the heading and prepend with #:
143
-
144
- [link to heading](#this-is-a-heading)
145
-
146
- ... other page content here ...
147
-
148
- This is a heading
149
- -----------------
150
-
151
- Creating internal links to other pages
152
- --------------------------------------
153
-
154
- To create links to *other* content pages provide the relative url to the page:
155
-
156
- [link to heading](example-page.html)
157
-
158
- Control of page breaks in the PDF
159
- ---------------------------------
160
-
161
- DocGen does not provide precision control over PDF layout. However, some steps can be taken in case of page break
162
- issues (the most common problem).
163
-
164
- To *force* a page break, insert the following before an element that should appear on a new page:
165
-
166
- <p class="dg-forceBreak"></p>
167
-
168
- DocGen automatically tries to eliminate page breaks *inside* code blocks, block quotes, and table rows.
169
- To apply the same technique to other elements, revert to HTML and apply the **dg-avoidBreak** class. For example:
170
-
171
- <p class="dg-avoidBreak">A long paragraph</p>
@@ -1,156 +0,0 @@
1
- This section shows examples of how to write content with CommonMark. See the [CommonMark Spec](http://spec.commonmark.org)
2
- for more detailed information.
3
-
4
- <style>
5
- .reference pre, .reference table, .reference blockquote {
6
- margin: 0;
7
- }
8
- .reference .codeCell pre {
9
- border: none;
10
- border-radius: 0;
11
- }
12
- .reference .codeCell {
13
- padding: 0;
14
- }
15
- </style>
16
-
17
- <div>
18
-
19
- <table class="reference" style="width: 100%">
20
-
21
- <tr><th>Element</th><th>What you type</th><th>What it looks like in DocGen</th></tr>
22
-
23
- <tr>
24
- <td class="r1">Page Heading</td>
25
- <td class="codeCell"><pre><code>
26
- Page Heading
27
- ============
28
- </code></pre></td>
29
- <td>
30
- <p class="dg-fakeHeading" style="font-size: 20px; padding-bottom: 6px;">Page Heading</p>
31
- </td>
32
- </tr>
33
-
34
- <tr>
35
- <td class="r1">Section Heading</td>
36
- <td class="codeCell"><pre><code>
37
- Section Heading
38
- ---------------
39
- </code></pre></td>
40
- <td>
41
- <p class="dg-fakeHeading" style="font-size: 18px; padding-bottom: 4px;">Section Heading</p>
42
- </td>
43
- </tr>
44
-
45
- <tr>
46
- <td class="r1">Minor Heading</td>
47
- <td class="codeCell"><pre><code>
48
- ### Minor Heading
49
- </code></pre></td>
50
- <td>
51
- <p class="dg-fakeHeading" style="font-size: 16px; padding-bottom: 4px;">Minor Heading</p>
52
- </td>
53
- </tr>
54
-
55
- <tr>
56
- <td class="r1">Fake Heading<br />(not in PDF contents list)</td>
57
- <td class="codeCell"><pre><code>
58
- &lt;p class="dg-fakeHeading">Fake&lt;/p>
59
- </code></pre></td>
60
- <td>
61
- <p class="dg-fakeHeading">Fake</p>
62
- </td>
63
- </tr>
64
-
65
- <tr>
66
- <td class="r1">Emphasis (italic)</td>
67
- <td class="codeCell"><pre><code>
68
- This text has *emphasis*
69
- </code></pre></td>
70
- <td>This text has <em>emphasis</em></td>
71
- </tr>
72
-
73
- <tr>
74
- <td class="r1">Strong (bold)</td>
75
- <td class="codeCell"><pre><code>
76
- This text is **bold**
77
- </code></pre></td>
78
- <td>This text is <strong>bold</strong></td>
79
- </tr>
80
-
81
- <tr>
82
- <td class="r1">Block quotes</td>
83
- <td class="codeCell"><pre><code>
84
- > This is a block quote.
85
- </code></pre></td>
86
- <td><blockquote>This is a block quote</blockquote></td>
87
- </tr>
88
-
89
- <tr>
90
- <td class="r1">Code block<br/> (indent with tab)</td>
91
- <td class="codeCell"><pre><code>
92
- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int some_code=0
93
- </code></td>
94
- <td><pre><code>int some_code=0;</code></pre></td>
95
- </tr>
96
-
97
- <tr>
98
- <td class="r1">Unordered List</td>
99
- <td class="codeCell"><pre><code>
100
- * unordered list
101
- * (items)
102
- </code></pre></td>
103
- <td><ul><li>unordered list</li><li>(items)</li></ul></td>
104
- </tr>
105
-
106
- <tr>
107
- <td class="r1">Ordered List</td>
108
- <td class="codeCell"><pre><code>
109
- 1. ordered list
110
- 2. (items)
111
- </code></pre></td>
112
- <td><ol><li>ordered list</li><li>(items)</li></ol></td>
113
- </tr>
114
-
115
- <tr>
116
- <td class="r1">External Links</td>
117
- <td class="codeCell"><pre><code>
118
- [link](http://www.google.com)
119
- </code></pre></td>
120
- <td><a href="http://www.google.com">link</a></td>
121
- </tr>
122
-
123
- <tr>
124
- <td class="r1">Links to a local file</td>
125
- <td class="codeCell"><pre><code>
126
- [attachment](user_guide.pdf)
127
- </code></pre></td>
128
- <td><a href="user_guide.pdf">attachment</a></td>
129
- </tr>
130
-
131
- <tr>
132
- <td class="r1">Diagrams<br/> (embedding images)</td>
133
- <td class="codeCell"><pre><code>
134
- ![](files/images/logo.png)
135
- </code></pre></td>
136
- <td><img src="files/images/logo.png"></td>
137
- </tr>
138
-
139
- <tr>
140
- <td class="r1">Simple table</td>
141
- <td class="codeCell"><pre><code>
142
- | Cell 1 | Cell 2 | Cell 3 |
143
- | Cell 4 | Cell 5 | Cell 6 |
144
- </code></pre></td>
145
- <td>
146
-
147
- <table style="width:300px;">
148
- <tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td></tr>
149
- <tr><td>Cell 4</td><td>Cell 5</td><td>Cell 6</td></tr>
150
- </table>
151
-
152
- </td>
153
- </tr>
154
-
155
- </table>
156
- </div>
@@ -1,57 +0,0 @@
1
- [
2
- {
3
- "heading" : "Quick Start",
4
- "column" : 1,
5
- "pages" : [
6
- {
7
- "title": "Overview",
8
- "source": "index.txt",
9
- "html": true
10
- },
11
- {
12
- "title": "Installation",
13
- "source": "installation.txt"
14
- },
15
- {
16
- "title": "Upgrading",
17
- "source": "upgrading.txt"
18
- }
19
- ]
20
- },
21
- {
22
- "heading" : "User Guide",
23
- "column" : 2,
24
- "pages" : [
25
- {
26
- "title": "Running DocGen",
27
- "source": "running.txt"
28
- },
29
- {
30
- "title": "Writing content",
31
- "source": "writing-content.txt"
32
- },
33
- {
34
- "title": "CommonMark reference",
35
- "source": "commonmark.txt"
36
- },
37
- {
38
- "title": "Advanced content",
39
- "source": "advanced-content.txt"
40
- }
41
- ]
42
- },
43
- {
44
- "heading" : "Help",
45
- "column" : 3,
46
- "pages" : [
47
- {
48
- "title": "Troubleshooting",
49
- "source": "troubleshooting.txt"
50
- },
51
- {
52
- "title": "Using with version control",
53
- "source": "version-control.txt"
54
- }
55
- ]
56
- }
57
- ]