docgen-tool 2.1.3 → 3.0.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/.gitattributes +1 -0
- package/.github/workflows/deploy-website.yml +28 -0
- package/.prettierignore +4 -0
- package/.prettierrc +4 -0
- package/LICENSE +35 -33
- package/{docgen → dist/docgen.js} +11 -22
- package/docgen.js +95 -0
- package/package.json +47 -20
- package/source/__test__/test-run/contents.json +12 -0
- package/source/__test__/test-run/overview.txt +3 -0
- package/source/__test__/test-run/parameters.json +32 -0
- package/source/__test__/test-run/release-notes.txt +4 -0
- package/source/docgen.js +896 -776
- package/source/example/contents.json +11 -11
- package/source/example/index.txt +3 -3
- package/source/example/parameters.json +36 -36
- package/source/internal-readme.md +4 -0
- package/source/pdf-stylesheet.css +26 -20
- package/source/require/docgen.css +76 -69
- package/source/require/katexInjector.js +9 -13
- package/source/require/print.css +26 -19
- package/source/templates/main.html +93 -93
- package/source/user-guide/advanced-content.txt +170 -170
- package/source/user-guide/contents.json +56 -56
- package/source/user-guide/files/images/svg/inkit-logo.svg +9 -0
- package/source/user-guide/index.txt +257 -244
- package/source/user-guide/installation.txt +49 -49
- package/source/user-guide/parameters.json +36 -36
- package/source/user-guide/release-notes.txt +69 -63
- package/source/user-guide/running.txt +46 -46
- package/source/user-guide/troubleshooting.txt +31 -31
- package/source/user-guide/upgrading.txt +25 -25
- package/source/user-guide/version-control.txt +13 -13
- package/source/user-guide/writing-content.txt +269 -269
- package/tsconfig.json +8 -0
- package/.npmignore +0 -2
- package/docs/advanced-content.html +0 -239
- package/docs/commonmark.html +0 -225
- package/docs/docgen.pdf +0 -0
- package/docs/files/images/overview.png +0 -0
- package/docs/files/images/pdf.png +0 -0
- package/docs/files/images/svg/icon.svg +0 -845
- package/docs/files/images/svg/overview.svg +0 -1345
- package/docs/files/images/text.png +0 -0
- package/docs/files/images/web.png +0 -0
- package/docs/index.html +0 -333
- package/docs/installation.html +0 -121
- package/docs/ownership.html +0 -164
- package/docs/release-notes.html +0 -148
- package/docs/require/docgen.css +0 -131
- package/docs/require/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/docs/require/katex/fonts/KaTeX_Main-Bold.woff +0 -0
- package/docs/require/katex/fonts/KaTeX_Main-Italic.woff +0 -0
- package/docs/require/katex/fonts/KaTeX_Main-Regular.woff +0 -0
- package/docs/require/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/docs/require/katex/fonts/KaTeX_Math-Italic.woff +0 -0
- package/docs/require/katex/fonts/KaTeX_Math-Regular.woff +0 -0
- package/docs/require/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/docs/require/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/docs/require/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/docs/require/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/docs/require/katex/katex.min.css +0 -1
- package/docs/require/katex/katex.min.js +0 -6
- package/docs/require/katexInjector.js +0 -22
- package/docs/require/print.css +0 -19
- package/docs/require/webknife/fonts/DroidSansMono.woff +0 -0
- package/docs/require/webknife/fonts/OpenSans.woff +0 -0
- package/docs/require/webknife/fonts/OpenSansBold.woff +0 -0
- package/docs/require/webknife/fonts/OpenSansBoldItalic.woff +0 -0
- package/docs/require/webknife/fonts/OpenSansItalic.woff +0 -0
- package/docs/require/webknife/framework.icons.js +0 -82
- package/docs/require/webknife/framework.min.css +0 -3
- package/docs/require/webknife/framework.min.js +0 -14
- package/docs/require/webknife/highlight.min.css +0 -1
- package/docs/require/webknife/highlight.min.js +0 -6
- package/docs/running.html +0 -123
- package/docs/troubleshooting.html +0 -105
- package/docs/upgrading.html +0 -124
- package/docs/version-control.html +0 -102
- package/docs/writing-content.html +0 -305
- /package/{docs → source/__test__/test-run}/files/images/logo.png +0 -0
|
@@ -1,245 +1,258 @@
|
|
|
1
|
-
<style>
|
|
2
|
-
#dg-content, #dg-innerContent {
|
|
3
|
-
padding-top: 0;
|
|
4
|
-
}
|
|
5
|
-
#banner, #banner-buttons {
|
|
6
|
-
margin: 0;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
#banner {
|
|
10
|
-
color: #385691;
|
|
11
|
-
font-weight: bold;
|
|
12
|
-
padding-top: 30px;
|
|
13
|
-
background-color: #f7f7f7;
|
|
14
|
-
box-shadow: inset 0px 5px 5px 0px #e7e7e7;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
#banner img {
|
|
18
|
-
padding: 25px 0 25px 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
#banner-buttons {
|
|
22
|
-
background-color: #f7f7f7;
|
|
23
|
-
padding: 20px 0 20px 0;
|
|
24
|
-
background-color: #999;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.spaced {
|
|
28
|
-
margin-right: 15px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.heading-text {
|
|
32
|
-
font-size: 16px;
|
|
33
|
-
text-align: center;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.segment {
|
|
37
|
-
border-bottom: 2px solid #4d4d4d;
|
|
38
|
-
padding: 20px 0 20px 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.how-it-works li {
|
|
42
|
-
vertical-align: top;
|
|
43
|
-
display: inline-block;
|
|
44
|
-
width: 290px;
|
|
45
|
-
margin: 10px;
|
|
46
|
-
padding: 0;
|
|
47
|
-
border: 2px solid #4d4d4d;
|
|
48
|
-
border-radius: 10px 10px 0 0;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.how-it-works li p:first-of-type {
|
|
52
|
-
margin: 0;
|
|
53
|
-
border: none;
|
|
54
|
-
background-color: #4d4d4d;
|
|
55
|
-
color: white;
|
|
56
|
-
padding: 18px 10px 18px 10px;
|
|
57
|
-
text-align: center;
|
|
58
|
-
font-style: italic;
|
|
59
|
-
font-weight: bold;
|
|
60
|
-
border-radius: 7px 7px 0 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.how-it-works li p:first-of-type a {
|
|
64
|
-
color: white;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.how-it-works li p:last-of-type {
|
|
68
|
-
padding:0;
|
|
69
|
-
margin:0;
|
|
70
|
-
height: 400px;
|
|
71
|
-
background-repeat:no-repeat;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.features {
|
|
75
|
-
margin: 0;
|
|
76
|
-
padding: 0;
|
|
77
|
-
width: 100%;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.features li {
|
|
81
|
-
vertical-align: top;
|
|
82
|
-
display: inline-block;
|
|
83
|
-
width: 220px;
|
|
84
|
-
margin: 10px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.features li span {
|
|
88
|
-
vertical-align: middle;
|
|
89
|
-
margin-right: 5px;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.features li p:first-of-type {
|
|
93
|
-
margin: 0;
|
|
94
|
-
padding: 0 0 3px 0;
|
|
95
|
-
font-size: 14px;
|
|
96
|
-
font-weight: bold;
|
|
97
|
-
color: #385691;
|
|
98
|
-
border: none;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.features li p:last-of-type {
|
|
102
|
-
padding-top: 5px;
|
|
103
|
-
margin: 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
</style>
|
|
107
|
-
|
|
108
|
-
<div id="banner" class="segment"><div class="w-fixed-width">
|
|
109
|
-
<p class="w-massive w-center w-no-underline">Better documentation for software products.</p>
|
|
110
|
-
<img class="w-center" src="files/images/overview.png" alt="overview" />
|
|
111
|
-
</div></div>
|
|
112
|
-
|
|
113
|
-
<div id="banner-buttons" class="segment"><div class="w-fixed-width">
|
|
114
|
-
<span class="w-center">
|
|
115
|
-
<a href="https://github.com/mtmacdonald/docgen/releases" class="w-button-link w-colored w-large spaced">Download</a>
|
|
116
|
-
<a href="https://github.com/mtmacdonald/docgen/issues" class="w-button-link w-dark">Report Issues</a>
|
|
117
|
-
</span>
|
|
118
|
-
</div></div>
|
|
119
|
-
|
|
120
|
-
<div class="segment" style="border-bottom: none; margin-bottom:0; padding-bottom:0;"><div class="w-fixed-width">
|
|
121
|
-
<p class="heading-text">
|
|
122
|
-
<strong>DocGen</strong> is a <strong>static website generator</strong> that's ideal for making technical user guides for software products.
|
|
123
|
-
</p>
|
|
124
|
-
|
|
125
|
-
<h2 class="dg-hiddenTitle" id="features">Features</h2>
|
|
126
|
-
<ul class="features">
|
|
127
|
-
<li>
|
|
128
|
-
<p><span class="w-icon" data-name="monitor"></span><span>Self-contained website</span></p>
|
|
129
|
-
<p>Creates a static website that works on any server, or as local files (CD, shared drive etc).</p>
|
|
130
|
-
</li>
|
|
131
|
-
<li>
|
|
132
|
-
<p><span class="w-icon" data-name="document"></span><span>Optional PDF</span></p>
|
|
133
|
-
<p>Also publishes the website content as a single PDF, using <a href="http://wkhtmltopdf.org">wkhtmltopdf</a>.</p>
|
|
134
|
-
</li>
|
|
135
|
-
<li>
|
|
136
|
-
<p><span class="w-icon" data-name="edit"></span><span>Human-friendly input</span></p>
|
|
137
|
-
<p>Write in plain text, or the human-friendly <a href="http://commonmark.org">CommonMark</a> format
|
|
138
|
-
(Markdown).</p>
|
|
139
|
-
</li>
|
|
140
|
-
<li>
|
|
141
|
-
<p><span class="w-icon" data-name="gear_a"></span><span>Easy to version control</span></p>
|
|
142
|
-
<p>Easily version control software documentation in sync with its product.</p>
|
|
143
|
-
</li>
|
|
144
|
-
<li>
|
|
145
|
-
<p><span class="w-icon" data-name="clipboard"></span><span>Table of contents</span></p>
|
|
146
|
-
<p>Automatically creates tables of contents, with links and PDF page numbers.</p>
|
|
147
|
-
</li>
|
|
148
|
-
<li>
|
|
149
|
-
<p><span class="w-icon" data-name="code"></span><span>Code syntax highlighting</span></p>
|
|
150
|
-
<p>Automatically highlights code blocks, using <a href="https://highlightjs.org">Highlight.js</a>, with language detection.</p>
|
|
151
|
-
</li>
|
|
152
|
-
<li>
|
|
153
|
-
<p><span class="w-icon" data-name="compose"></span><span>Mathematical expressions</span></p>
|
|
154
|
-
<p>Displays mathematical expressions without plugins, using either
|
|
155
|
-
<a href="http://khan.github.io/KaTeX/">KaTeX</a> or
|
|
156
|
-
<a href="https://www.mathjax.org">MathJax</a>.</p>
|
|
157
|
-
</li>
|
|
158
|
-
<li>
|
|
159
|
-
<p><span class="w-icon" data-name="star"></span><span>Branding and metadata</span></p>
|
|
160
|
-
<p>Easily brand with a logo, attribute ownership, and attach release notes.</p>
|
|
161
|
-
</li>
|
|
162
|
-
</ul>
|
|
163
|
-
|
|
164
|
-
<p class="heading-text">DocGen makes it easy for anyone to create high-quality technical documentation.</p>
|
|
165
|
-
|
|
166
|
-
</div></div>
|
|
167
|
-
|
|
168
|
-
<div style="padding-top:20px;"><div class="w-fixed-width">
|
|
169
|
-
|
|
170
|
-
<
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
<
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
</
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
<
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
<li>
|
|
206
|
-
<li>
|
|
207
|
-
<li>
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
</
|
|
211
|
-
</
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
</
|
|
218
|
-
|
|
219
|
-
<
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
<
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
<
|
|
238
|
-
|
|
239
|
-
<
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
<
|
|
244
|
-
|
|
1
|
+
<style>
|
|
2
|
+
#dg-content, #dg-innerContent {
|
|
3
|
+
padding-top: 0;
|
|
4
|
+
}
|
|
5
|
+
#banner, #banner-buttons {
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
#banner {
|
|
10
|
+
color: #385691;
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
padding-top: 30px;
|
|
13
|
+
background-color: #f7f7f7;
|
|
14
|
+
box-shadow: inset 0px 5px 5px 0px #e7e7e7;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#banner img {
|
|
18
|
+
padding: 25px 0 25px 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#banner-buttons {
|
|
22
|
+
background-color: #f7f7f7;
|
|
23
|
+
padding: 20px 0 20px 0;
|
|
24
|
+
background-color: #999;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.spaced {
|
|
28
|
+
margin-right: 15px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.heading-text {
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
text-align: center;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.segment {
|
|
37
|
+
border-bottom: 2px solid #4d4d4d;
|
|
38
|
+
padding: 20px 0 20px 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.how-it-works li {
|
|
42
|
+
vertical-align: top;
|
|
43
|
+
display: inline-block;
|
|
44
|
+
width: 290px;
|
|
45
|
+
margin: 10px;
|
|
46
|
+
padding: 0;
|
|
47
|
+
border: 2px solid #4d4d4d;
|
|
48
|
+
border-radius: 10px 10px 0 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.how-it-works li p:first-of-type {
|
|
52
|
+
margin: 0;
|
|
53
|
+
border: none;
|
|
54
|
+
background-color: #4d4d4d;
|
|
55
|
+
color: white;
|
|
56
|
+
padding: 18px 10px 18px 10px;
|
|
57
|
+
text-align: center;
|
|
58
|
+
font-style: italic;
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
border-radius: 7px 7px 0 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.how-it-works li p:first-of-type a {
|
|
64
|
+
color: white;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.how-it-works li p:last-of-type {
|
|
68
|
+
padding:0;
|
|
69
|
+
margin:0;
|
|
70
|
+
height: 400px;
|
|
71
|
+
background-repeat:no-repeat;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.features {
|
|
75
|
+
margin: 0;
|
|
76
|
+
padding: 0;
|
|
77
|
+
width: 100%;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.features li {
|
|
81
|
+
vertical-align: top;
|
|
82
|
+
display: inline-block;
|
|
83
|
+
width: 220px;
|
|
84
|
+
margin: 10px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.features li span {
|
|
88
|
+
vertical-align: middle;
|
|
89
|
+
margin-right: 5px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.features li p:first-of-type {
|
|
93
|
+
margin: 0;
|
|
94
|
+
padding: 0 0 3px 0;
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
font-weight: bold;
|
|
97
|
+
color: #385691;
|
|
98
|
+
border: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.features li p:last-of-type {
|
|
102
|
+
padding-top: 5px;
|
|
103
|
+
margin: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
</style>
|
|
107
|
+
|
|
108
|
+
<div id="banner" class="segment"><div class="w-fixed-width">
|
|
109
|
+
<p class="w-massive w-center w-no-underline">Better documentation for software products.</p>
|
|
110
|
+
<img class="w-center" src="files/images/overview.png" alt="overview" />
|
|
111
|
+
</div></div>
|
|
112
|
+
|
|
113
|
+
<div id="banner-buttons" class="segment"><div class="w-fixed-width">
|
|
114
|
+
<span class="w-center">
|
|
115
|
+
<a href="https://github.com/mtmacdonald/docgen/releases" class="w-button-link w-colored w-large spaced">Download</a>
|
|
116
|
+
<a href="https://github.com/mtmacdonald/docgen/issues" class="w-button-link w-dark">Report Issues</a>
|
|
117
|
+
</span>
|
|
118
|
+
</div></div>
|
|
119
|
+
|
|
120
|
+
<div class="segment" style="border-bottom: none; margin-bottom:0; padding-bottom:0;"><div class="w-fixed-width">
|
|
121
|
+
<p class="heading-text">
|
|
122
|
+
<strong>DocGen</strong> is a <strong>static website generator</strong> that's ideal for making technical user guides for software products.
|
|
123
|
+
</p>
|
|
124
|
+
|
|
125
|
+
<h2 class="dg-hiddenTitle" id="features">Features</h2>
|
|
126
|
+
<ul class="features">
|
|
127
|
+
<li>
|
|
128
|
+
<p><span class="w-icon" data-name="monitor"></span><span>Self-contained website</span></p>
|
|
129
|
+
<p>Creates a static website that works on any server, or as local files (CD, shared drive etc).</p>
|
|
130
|
+
</li>
|
|
131
|
+
<li>
|
|
132
|
+
<p><span class="w-icon" data-name="document"></span><span>Optional PDF</span></p>
|
|
133
|
+
<p>Also publishes the website content as a single PDF, using <a href="http://wkhtmltopdf.org">wkhtmltopdf</a>.</p>
|
|
134
|
+
</li>
|
|
135
|
+
<li>
|
|
136
|
+
<p><span class="w-icon" data-name="edit"></span><span>Human-friendly input</span></p>
|
|
137
|
+
<p>Write in plain text, or the human-friendly <a href="http://commonmark.org">CommonMark</a> format
|
|
138
|
+
(Markdown).</p>
|
|
139
|
+
</li>
|
|
140
|
+
<li>
|
|
141
|
+
<p><span class="w-icon" data-name="gear_a"></span><span>Easy to version control</span></p>
|
|
142
|
+
<p>Easily version control software documentation in sync with its product.</p>
|
|
143
|
+
</li>
|
|
144
|
+
<li>
|
|
145
|
+
<p><span class="w-icon" data-name="clipboard"></span><span>Table of contents</span></p>
|
|
146
|
+
<p>Automatically creates tables of contents, with links and PDF page numbers.</p>
|
|
147
|
+
</li>
|
|
148
|
+
<li>
|
|
149
|
+
<p><span class="w-icon" data-name="code"></span><span>Code syntax highlighting</span></p>
|
|
150
|
+
<p>Automatically highlights code blocks, using <a href="https://highlightjs.org">Highlight.js</a>, with language detection.</p>
|
|
151
|
+
</li>
|
|
152
|
+
<li>
|
|
153
|
+
<p><span class="w-icon" data-name="compose"></span><span>Mathematical expressions</span></p>
|
|
154
|
+
<p>Displays mathematical expressions without plugins, using either
|
|
155
|
+
<a href="http://khan.github.io/KaTeX/">KaTeX</a> or
|
|
156
|
+
<a href="https://www.mathjax.org">MathJax</a>.</p>
|
|
157
|
+
</li>
|
|
158
|
+
<li>
|
|
159
|
+
<p><span class="w-icon" data-name="star"></span><span>Branding and metadata</span></p>
|
|
160
|
+
<p>Easily brand with a logo, attribute ownership, and attach release notes.</p>
|
|
161
|
+
</li>
|
|
162
|
+
</ul>
|
|
163
|
+
|
|
164
|
+
<p class="heading-text">DocGen makes it easy for anyone to create high-quality technical documentation.</p>
|
|
165
|
+
|
|
166
|
+
</div></div>
|
|
167
|
+
|
|
168
|
+
<div style="padding-top:20px;"><div class="w-fixed-width">
|
|
169
|
+
|
|
170
|
+
<h2>Sponsors</h2>
|
|
171
|
+
|
|
172
|
+
DocGen is open-source software sponsored by <a href="https://www.inkit.com">inkit.com</a>.
|
|
173
|
+
|
|
174
|
+
<div class="w-center">
|
|
175
|
+
<a href="https://www.inkit.com">
|
|
176
|
+
<img
|
|
177
|
+
src="files/images/svg/inkit-logo.svg"
|
|
178
|
+
style="width: 180px"
|
|
179
|
+
/>
|
|
180
|
+
</a>
|
|
181
|
+
</div>
|
|
182
|
+
|
|
183
|
+
<p class="dg-forceBreak"></p>
|
|
184
|
+
<h2>How it works</h2>
|
|
185
|
+
|
|
186
|
+
<ul class="how-it-works" id="how-it-works">
|
|
187
|
+
<li>
|
|
188
|
+
<p>"You write in plain text or human-friendly <a href="http://commonmark.org">CommonMark</a>"</p>
|
|
189
|
+
<p style="background-image:url('files/images/text.png');"></p>
|
|
190
|
+
</li>
|
|
191
|
+
<li>
|
|
192
|
+
<p>"DocGen styles and publishes all your content as a website"</p>
|
|
193
|
+
<p style="background-image:url('files/images/web.png');"></p>
|
|
194
|
+
</li>
|
|
195
|
+
<li>
|
|
196
|
+
<p>"DocGen also creates an equivalent PDF copy"</p>
|
|
197
|
+
<p style="background-image:url('files/images/pdf.png');"></p>
|
|
198
|
+
</li>
|
|
199
|
+
</ul>
|
|
200
|
+
|
|
201
|
+
<table style="width:600px; border:none; padding:0;">
|
|
202
|
+
<tr style="border:none; padding:0;">
|
|
203
|
+
|
|
204
|
+
<td style="border:none; text-align:left; padding:0; vertical-align: top;"><ul>
|
|
205
|
+
<li class="list-heading">Flexible Input Formats</li>
|
|
206
|
+
<li>Plain text</li>
|
|
207
|
+
<li>CommonMark (Markdown)</li>
|
|
208
|
+
<li>HTML</li>
|
|
209
|
+
<li>LaTeX mathematical expressions</li>
|
|
210
|
+
<li>Image diagrams</li>
|
|
211
|
+
<li>Attach other documents</li>
|
|
212
|
+
</ul></td>
|
|
213
|
+
|
|
214
|
+
<td style="border:none; text-align:left; padding:0; vertical-align: top;"><ul>
|
|
215
|
+
<li class="list-heading">Configurable Metadata</li>
|
|
216
|
+
<li>Branding (logo, title, organization)</li>
|
|
217
|
+
<li>License, copyright, and legal markings</li>
|
|
218
|
+
<li>Ownership and attribution</li>
|
|
219
|
+
<li>Version information</li>
|
|
220
|
+
<li>Release notes (change log)</li>
|
|
221
|
+
</ul></td>
|
|
222
|
+
|
|
223
|
+
</tr>
|
|
224
|
+
</table>
|
|
225
|
+
|
|
226
|
+
<blockquote>
|
|
227
|
+
DocGen is probably not the right tool for precision PDF layout. Or for product configurators which need to output
|
|
228
|
+
variants based on a common template. Docgen is intended more for free-form, human generated content which is regularly
|
|
229
|
+
updated and refactored, and standardised for each product release.
|
|
230
|
+
</blockquote>
|
|
231
|
+
|
|
232
|
+
<h2 id="browser-support">Browser support</h2>
|
|
233
|
+
|
|
234
|
+
Output created by DocGen works in modern browsers (desktop and mobile devices).
|
|
235
|
+
|
|
236
|
+
<ul><li/>tested in <a href= "http://windows.microsoft.com/en-us/internet-explorer/download-ie">Internet Explorer 9+</a>,
|
|
237
|
+
<a href= "http://www.google.com/chrome">Chrome</a>,
|
|
238
|
+
<a href= "https://www.mozilla.org/en-US/firefox/new">Firefox</a>,
|
|
239
|
+
<a href= "https://www.apple.com/safari">Safari</a></li></ul>
|
|
240
|
+
|
|
241
|
+
<h2 id="quick-start">Quick start</h2>
|
|
242
|
+
|
|
243
|
+
<ul>
|
|
244
|
+
<li class="list-heading">In just three commands:</li>
|
|
245
|
+
<li>Install DocGen</li>
|
|
246
|
+
<li>Scaffold an empty template</li>
|
|
247
|
+
<li>Generate a static website</li>
|
|
248
|
+
</ul
|
|
249
|
+
|
|
250
|
+
<p>Enter these commands in the terminal:</p>
|
|
251
|
+
|
|
252
|
+
<pre><code>sudo npm install -g docgen-tool
|
|
253
|
+
docgen scaffold
|
|
254
|
+
docgen run -o $HOME/docgen-example</code></pre>
|
|
255
|
+
|
|
256
|
+
<p>See the <a href="installation.html">installation guide</a> for more detailed instructions.</p>
|
|
257
|
+
|
|
245
258
|
</div></div>
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
This section explains how to install DocGen.
|
|
2
|
-
|
|
3
|
-
Supported platform
|
|
4
|
-
------------------
|
|
5
|
-
|
|
6
|
-
*'Supported platform'* means the software required to **run** the DocGen tool. The static website **produced** by
|
|
7
|
-
DocGen will work on all modern browsers on all all major operating systems
|
|
8
|
-
(see [browser support](index.html#browser-support)).
|
|
9
|
-
|
|
10
|
-
<p class="w-information">
|
|
11
|
-
The supported platform for this version of DocGen is:
|
|
12
|
-
<strong>Ubuntu 14.04</strong> with <strong>Node.js 0.12.0</strong>
|
|
13
|
-
and <strong>wkhtmltopdf 0.12.2.1 </strong>(with patched qt).
|
|
14
|
-
</p>
|
|
15
|
-
|
|
16
|
-
While other operating systems and dependency versions may work, they are not tested or officially supported.
|
|
17
|
-
|
|
18
|
-
Dependencies
|
|
19
|
-
------------
|
|
20
|
-
|
|
21
|
-
DocGen requires **[Node.js](https://nodejs.org)**. To install on Ubuntu Linux, enter these terminal commands:
|
|
22
|
-
|
|
23
|
-
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
|
|
24
|
-
sudo apt-get install -y nodejs
|
|
25
|
-
|
|
26
|
-
This method uses the
|
|
27
|
-
[NodeSource Linux Repositories](https://nodesource.com/blog/nodejs-v012-iojs-and-the-nodesource-linux-repositories)
|
|
28
|
-
(recommended).
|
|
29
|
-
|
|
30
|
-
For other platforms (not supported), see the [download page](https://nodejs.org/download) or vendor instructions.
|
|
31
|
-
|
|
32
|
-
Optional dependencies (only for PDF)
|
|
33
|
-
------------------------------------
|
|
34
|
-
|
|
35
|
-
For optional PDF support, DocGen requires **[wkhtmltopdf](http://wkhtmltopdf.org)**. See the wkthmltopdf website for
|
|
36
|
-
installation instructions.
|
|
37
|
-
|
|
38
|
-
Quick install with NPM
|
|
39
|
-
----------------------
|
|
40
|
-
|
|
41
|
-
The quickest way to install DocGen is with **[npm](https://www.npmjs.com)** (the JavaScript package manager). Enter
|
|
42
|
-
these terminal commands:
|
|
43
|
-
|
|
44
|
-
sudo npm install -g docgen-tool
|
|
45
|
-
|
|
46
|
-
Install by direct download
|
|
47
|
-
--------------------------
|
|
48
|
-
|
|
49
|
-
DocGen can also be installed by [direct download](https://github.com/mtmacdonald/docgen).
|
|
1
|
+
This section explains how to install DocGen.
|
|
2
|
+
|
|
3
|
+
Supported platform
|
|
4
|
+
------------------
|
|
5
|
+
|
|
6
|
+
*'Supported platform'* means the software required to **run** the DocGen tool. The static website **produced** by
|
|
7
|
+
DocGen will work on all modern browsers on all all major operating systems
|
|
8
|
+
(see [browser support](index.html#browser-support)).
|
|
9
|
+
|
|
10
|
+
<p class="w-information">
|
|
11
|
+
The supported platform for this version of DocGen is:
|
|
12
|
+
<strong>Ubuntu 14.04</strong> with <strong>Node.js 0.12.0</strong>
|
|
13
|
+
and <strong>wkhtmltopdf 0.12.2.1 </strong>(with patched qt).
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
While other operating systems and dependency versions may work, they are not tested or officially supported.
|
|
17
|
+
|
|
18
|
+
Dependencies
|
|
19
|
+
------------
|
|
20
|
+
|
|
21
|
+
DocGen requires **[Node.js](https://nodejs.org)**. To install on Ubuntu Linux, enter these terminal commands:
|
|
22
|
+
|
|
23
|
+
curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
|
|
24
|
+
sudo apt-get install -y nodejs
|
|
25
|
+
|
|
26
|
+
This method uses the
|
|
27
|
+
[NodeSource Linux Repositories](https://nodesource.com/blog/nodejs-v012-iojs-and-the-nodesource-linux-repositories)
|
|
28
|
+
(recommended).
|
|
29
|
+
|
|
30
|
+
For other platforms (not supported), see the [download page](https://nodejs.org/download) or vendor instructions.
|
|
31
|
+
|
|
32
|
+
Optional dependencies (only for PDF)
|
|
33
|
+
------------------------------------
|
|
34
|
+
|
|
35
|
+
For optional PDF support, DocGen requires **[wkhtmltopdf](http://wkhtmltopdf.org)**. See the wkthmltopdf website for
|
|
36
|
+
installation instructions.
|
|
37
|
+
|
|
38
|
+
Quick install with NPM
|
|
39
|
+
----------------------
|
|
40
|
+
|
|
41
|
+
The quickest way to install DocGen is with **[npm](https://www.npmjs.com)** (the JavaScript package manager). Enter
|
|
42
|
+
these terminal commands:
|
|
43
|
+
|
|
44
|
+
sudo npm install -g docgen-tool
|
|
45
|
+
|
|
46
|
+
Install by direct download
|
|
47
|
+
--------------------------
|
|
48
|
+
|
|
49
|
+
DocGen can also be installed by [direct download](https://github.com/mtmacdonald/docgen).
|