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
|
@@ -1,239 +0,0 @@
|
|
|
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 - a documentation tool</title>
|
|
8
|
-
|
|
9
|
-
<!--load stylesheets first (rationale: https://developers.google.com/speed/docs/best-practices/rtt#PutStylesBeforeScripts)-->
|
|
10
|
-
<link rel="stylesheet" href="require/webknife/framework.min.css" type="text/css">
|
|
11
|
-
<link rel="stylesheet" href="require/webknife/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/webknife/framework.min.js"></script>
|
|
18
|
-
<script src="require/webknife/framework.icons.js"></script>
|
|
19
|
-
<script src="require/webknife/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
|
-
<link rel="stylesheet" href="require/katex/katex.min.css" type="text/css"><script type="text/javascript" src="require/katex/katex.min.js"></script><script type="text/javascript" src="require/katexInjector.js"></script><script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full"></script></head>
|
|
57
|
-
|
|
58
|
-
<body>
|
|
59
|
-
|
|
60
|
-
<div id="dg-toc"><div><table class="unstyled"><tr><td class="dg-tocGroup"><ul><li class="dg-tocHeading">Quick Start</li><li><a href="index.html">Overview</a></li><li><a href="installation.html">Installation</a></li><li><a href="upgrading.html">Upgrading</a></li></ul></td><td class="dg-tocGroup"><ul><li class="dg-tocHeading">User Guide</li><li><a href="running.html">Running DocGen</a></li><li><a href="writing-content.html">Writing content</a></li><li><a href="commonmark.html">CommonMark reference</a></li><li><a href="advanced-content.html">Advanced content</a></li></ul></td><td class="dg-tocGroup"><ul><li class="dg-tocHeading">Help</li><li><a href="troubleshooting.html">Troubleshooting</a></li><li><a href="version-control.html">Using with version control</a></li></ul></td><td class="dg-tocGroup"></td><td class="dg-tocGroup" id="dg-tocFixedColumn"><ul><li><span class="w-icon dg-tocIcon" data-name="person_group" title="archive"></span><a href="ownership.html">Ownership</a></li><li><span class="w-icon dg-tocIcon" data-name="refresh" title="archive"></span><a href="release-notes.html">Release Notes</a></li></ul><div><button class="w-icon-button" onclick="window.location='docgen.pdf';"><span class="w-icon" data-name="document"></span><span>PDF copy</span></button></div></td></tr></table></div></div>
|
|
61
|
-
<div id="dg-navigator">Table of contents</div>
|
|
62
|
-
|
|
63
|
-
<header>
|
|
64
|
-
<div class="w-fixed-width">
|
|
65
|
-
<a id="dg-homelink" href="index.html">
|
|
66
|
-
<div id="dg-logo" style="background-image: url(files/images/logo.png); height: 42px; line-height: 42px; padding-left: 85px;">
|
|
67
|
-
<span id="dg-title">DocGen - a documentation tool</span> <span id="dg-web-title-version" style="font-weight:normal;">(2.1.3)</span>
|
|
68
|
-
</div>
|
|
69
|
-
</a>
|
|
70
|
-
<div>
|
|
71
|
-
<span id="dg-backlink"></span>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</header>
|
|
75
|
-
|
|
76
|
-
<section id="dg-content"><div class="w-fixed-width"><div id="dg-innerContent"><h1 id="dg-autoTitle">Advanced content</h1><ul class="dg-pageToc"><li><a href="#advanced-styles">Advanced styles</a></li><li><a href="#basic-tables">Basic tables</a></li><li><a href="#html-tables">HTML tables</a></li><li><a href="#creating-internal-links-to-page-sections">Creating internal links to page sections</a></li><li><a href="#creating-internal-links-to-other-pages">Creating internal links to other pages</a></li><li><a href="#control-of-page-breaks-in-the-pdf">Control of page breaks in the PDF</a></li></ul><style>
|
|
77
|
-
.container {
|
|
78
|
-
box-sizing: border-box;
|
|
79
|
-
float:left;
|
|
80
|
-
width: 480px;
|
|
81
|
-
}
|
|
82
|
-
.codeContainer {
|
|
83
|
-
margin: 0 20px 0 0;
|
|
84
|
-
}
|
|
85
|
-
.codeContainer pre {
|
|
86
|
-
margin: 0;
|
|
87
|
-
}
|
|
88
|
-
.codeContainer code {
|
|
89
|
-
}
|
|
90
|
-
.codeContainer p {
|
|
91
|
-
margin: 0;
|
|
92
|
-
padding: 0;
|
|
93
|
-
}
|
|
94
|
-
.exampleContainer {
|
|
95
|
-
margin: 0;
|
|
96
|
-
border: 1px solid #666;
|
|
97
|
-
border-radius: 6px;
|
|
98
|
-
padding: 0 18px 0 18px;
|
|
99
|
-
}
|
|
100
|
-
.exampleContainer img {
|
|
101
|
-
margin-top: 5px;
|
|
102
|
-
}
|
|
103
|
-
#content table {
|
|
104
|
-
width: 400px!important;
|
|
105
|
-
}
|
|
106
|
-
.hljs-change {
|
|
107
|
-
background-color: initial!important;
|
|
108
|
-
}
|
|
109
|
-
</style>
|
|
110
|
-
<h2 id="advanced-styles">Advanced styles</h2>
|
|
111
|
-
<p>DocGen is built on the <a href="http://mtmacdonald.github.io/webknife">Webknife CSS framework</a>. Any of the HTML elements and
|
|
112
|
-
styles from Webknife can be used in a DocGen source file. For details, see
|
|
113
|
-
the <a href="http://mtmacdonald.github.io/webknife/docs/reference.html">Webknife reference guide</a>.</p>
|
|
114
|
-
<h2 id="basic-tables">Basic tables</h2>
|
|
115
|
-
<p>Basic tables can be inserted with the Github-flavoured Markdown
|
|
116
|
-
<a href="https://help.github.com/articles/github-flavored-markdown/#tables">table extension</a>.</p>
|
|
117
|
-
<div class="container codeContainer">
|
|
118
|
-
<pre><code>| Heading | Heading | Heading |
|
|
119
|
-
|:-----------:----------:|--------:|
|
|
120
|
-
| Something | Something | ? |
|
|
121
|
-
| Another | Another | ? |
|
|
122
|
-
| One more | One more | ? |</code></pre>
|
|
123
|
-
</div>
|
|
124
|
-
<div class="container exampleContainer">
|
|
125
|
-
<table class="w-table w-fixed w-stripe">
|
|
126
|
-
<thead>
|
|
127
|
-
<tr>
|
|
128
|
-
<th style="text-align:left">Heading</th>
|
|
129
|
-
<th style="text-align:center">Heading</th>
|
|
130
|
-
<th style="text-align:right">Heading</th>
|
|
131
|
-
</tr>
|
|
132
|
-
</thead>
|
|
133
|
-
<tbody>
|
|
134
|
-
<tr>
|
|
135
|
-
<td style="text-align:left">Something</td>
|
|
136
|
-
<td style="text-align:center">Something</td>
|
|
137
|
-
<td style="text-align:right">?</td>
|
|
138
|
-
</tr>
|
|
139
|
-
<tr>
|
|
140
|
-
<td style="text-align:left">Another</td>
|
|
141
|
-
<td style="text-align:center">Another</td>
|
|
142
|
-
<td style="text-align:right">?</td>
|
|
143
|
-
</tr>
|
|
144
|
-
<tr>
|
|
145
|
-
<td style="text-align:left">One more</td>
|
|
146
|
-
<td style="text-align:center">One more</td>
|
|
147
|
-
<td style="text-align:right">?</td>
|
|
148
|
-
</tr>
|
|
149
|
-
</tbody>
|
|
150
|
-
</table>
|
|
151
|
-
</div><br class="w-clear">
|
|
152
|
-
<h2 id="html-tables">HTML tables</h2>
|
|
153
|
-
<p>Regular HTML can also be used for tables, allowing full custom styling (including table and column widths).</p>
|
|
154
|
-
<div class="container codeContainer">
|
|
155
|
-
<pre><code><table style="width:100%;">
|
|
156
|
-
<tr>
|
|
157
|
-
<th>Heading</th>
|
|
158
|
-
<th>Heading</th>
|
|
159
|
-
<th>Heading</th>
|
|
160
|
-
</tr>
|
|
161
|
-
<tr>
|
|
162
|
-
<td class="bold">Example</td>
|
|
163
|
-
<td>Example</td>
|
|
164
|
-
<td>Example</td>
|
|
165
|
-
</tr>
|
|
166
|
-
<tr>
|
|
167
|
-
<td><strong>Example</strong></td>
|
|
168
|
-
<td class="w-success-text">Example</td>
|
|
169
|
-
<td><span class="w-icon" data-name="checkmark"></span></td>
|
|
170
|
-
</tr>
|
|
171
|
-
<tr>
|
|
172
|
-
<td><strong>Example</strong></td>
|
|
173
|
-
<td class="w-error-text">Example</td>
|
|
174
|
-
<td><span class="w-icon" data-name="close"></td>
|
|
175
|
-
</tr>
|
|
176
|
-
</table></code></pre>
|
|
177
|
-
</div>
|
|
178
|
-
<div class="container exampleContainer">
|
|
179
|
-
<table style="width:100%;" class="w-table w-fixed w-stripe">
|
|
180
|
-
<tr>
|
|
181
|
-
<th>Heading</th>
|
|
182
|
-
<th>Heading</th>
|
|
183
|
-
<th>Heading</th>
|
|
184
|
-
</tr>
|
|
185
|
-
<tr>
|
|
186
|
-
<td class="bold">Example</td>
|
|
187
|
-
<td>Example</td>
|
|
188
|
-
<td>Example</td>
|
|
189
|
-
</tr>
|
|
190
|
-
<tr>
|
|
191
|
-
<td><strong>Example</strong></td>
|
|
192
|
-
<td class="w-success-text">Example</td>
|
|
193
|
-
<td><span class="w-icon" data-name="checkmark"></span></td>
|
|
194
|
-
</tr>
|
|
195
|
-
<tr>
|
|
196
|
-
<td><strong>Example</strong></td>
|
|
197
|
-
<td class="w-error-text">Example</td>
|
|
198
|
-
<td><span class="w-icon" data-name="close"></span></td>
|
|
199
|
-
</tr>
|
|
200
|
-
</table>
|
|
201
|
-
</div><br class="w-clear">
|
|
202
|
-
<h2 id="creating-internal-links-to-page-sections">Creating internal links to page sections</h2>
|
|
203
|
-
<p>To create links to other sections within one content page, put hyphens between the words in the heading and prepend with #:</p>
|
|
204
|
-
<pre><code>[link to heading](#this-is-a-heading)
|
|
205
|
-
|
|
206
|
-
... other page content here ...
|
|
207
|
-
|
|
208
|
-
This is a heading
|
|
209
|
-
-----------------
|
|
210
|
-
</code></pre>
|
|
211
|
-
<h2 id="creating-internal-links-to-other-pages">Creating internal links to other pages</h2>
|
|
212
|
-
<p>To create links to <em>other</em> content pages provide the relative url to the page:</p>
|
|
213
|
-
<pre><code>[link to heading](example-page.html)
|
|
214
|
-
</code></pre>
|
|
215
|
-
<h2 id="control-of-page-breaks-in-the-pdf">Control of page breaks in the PDF</h2>
|
|
216
|
-
<p>DocGen does not provide precision control over PDF layout. However, some steps can be taken in case of page break
|
|
217
|
-
issues (the most common problem).</p>
|
|
218
|
-
<p>To <em>force</em> a page break, insert the following before an element that should appear on a new page:</p>
|
|
219
|
-
<pre><code><p class="dg-forceBreak"></p>
|
|
220
|
-
</code></pre>
|
|
221
|
-
<p>DocGen automatically tries to eliminate page breaks <em>inside</em> code blocks, block quotes, and table rows.
|
|
222
|
-
To apply the same technique to other elements, revert to HTML and apply the <strong>dg-avoidBreak</strong> class. For example:</p>
|
|
223
|
-
<pre><code><p class="dg-avoidBreak">A long paragraph</p></code></pre>
|
|
224
|
-
</div></div></section>
|
|
225
|
-
|
|
226
|
-
<footer>
|
|
227
|
-
<div><p class="w-fixed-width"><span id="dg-web-footer">Version 2.1.3 released on 29/05/2015.</span></p></div>
|
|
228
|
-
<div class="w-fixed-width">
|
|
229
|
-
<p><span id="dg-copyright">© 2015 <a href="https://github.com/mtmacdonald">Mark Macdonald</a></span></p>
|
|
230
|
-
<p>
|
|
231
|
-
<span id="dg-marking">MIT License.</span>
|
|
232
|
-
<span id="dg-legalese"></span>
|
|
233
|
-
<span id="dg-attribution">Created by DocGen 2.1.3 on 29/05/2015 at 13:57:42.</span>
|
|
234
|
-
</p>
|
|
235
|
-
</div>
|
|
236
|
-
</footer>
|
|
237
|
-
|
|
238
|
-
</body>
|
|
239
|
-
</html>
|
package/docs/commonmark.html
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
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 - a documentation tool</title>
|
|
8
|
-
|
|
9
|
-
<!--load stylesheets first (rationale: https://developers.google.com/speed/docs/best-practices/rtt#PutStylesBeforeScripts)-->
|
|
10
|
-
<link rel="stylesheet" href="require/webknife/framework.min.css" type="text/css">
|
|
11
|
-
<link rel="stylesheet" href="require/webknife/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/webknife/framework.min.js"></script>
|
|
18
|
-
<script src="require/webknife/framework.icons.js"></script>
|
|
19
|
-
<script src="require/webknife/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
|
-
<link rel="stylesheet" href="require/katex/katex.min.css" type="text/css"><script type="text/javascript" src="require/katex/katex.min.js"></script><script type="text/javascript" src="require/katexInjector.js"></script><script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML-full"></script></head>
|
|
57
|
-
|
|
58
|
-
<body>
|
|
59
|
-
|
|
60
|
-
<div id="dg-toc"><div><table class="unstyled"><tr><td class="dg-tocGroup"><ul><li class="dg-tocHeading">Quick Start</li><li><a href="index.html">Overview</a></li><li><a href="installation.html">Installation</a></li><li><a href="upgrading.html">Upgrading</a></li></ul></td><td class="dg-tocGroup"><ul><li class="dg-tocHeading">User Guide</li><li><a href="running.html">Running DocGen</a></li><li><a href="writing-content.html">Writing content</a></li><li><a href="commonmark.html">CommonMark reference</a></li><li><a href="advanced-content.html">Advanced content</a></li></ul></td><td class="dg-tocGroup"><ul><li class="dg-tocHeading">Help</li><li><a href="troubleshooting.html">Troubleshooting</a></li><li><a href="version-control.html">Using with version control</a></li></ul></td><td class="dg-tocGroup"></td><td class="dg-tocGroup" id="dg-tocFixedColumn"><ul><li><span class="w-icon dg-tocIcon" data-name="person_group" title="archive"></span><a href="ownership.html">Ownership</a></li><li><span class="w-icon dg-tocIcon" data-name="refresh" title="archive"></span><a href="release-notes.html">Release Notes</a></li></ul><div><button class="w-icon-button" onclick="window.location='docgen.pdf';"><span class="w-icon" data-name="document"></span><span>PDF copy</span></button></div></td></tr></table></div></div>
|
|
61
|
-
<div id="dg-navigator">Table of contents</div>
|
|
62
|
-
|
|
63
|
-
<header>
|
|
64
|
-
<div class="w-fixed-width">
|
|
65
|
-
<a id="dg-homelink" href="index.html">
|
|
66
|
-
<div id="dg-logo" style="background-image: url(files/images/logo.png); height: 42px; line-height: 42px; padding-left: 85px;">
|
|
67
|
-
<span id="dg-title">DocGen - a documentation tool</span> <span id="dg-web-title-version" style="font-weight:normal;">(2.1.3)</span>
|
|
68
|
-
</div>
|
|
69
|
-
</a>
|
|
70
|
-
<div>
|
|
71
|
-
<span id="dg-backlink"></span>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</header>
|
|
75
|
-
|
|
76
|
-
<section id="dg-content"><div class="w-fixed-width"><div id="dg-innerContent"><h1 id="dg-autoTitle">CommonMark reference</h1><p>This section shows examples of how to write content with CommonMark. See the <a href="http://spec.commonmark.org">CommonMark Spec</a>
|
|
77
|
-
for more detailed information.</p>
|
|
78
|
-
<style>
|
|
79
|
-
.reference pre, .reference table, .reference blockquote {
|
|
80
|
-
margin: 0;
|
|
81
|
-
}
|
|
82
|
-
.reference .codeCell pre {
|
|
83
|
-
border: none;
|
|
84
|
-
border-radius: 0;
|
|
85
|
-
}
|
|
86
|
-
.reference .codeCell {
|
|
87
|
-
padding: 0;
|
|
88
|
-
}
|
|
89
|
-
</style>
|
|
90
|
-
<div>
|
|
91
|
-
<table class="reference w-table w-fixed w-stripe" style="width: 100%">
|
|
92
|
-
<tr><th>Element</th><th>What you type</th><th>What it looks like in DocGen</th></tr>
|
|
93
|
-
<tr>
|
|
94
|
-
<td class="r1">Page Heading</td>
|
|
95
|
-
<td class="codeCell"><pre><code>
|
|
96
|
-
Page Heading
|
|
97
|
-
============
|
|
98
|
-
</code></pre></td>
|
|
99
|
-
<td>
|
|
100
|
-
<p class="dg-fakeHeading" style="font-size: 20px; padding-bottom: 6px;">Page Heading</p>
|
|
101
|
-
</td>
|
|
102
|
-
</tr>
|
|
103
|
-
<tr>
|
|
104
|
-
<td class="r1">Section Heading</td>
|
|
105
|
-
<td class="codeCell"><pre><code>
|
|
106
|
-
Section Heading
|
|
107
|
-
---------------
|
|
108
|
-
</code></pre></td>
|
|
109
|
-
<td>
|
|
110
|
-
<p class="dg-fakeHeading" style="font-size: 18px; padding-bottom: 4px;">Section Heading</p>
|
|
111
|
-
</td>
|
|
112
|
-
</tr>
|
|
113
|
-
<tr>
|
|
114
|
-
<td class="r1">Minor Heading</td>
|
|
115
|
-
<td class="codeCell"><pre><code>
|
|
116
|
-
### Minor Heading
|
|
117
|
-
</code></pre></td>
|
|
118
|
-
<td>
|
|
119
|
-
<p class="dg-fakeHeading" style="font-size: 16px; padding-bottom: 4px;">Minor Heading</p>
|
|
120
|
-
</td>
|
|
121
|
-
</tr>
|
|
122
|
-
<tr>
|
|
123
|
-
<td class="r1">Fake Heading<br>(not in PDF contents list)</td>
|
|
124
|
-
<td class="codeCell"><pre><code>
|
|
125
|
-
<p class="dg-fakeHeading">Fake</p>
|
|
126
|
-
</code></pre></td>
|
|
127
|
-
<td>
|
|
128
|
-
<p class="dg-fakeHeading">Fake</p>
|
|
129
|
-
</td>
|
|
130
|
-
</tr>
|
|
131
|
-
<tr>
|
|
132
|
-
<td class="r1">Emphasis (italic)</td>
|
|
133
|
-
<td class="codeCell"><pre><code>
|
|
134
|
-
This text has *emphasis*
|
|
135
|
-
</code></pre></td>
|
|
136
|
-
<td>This text has <em>emphasis</em></td>
|
|
137
|
-
</tr>
|
|
138
|
-
<tr>
|
|
139
|
-
<td class="r1">Strong (bold)</td>
|
|
140
|
-
<td class="codeCell"><pre><code>
|
|
141
|
-
This text is **bold**
|
|
142
|
-
</code></pre></td>
|
|
143
|
-
<td>This text is <strong>bold</strong></td>
|
|
144
|
-
</tr>
|
|
145
|
-
<tr>
|
|
146
|
-
<td class="r1">Block quotes</td>
|
|
147
|
-
<td class="codeCell"><pre><code>
|
|
148
|
-
> This is a block quote.
|
|
149
|
-
</code></pre></td>
|
|
150
|
-
<td><blockquote>This is a block quote</blockquote></td>
|
|
151
|
-
</tr>
|
|
152
|
-
<tr>
|
|
153
|
-
<td class="r1">Code block<br> (indent with tab)</td>
|
|
154
|
-
<td class="codeCell"><pre><code>
|
|
155
|
-
     int some_code=0
|
|
156
|
-
</code></pre></td>
|
|
157
|
-
<td><pre><code>int some_code=0;</code></pre></td>
|
|
158
|
-
</tr>
|
|
159
|
-
<tr>
|
|
160
|
-
<td class="r1">Unordered List</td>
|
|
161
|
-
<td class="codeCell"><pre><code>
|
|
162
|
-
* unordered list
|
|
163
|
-
* (items)
|
|
164
|
-
</code></pre></td>
|
|
165
|
-
<td><ul><li>unordered list</li><li>(items)</li></ul></td>
|
|
166
|
-
</tr>
|
|
167
|
-
<tr>
|
|
168
|
-
<td class="r1">Ordered List</td>
|
|
169
|
-
<td class="codeCell"><pre><code>
|
|
170
|
-
1. ordered list
|
|
171
|
-
2. (items)
|
|
172
|
-
</code></pre></td>
|
|
173
|
-
<td><ol><li>ordered list</li><li>(items)</li></ol></td>
|
|
174
|
-
</tr>
|
|
175
|
-
<tr>
|
|
176
|
-
<td class="r1">External Links</td>
|
|
177
|
-
<td class="codeCell"><pre><code>
|
|
178
|
-
[link](http://www.google.com)
|
|
179
|
-
</code></pre></td>
|
|
180
|
-
<td><a href="http://www.google.com">link</a></td>
|
|
181
|
-
</tr>
|
|
182
|
-
<tr>
|
|
183
|
-
<td class="r1">Links to a local file</td>
|
|
184
|
-
<td class="codeCell"><pre><code>
|
|
185
|
-
[attachment](user_guide.pdf)
|
|
186
|
-
</code></pre></td>
|
|
187
|
-
<td><a href="user_guide.pdf">attachment</a></td>
|
|
188
|
-
</tr>
|
|
189
|
-
<tr>
|
|
190
|
-
<td class="r1">Diagrams<br> (embedding images)</td>
|
|
191
|
-
<td class="codeCell"><pre><code>
|
|
192
|
-

|
|
193
|
-
</code></pre></td>
|
|
194
|
-
<td><img src="files/images/logo.png"></td>
|
|
195
|
-
</tr>
|
|
196
|
-
<tr>
|
|
197
|
-
<td class="r1">Simple table</td>
|
|
198
|
-
<td class="codeCell"><pre><code>
|
|
199
|
-
| Cell 1 | Cell 2 | Cell 3 |
|
|
200
|
-
| Cell 4 | Cell 5 | Cell 6 |
|
|
201
|
-
</code></pre></td>
|
|
202
|
-
<td>
|
|
203
|
-
<table style="width:300px;" class="w-table w-fixed w-stripe">
|
|
204
|
-
<tr><td>Cell 1</td><td>Cell 2</td><td>Cell 3</td></tr>
|
|
205
|
-
<tr><td>Cell 4</td><td>Cell 5</td><td>Cell 6</td></tr>
|
|
206
|
-
</table>
|
|
207
|
-
</td>
|
|
208
|
-
</tr>
|
|
209
|
-
</table>
|
|
210
|
-
</div></div></div></section>
|
|
211
|
-
|
|
212
|
-
<footer>
|
|
213
|
-
<div><p class="w-fixed-width"><span id="dg-web-footer">Version 2.1.3 released on 29/05/2015.</span></p></div>
|
|
214
|
-
<div class="w-fixed-width">
|
|
215
|
-
<p><span id="dg-copyright">© 2015 <a href="https://github.com/mtmacdonald">Mark Macdonald</a></span></p>
|
|
216
|
-
<p>
|
|
217
|
-
<span id="dg-marking">MIT License.</span>
|
|
218
|
-
<span id="dg-legalese"></span>
|
|
219
|
-
<span id="dg-attribution">Created by DocGen 2.1.3 on 29/05/2015 at 13:57:42.</span>
|
|
220
|
-
</p>
|
|
221
|
-
</div>
|
|
222
|
-
</footer>
|
|
223
|
-
|
|
224
|
-
</body>
|
|
225
|
-
</html>
|
package/docs/docgen.pdf
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|