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.
- package/LICENSE +35 -33
- package/{docgen → dist/docgen.js} +13 -24
- package/{source → dist/source}/docgen.js +380 -357
- package/dist/source/require/docgen.css +138 -0
- package/dist/source/require/katexInjector.js +18 -0
- package/dist/source/require/print.css +26 -0
- package/{source → dist/source}/templates/main.html +93 -93
- package/package.json +50 -20
- 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/logo.png +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/katexInjector.js +0 -22
- package/docs/require/print.css +0 -19
- 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/index.html +0 -10
- package/source/example/contents.json +0 -12
- package/source/example/files/images/logo.png +0 -0
- package/source/example/index.txt +0 -4
- package/source/example/parameters.json +0 -37
- package/source/example/release-notes.txt +0 -1
- package/source/optional/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/source/optional/katex/fonts/KaTeX_Main-Bold.woff +0 -0
- package/source/optional/katex/fonts/KaTeX_Main-Italic.woff +0 -0
- package/source/optional/katex/fonts/KaTeX_Main-Regular.woff +0 -0
- package/source/optional/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/source/optional/katex/fonts/KaTeX_Math-Italic.woff +0 -0
- package/source/optional/katex/fonts/KaTeX_Math-Regular.woff +0 -0
- package/source/optional/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/source/optional/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/source/optional/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/source/optional/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/source/optional/katex/katex.min.css +0 -1
- package/source/optional/katex/katex.min.js +0 -6
- package/source/pdf-stylesheet.css +0 -53
- package/source/release-checklist.txt +0 -27
- package/source/require/docgen.css +0 -131
- package/source/require/katexInjector.js +0 -22
- package/source/require/print.css +0 -19
- package/source/require/webknife/fonts/DroidSansMono.woff +0 -0
- package/source/require/webknife/fonts/OpenSans.woff +0 -0
- package/source/require/webknife/fonts/OpenSansBold.woff +0 -0
- package/source/require/webknife/fonts/OpenSansBoldItalic.woff +0 -0
- package/source/require/webknife/fonts/OpenSansItalic.woff +0 -0
- package/source/require/webknife/framework.icons.js +0 -82
- package/source/require/webknife/framework.min.css +0 -3
- package/source/require/webknife/framework.min.js +0 -14
- package/source/require/webknife/highlight.min.css +0 -1
- package/source/require/webknife/highlight.min.js +0 -6
- package/source/user-guide/advanced-content.txt +0 -171
- package/source/user-guide/commonmark.txt +0 -156
- package/source/user-guide/contents.json +0 -57
- package/source/user-guide/files/images/logo.png +0 -0
- package/source/user-guide/files/images/overview.png +0 -0
- package/source/user-guide/files/images/pdf.png +0 -0
- package/source/user-guide/files/images/svg/icon.svg +0 -845
- package/source/user-guide/files/images/svg/overview.svg +0 -1345
- package/source/user-guide/files/images/text.png +0 -0
- package/source/user-guide/files/images/web.png +0 -0
- package/source/user-guide/index.txt +0 -245
- package/source/user-guide/installation.txt +0 -49
- package/source/user-guide/parameters.json +0 -37
- package/source/user-guide/release-notes.txt +0 -64
- package/source/user-guide/running.txt +0 -47
- package/source/user-guide/troubleshooting.txt +0 -32
- package/source/user-guide/upgrading.txt +0 -25
- package/source/user-guide/version-control.txt +0 -13
- package/source/user-guide/writing-content.txt +0 -269
- /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
- /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Main-Bold.woff +0 -0
- /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Main-Italic.woff +0 -0
- /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Main-Regular.woff +0 -0
- /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Math-Italic.woff +0 -0
- /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Math-Regular.woff +0 -0
- /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
- /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
- /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
- /package/{docs/require → dist/source/optional}/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
- /package/{docs/require → dist/source/optional}/katex/katex.min.css +0 -0
- /package/{docs/require → dist/source/optional}/katex/katex.min.js +0 -0
- /package/{source → dist/source}/pdf-contents.xsl +0 -0
- /package/{docs → dist/source}/require/webknife/fonts/DroidSansMono.woff +0 -0
- /package/{docs → dist/source}/require/webknife/fonts/OpenSans.woff +0 -0
- /package/{docs → dist/source}/require/webknife/fonts/OpenSansBold.woff +0 -0
- /package/{docs → dist/source}/require/webknife/fonts/OpenSansBoldItalic.woff +0 -0
- /package/{docs → dist/source}/require/webknife/fonts/OpenSansItalic.woff +0 -0
- /package/{docs → dist/source}/require/webknife/framework.icons.js +0 -0
- /package/{docs → dist/source}/require/webknife/framework.min.css +0 -0
- /package/{docs → dist/source}/require/webknife/framework.min.js +0 -0
- /package/{docs → dist/source}/require/webknife/highlight.min.css +0 -0
- /package/{docs → dist/source}/require/webknife/highlight.min.js +0 -0
- /package/{source → dist/source}/templates/pdfCover.html +0 -0
- /package/{source → dist/source}/templates/pdfFooter.html +0 -0
- /package/{source → dist/source}/templates/pdfHeader.html +0 -0
- /package/{source → dist/source}/templates/redirect.html +0 -0
- /package/{source → dist/source}/templates/webCover.html +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1,245 +0,0 @@
|
|
|
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
|
-
<p class="dg-forceBreak"></p>
|
|
171
|
-
<h2>How it works</h2>
|
|
172
|
-
|
|
173
|
-
<ul class="how-it-works" id="how-it-works">
|
|
174
|
-
<li>
|
|
175
|
-
<p>"You write in plain text or human-friendly <a href="http://commonmark.org">CommonMark</a>"</p>
|
|
176
|
-
<p style="background-image:url('files/images/text.png');"></p>
|
|
177
|
-
</li>
|
|
178
|
-
<li>
|
|
179
|
-
<p>"DocGen styles and publishes all your content as a website"</p>
|
|
180
|
-
<p style="background-image:url('files/images/web.png');"></p>
|
|
181
|
-
</li>
|
|
182
|
-
<li>
|
|
183
|
-
<p>"DocGen also creates an equivalent PDF copy"</p>
|
|
184
|
-
<p style="background-image:url('files/images/pdf.png');"></p>
|
|
185
|
-
</li>
|
|
186
|
-
</ul>
|
|
187
|
-
|
|
188
|
-
<table style="width:600px; border:none; padding:0;">
|
|
189
|
-
<tr style="border:none; padding:0;">
|
|
190
|
-
|
|
191
|
-
<td style="border:none; text-align:left; padding:0; vertical-align: top;"><ul>
|
|
192
|
-
<li class="list-heading">Flexible Input Formats</li>
|
|
193
|
-
<li>Plain text</li>
|
|
194
|
-
<li>CommonMark (Markdown)</li>
|
|
195
|
-
<li>HTML</li>
|
|
196
|
-
<li>LaTeX mathematical expressions</li>
|
|
197
|
-
<li>Image diagrams</li>
|
|
198
|
-
<li>Attach other documents</li>
|
|
199
|
-
</ul></td>
|
|
200
|
-
|
|
201
|
-
<td style="border:none; text-align:left; padding:0; vertical-align: top;"><ul>
|
|
202
|
-
<li class="list-heading">Configurable Metadata</li>
|
|
203
|
-
<li>Branding (logo, title, organization)</li>
|
|
204
|
-
<li>License, copyright, and legal markings</li>
|
|
205
|
-
<li>Ownership and attribution</li>
|
|
206
|
-
<li>Version information</li>
|
|
207
|
-
<li>Release notes (change log)</li>
|
|
208
|
-
</ul></td>
|
|
209
|
-
|
|
210
|
-
</tr>
|
|
211
|
-
</table>
|
|
212
|
-
|
|
213
|
-
<blockquote>
|
|
214
|
-
DocGen is probably not the right tool for precision PDF layout. Or for product configurators which need to output
|
|
215
|
-
variants based on a common template. Docgen is intended more for free-form, human generated content which is regularly
|
|
216
|
-
updated and refactored, and standardised for each product release.
|
|
217
|
-
</blockquote>
|
|
218
|
-
|
|
219
|
-
<h2 id="browser-support">Browser support</h2>
|
|
220
|
-
|
|
221
|
-
Output created by DocGen works in modern browsers (desktop and mobile devices).
|
|
222
|
-
|
|
223
|
-
<ul><li/>tested in <a href= "http://windows.microsoft.com/en-us/internet-explorer/download-ie">Internet Explorer 9+</a>,
|
|
224
|
-
<a href= "http://www.google.com/chrome">Chrome</a>,
|
|
225
|
-
<a href= "https://www.mozilla.org/en-US/firefox/new">Firefox</a>,
|
|
226
|
-
<a href= "https://www.apple.com/safari">Safari</a></li></ul>
|
|
227
|
-
|
|
228
|
-
<h2 id="quick-start">Quick start</h2>
|
|
229
|
-
|
|
230
|
-
<ul>
|
|
231
|
-
<li class="list-heading">In just three commands:</li>
|
|
232
|
-
<li>Install DocGen</li>
|
|
233
|
-
<li>Scaffold an empty template</li>
|
|
234
|
-
<li>Generate a static website</li>
|
|
235
|
-
</ul
|
|
236
|
-
|
|
237
|
-
<p>Enter these commands in the terminal:</p>
|
|
238
|
-
|
|
239
|
-
<pre><code>sudo npm install -g docgen-tool
|
|
240
|
-
docgen scaffold
|
|
241
|
-
docgen run -o $HOME/docgen-example</code></pre>
|
|
242
|
-
|
|
243
|
-
<p>See the <a href="installation.html">installation guide</a> for more detailed instructions.</p>
|
|
244
|
-
|
|
245
|
-
</div></div>
|
|
@@ -1,49 +0,0 @@
|
|
|
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,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"title" : "DocGen - a documentation tool",
|
|
3
|
-
"name": "DocGen",
|
|
4
|
-
"version" : "2.1.3",
|
|
5
|
-
"date" : "29/05/2015",
|
|
6
|
-
"organization" : {
|
|
7
|
-
"name" : "Mark Macdonald",
|
|
8
|
-
"url" : "https://github.com/mtmacdonald"
|
|
9
|
-
},
|
|
10
|
-
"author" : {
|
|
11
|
-
"name" : "Mark Macdonald",
|
|
12
|
-
"url" : "https://github.com/mtmacdonald"
|
|
13
|
-
},
|
|
14
|
-
"owner" : {
|
|
15
|
-
"name" : "Mark Macdonald",
|
|
16
|
-
"url" : "https://github.com/mtmacdonald"
|
|
17
|
-
},
|
|
18
|
-
"contributors" : [
|
|
19
|
-
{
|
|
20
|
-
"name" : "",
|
|
21
|
-
"url" : ""
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
"website" : {
|
|
25
|
-
"name" : "Github",
|
|
26
|
-
"url" : "https://github.com/mtmacdonald/docgen"
|
|
27
|
-
},
|
|
28
|
-
"backlink" : {
|
|
29
|
-
"name" : "",
|
|
30
|
-
"url" : ""
|
|
31
|
-
},
|
|
32
|
-
"module" : "",
|
|
33
|
-
"id" : "",
|
|
34
|
-
"summary" : "DocGen is a command-line documentation tool for software products. It takes plain text or CommonMark (Markdown) as input, and generates both a static website and a PDF copy.",
|
|
35
|
-
"marking" : "MIT License.",
|
|
36
|
-
"legalese" : ""
|
|
37
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
DocGen 2.1.3 released 29/05/2015
|
|
2
|
-
--------------------------------
|
|
3
|
-
|
|
4
|
-
- Allow more protocols in CommonMark links (see markdown-it [ticket #108](https://github.com/markdown-it/markdown-it/issues/108))
|
|
5
|
-
|
|
6
|
-
DocGen 2.1.2 released 28/05/2015
|
|
7
|
-
--------------------------------
|
|
8
|
-
|
|
9
|
-
- Fixed a regression defect (exception when running docgen scaffold) that first appeared in DocGen 2.1.0
|
|
10
|
-
|
|
11
|
-
DocGen 2.1.1 released 28/05/2015
|
|
12
|
-
--------------------------------
|
|
13
|
-
|
|
14
|
-
- Upgraded all node dependencies to the latest versions
|
|
15
|
-
- Upgraded styles to the latest release of Webknife (1.4.0)
|
|
16
|
-
|
|
17
|
-
DocGen 2.1.0 released 27/05/2015
|
|
18
|
-
--------------------------------
|
|
19
|
-
|
|
20
|
-
- Added a command-line option for specifying a custom path to wkhtmltopdf
|
|
21
|
-
|
|
22
|
-
DocGen 2.0.1 released 31/03/2015
|
|
23
|
-
--------------------------------
|
|
24
|
-
|
|
25
|
-
- Fixed the node package and user guide for installing with npm install -g
|
|
26
|
-
|
|
27
|
-
DocGen 2.0.0 released 31/03/2015
|
|
28
|
-
--------------------------------
|
|
29
|
-
|
|
30
|
-
- DocGen is now open source
|
|
31
|
-
- Rewritten in JavaScript for Node.js
|
|
32
|
-
- Much easier to install (hosted on npm)
|
|
33
|
-
- Dependencies are now version controlled (using npm)
|
|
34
|
-
- Modernized visual style (uses Webknife CSS framework)
|
|
35
|
-
- Input metadata files are now in JSON rather than YAML format
|
|
36
|
-
- Top-level page headings are now inserted automatically (from contents.json)
|
|
37
|
-
- The web and PDF tables of contents both correspond to contents.json
|
|
38
|
-
- Command-line options are now used for configuration, rather than a config file
|
|
39
|
-
- Command-line output is now color coded (green success, red error)
|
|
40
|
-
- Added usage information to the command line interface
|
|
41
|
-
- Generating the PDF is now an optional feature
|
|
42
|
-
- Upgraded to the latest version of the PDF generator (wkhtmltopdf)
|
|
43
|
-
- Added support for mathematical expressions (with KaTex or MathJax)
|
|
44
|
-
- Added support for a list of document contributors (for multiple authors)
|
|
45
|
-
- Added support for a header link back to the application (integrated docs)
|
|
46
|
-
- Added time to the generation timestamp
|
|
47
|
-
- Renamed 'change log' to 'release notes'
|
|
48
|
-
- Fixed issues with fonts and text kerning in the PDF copy
|
|
49
|
-
- Fixed defect where unexpected text appeared on some pages with a page table of contents
|
|
50
|
-
- Dropped support for Internet Explorer 7 and 8
|
|
51
|
-
- Dropped formal support for tool to run on multiple operating systems
|
|
52
|
-
- Removed support for 'Mark of the Web'
|
|
53
|
-
|
|
54
|
-
DocGen 1.0.1 released 18/01/2012
|
|
55
|
-
--------------------------------
|
|
56
|
-
|
|
57
|
-
- Fixed a bug causing the table of contents headings to sometimes appear in the wrong order
|
|
58
|
-
|
|
59
|
-
DocGen 1.0.0 released 04/11/2011
|
|
60
|
-
--------------------------------
|
|
61
|
-
|
|
62
|
-
- Ruby implementation (not released as open source)
|
|
63
|
-
- Creates a static website from Markdown input files
|
|
64
|
-
- Also creates a PDF copy using wkhtmltopdf
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
Overview
|
|
2
|
-
--------
|
|
3
|
-
|
|
4
|
-
DocGen is a command-line tool which takes plain text input files and outputs a static website.
|
|
5
|
-
|
|
6
|
-
Command-line usage
|
|
7
|
-
------------------
|
|
8
|
-
|
|
9
|
-
The DocGen command-line interface includes usage help for both the tool and its subcommands:
|
|
10
|
-
|
|
11
|
-
docgen --help
|
|
12
|
-
docgen run --help
|
|
13
|
-
|
|
14
|
-
Scaffold command
|
|
15
|
-
----------------
|
|
16
|
-
|
|
17
|
-
The **scaffold** command creates an *example* input directory. It outputs the minumum files required by DocGen, which
|
|
18
|
-
can then be used as a template for making any new website.
|
|
19
|
-
|
|
20
|
-
**Create a scaffold template in the working directory** (./)**:**
|
|
21
|
-
|
|
22
|
-
docgen scaffold
|
|
23
|
-
|
|
24
|
-
**Create a scaffold template in a specified directory:**
|
|
25
|
-
|
|
26
|
-
docgen scaffold -o $HOME/docgen-example
|
|
27
|
-
|
|
28
|
-
Run command
|
|
29
|
-
-----------
|
|
30
|
-
|
|
31
|
-
The **run** command transforms an input directory (plain text source) into an output directory (HTML+PDF).
|
|
32
|
-
|
|
33
|
-
**Basic usage:**
|
|
34
|
-
|
|
35
|
-
docgen run -i $HOME/docgen-example -o $HOME/docgen-output
|
|
36
|
-
|
|
37
|
-
**Optionally create a PDF:**
|
|
38
|
-
|
|
39
|
-
docgen run -i $HOME/docgen-example -o $HOME/docgen-output -p
|
|
40
|
-
|
|
41
|
-
**Optionally create a redirect page:**
|
|
42
|
-
|
|
43
|
-
docgen run -i $HOME/docgen-example -o $HOME/docgen-output -r
|
|
44
|
-
|
|
45
|
-
> The optional redirect page is an 'index.html' file that is placed in the output's parent directory. The redirect page
|
|
46
|
-
redirects the user to the homepage in the output directory. This is mostly useful for hosting the website without having
|
|
47
|
-
to place all the files in the root directory.
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
This section gives help on solving common issues with DocGen.
|
|
2
|
-
|
|
3
|
-
Displaying detailed errors
|
|
4
|
-
--------------------------
|
|
5
|
-
|
|
6
|
-
Pass the **-v** (verbose) option when running DocGen to get more detailed error messages.
|
|
7
|
-
|
|
8
|
-
PDF missing content
|
|
9
|
-
-------------------
|
|
10
|
-
|
|
11
|
-
In complex pages, the PDF generator (wkhtmltopdf) needs to be given enough time for dynamic content to be rendered.
|
|
12
|
-
Pass the **-d [milliseconds]** option to increase the rendering time for each page, if required.
|
|
13
|
-
|
|
14
|
-
Attached files not in PDF
|
|
15
|
-
-------------------------
|
|
16
|
-
|
|
17
|
-
Attached files are not converted to PDF, only the web content is.
|
|
18
|
-
|
|
19
|
-
Corrupted text characters
|
|
20
|
-
-------------------------
|
|
21
|
-
|
|
22
|
-
Make sure all the input text files are saved with UTF-8 encoding.
|
|
23
|
-
|
|
24
|
-
Missing logo
|
|
25
|
-
------------
|
|
26
|
-
|
|
27
|
-
The logo must be PNG format and saved with the path *files/images/logo.png*.
|
|
28
|
-
|
|
29
|
-
Other issues
|
|
30
|
-
------------
|
|
31
|
-
|
|
32
|
-
For any other problems, please submit a [an issue ticket](https://github.com/mtmacdonald/docgen/issues).
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
This section explains how to upgrade from old versions of DocGen.
|
|
2
|
-
|
|
3
|
-
DocGen 1.0.* to DocGen 2.0.0
|
|
4
|
-
----------------------------
|
|
5
|
-
|
|
6
|
-
DocGen 2 is not backwards compatible with DocGen 1, but the upgrade is easy with these instructions:
|
|
7
|
-
|
|
8
|
-
- Install DocGen 2 by following the [installation guide](installation.html)
|
|
9
|
-
- Create a replacement 'source' directory, e.g: **<code>docgen scaffold -o $HOME/source</code>**
|
|
10
|
-
- Migrate the source files
|
|
11
|
-
- Copy the source (.txt) files from the old 'Src' directory to the new 'source' directory
|
|
12
|
-
- Remove the top-level page headings in each source file (DocGen now inserts these automatically, based on contents.json)
|
|
13
|
-
- Rename *'change-log.txt'* to *'release-notes.txt'*
|
|
14
|
-
- Migrate the attached content
|
|
15
|
-
- Place a logo with filename 'logo.png' in 'files/images' directory (the logo is now part of the source)
|
|
16
|
-
- Copy the images from *'Images'* to *'files/images'*
|
|
17
|
-
- Copy attached files from *'Files'* to *'files'*
|
|
18
|
-
- Migrate the metadata
|
|
19
|
-
- Edit *'parameters.json'* with the relevant values from *'doc-parameters.yml'*
|
|
20
|
-
- Edit *'contents.json'* with the relevant values from *'table-of-contents.yml'*
|
|
21
|
-
- Run DocGen: **<code>docgen -i $HOME/source -o $HOME/output</code>**
|
|
22
|
-
- Check the styling in the latest version still works well with the old content
|
|
23
|
-
- Note that the PDF is no longer generated by default (pass the *'-p'* option)
|
|
24
|
-
|
|
25
|
-
> DocGen 1 tool-behaviours.yml has been replaced by command-line options. For help, see **<code>docgen run -h</code>**.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
One of the benefits of using DocGen for product software documentation is that its plain text source files are easy to
|
|
2
|
-
version control in sync with the product.
|
|
3
|
-
|
|
4
|
-
Recommended practice
|
|
5
|
-
--------------------
|
|
6
|
-
|
|
7
|
-
It is recommended to store the documentation **source files** (DocGen input directory) in the same version control
|
|
8
|
-
repository as the product code. This allows each release of the product to have a matching version of its
|
|
9
|
-
documentation.
|
|
10
|
-
|
|
11
|
-
> It is not necessary to version control the DocGen output, because this can always be regenerated. If the DocGen
|
|
12
|
-
output is version controlled, file renames, additions, and deletions have to be performed manually in the
|
|
13
|
-
version control tool.
|