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,148 +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=&apos;docgen.pdf&apos;;"><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">Release notes</h1><ul class="dg-pageToc"><li><a href="#docgen-2.1.3-released-29/05/2015">DocGen 2.1.3 released 29/05/2015</a></li><li><a href="#docgen-2.1.2-released-28/05/2015">DocGen 2.1.2 released 28/05/2015</a></li><li><a href="#docgen-2.1.1-released-28/05/2015">DocGen 2.1.1 released 28/05/2015</a></li><li><a href="#docgen-2.1.0-released-27/05/2015">DocGen 2.1.0 released 27/05/2015</a></li><li><a href="#docgen-2.0.1-released-31/03/2015">DocGen 2.0.1 released 31/03/2015</a></li><li><a href="#docgen-2.0.0-released-31/03/2015">DocGen 2.0.0 released 31/03/2015</a></li><li><a href="#docgen-1.0.1-released-18/01/2012">DocGen 1.0.1 released 18/01/2012</a></li><li><a href="#docgen-1.0.0-released-04/11/2011">DocGen 1.0.0 released 04/11/2011</a></li></ul><h2 id="docgen-2.1.3-released-29/05/2015">DocGen 2.1.3 released 29/05/2015</h2>
77
- <ul>
78
- <li>Allow more protocols in CommonMark links (see markdown-it <a href="https://github.com/markdown-it/markdown-it/issues/108">ticket #108</a>)</li>
79
- </ul>
80
- <h2 id="docgen-2.1.2-released-28/05/2015">DocGen 2.1.2 released 28/05/2015</h2>
81
- <ul>
82
- <li>Fixed a regression defect (exception when running docgen scaffold) that first appeared in DocGen 2.1.0</li>
83
- </ul>
84
- <h2 id="docgen-2.1.1-released-28/05/2015">DocGen 2.1.1 released 28/05/2015</h2>
85
- <ul>
86
- <li>Upgraded all node dependencies to the latest versions</li>
87
- <li>Upgraded styles to the latest release of Webknife (1.4.0)</li>
88
- </ul>
89
- <h2 id="docgen-2.1.0-released-27/05/2015">DocGen 2.1.0 released 27/05/2015</h2>
90
- <ul>
91
- <li>Added a command-line option for specifying a custom path to wkhtmltopdf</li>
92
- </ul>
93
- <h2 id="docgen-2.0.1-released-31/03/2015">DocGen 2.0.1 released 31/03/2015</h2>
94
- <ul>
95
- <li>Fixed the node package and user guide for installing with npm install -g</li>
96
- </ul>
97
- <h2 id="docgen-2.0.0-released-31/03/2015">DocGen 2.0.0 released 31/03/2015</h2>
98
- <ul>
99
- <li>DocGen is now open source</li>
100
- <li>Rewritten in JavaScript for Node.js</li>
101
- <li>Much easier to install (hosted on npm)</li>
102
- <li>Dependencies are now version controlled (using npm)</li>
103
- <li>Modernized visual style (uses Webknife CSS framework)</li>
104
- <li>Input metadata files are now in JSON rather than YAML format</li>
105
- <li>Top-level page headings are now inserted automatically (from contents.json)</li>
106
- <li>The web and PDF tables of contents both correspond to contents.json</li>
107
- <li>Command-line options are now used for configuration, rather than a config file</li>
108
- <li>Command-line output is now color coded (green success, red error)</li>
109
- <li>Added usage information to the command line interface</li>
110
- <li>Generating the PDF is now an optional feature</li>
111
- <li>Upgraded to the latest version of the PDF generator (wkhtmltopdf)</li>
112
- <li>Added support for mathematical expressions (with KaTex or MathJax)</li>
113
- <li>Added support for a list of document contributors (for multiple authors)</li>
114
- <li>Added support for a header link back to the application (integrated docs)</li>
115
- <li>Added time to the generation timestamp</li>
116
- <li>Renamed &apos;change log&apos; to &apos;release notes&apos;</li>
117
- <li>Fixed issues with fonts and text kerning in the PDF copy</li>
118
- <li>Fixed defect where unexpected text appeared on some pages with a page table of contents</li>
119
- <li>Dropped support for Internet Explorer 7 and 8</li>
120
- <li>Dropped formal support for tool to run on multiple operating systems</li>
121
- <li>Removed support for &apos;Mark of the Web&apos;</li>
122
- </ul>
123
- <h2 id="docgen-1.0.1-released-18/01/2012">DocGen 1.0.1 released 18/01/2012</h2>
124
- <ul>
125
- <li>Fixed a bug causing the table of contents headings to sometimes appear in the wrong order</li>
126
- </ul>
127
- <h2 id="docgen-1.0.0-released-04/11/2011">DocGen 1.0.0 released 04/11/2011</h2>
128
- <ul>
129
- <li>Ruby implementation (not released as open source)</li>
130
- <li>Creates a static website from Markdown input files</li>
131
- <li>Also creates a PDF copy using wkhtmltopdf</li>
132
- </ul>
133
- </div></div></section>
134
-
135
- <footer>
136
- <div><p class="w-fixed-width"><span id="dg-web-footer">Version 2.1.3 released on 29/05/2015.</span></p></div>
137
- <div class="w-fixed-width">
138
- <p><span id="dg-copyright">&#xA9; 2015 <a href="https://github.com/mtmacdonald">Mark Macdonald</a></span></p>
139
- <p>
140
- <span id="dg-marking">MIT License.</span>
141
- <span id="dg-legalese"></span>
142
- <span id="dg-attribution">Created by DocGen 2.1.3 on 29/05/2015 at 13:57:42.</span>
143
- </p>
144
- </div>
145
- </footer>
146
-
147
- </body>
148
- </html>
@@ -1,131 +0,0 @@
1
- pre {
2
- font-size: 12px; /*todo - move to webknife*/
3
- }
4
-
5
- section blockquote p, section li p {
6
- margin: 0;
7
- }
8
-
9
- .w-table {
10
- width: 100%;
11
- }
12
-
13
- /******************************** TABLE OF CONTENTS ****************************/
14
-
15
- /*Table of contents button to initiate show/hide*/
16
- #dg-navigator
17
- {
18
- float: right;
19
- background-color: #4d4d4d;
20
- color: white;
21
- text-align:right;
22
- padding: 10px 20px 10px 20px;
23
- margin-right: 200px;
24
- border-radius: 0 0 10px 10px;
25
- cursor: pointer;
26
- font-weight: bold;
27
- }
28
-
29
- /*Table of contents container*/
30
- #dg-toc {
31
- color: white;
32
- background-color: #4d4d4d;
33
- }
34
-
35
- #dg-toc table {
36
- table-layout: auto;
37
- width: 100%;
38
- }
39
-
40
- #dg-toc div {
41
- padding: 15px 0 15px 0;
42
- }
43
-
44
- /*Columns in table of contents*/
45
-
46
- #dg-toc td {
47
- border-right: 1px solid #666;
48
- vertical-align: top;
49
- text-align: left;
50
- padding: 0 20px 0 20px;
51
- }
52
-
53
- #dg-toc ul {
54
- padding: 0;
55
- list-style-type: none;
56
- }
57
-
58
- #dg-toc li {
59
- font-weight: bold;
60
- }
61
-
62
- #dg-toc table td a {
63
- color: white;
64
- font-weight: normal;
65
- text-decoration: none;
66
- margin-left: 10px;
67
- }
68
-
69
- #dg-toc table td a:hover {
70
- text-decoration: underline;
71
- }
72
-
73
- #dg-tocFixedColumn {
74
- border-right: none;
75
- }
76
-
77
- #dg-toc table #dg-tocFixedColumn a {
78
- vertical-align: middle;
79
- margin-left: 4px;
80
- }
81
-
82
- .dg-tocGroup {
83
- width: 22%;
84
- }
85
-
86
- .dg-tocHeading {
87
- font-size: 16px;
88
- }
89
-
90
- .dg-tocIcon {width: 18px; height: 18px; float: left;}
91
- .dg-tocIcon svg {fill: white;}
92
-
93
- /*
94
- Page table of contents
95
- */
96
-
97
- .dg-pageToc {
98
- list-style: none;
99
- padding: 10px;
100
- border: 1px solid #999;
101
- background-color: #eee;
102
- }
103
-
104
- /*
105
- Class to make a heading look invisible in web page, but still appear in the PDF table of contents
106
- - display:none, visibily: hidden, zero dimensions, and offscreen positioning don't work
107
- - so instead take it out of the flow and make it small and translucent
108
- */
109
-
110
- .dg-hiddenTitle {
111
- display: block;
112
- border: none;
113
- margin: 0;
114
- padding: 0;
115
- width: 1px;
116
- height: 1px;
117
- overflow: hidden;
118
- position: absolute;
119
- background-color: transparent;
120
- }
121
-
122
- .dg-fakeHeading { /*todo - move to webknife*/
123
- text-decoration:none;
124
- font-weight: bold;
125
- color: #385691;
126
- padding-bottom: 5px;
127
- border-bottom: 1px solid #999;
128
- margin: 20px 0 20px 0;
129
- font-size: 16px;
130
- padding-bottom: 4px;
131
- }
@@ -1,22 +0,0 @@
1
-
2
- $(document).ready( function () {
3
-
4
- //mathematical expressions using katex, if enabled
5
- $('.dg-katexMath').each(function() {
6
- var texTxt = $(this).text();
7
-
8
- el = $(this).get(0);
9
- if(el.tagName == "DIV"){
10
- addDisp = "\\displaystyle";
11
- } else {
12
- addDisp = "";
13
- }
14
- try {
15
- katex.render(addDisp+texTxt, el);
16
- }
17
- catch(err) {
18
- $(this).html("<span class='err'>"+err);
19
- }
20
- });
21
-
22
- });
@@ -1,19 +0,0 @@
1
- html {
2
- background-color :white; /*otherwise background artefacts appear as a feint outline in PDF*/
3
- }
4
-
5
- .dg-pageToc {
6
- display: none;
7
- }
8
-
9
- #dg-toc, #dg-navigator, header, footer {
10
- display: none;
11
- }
12
-
13
- .dg-avoidBreak, #dg-content th, #dg-content tr, #dg-content blockquote, #dg-content pre {
14
- page-break-inside: avoid;
15
- }
16
-
17
- .dg-forceBreak {
18
- page-break-after: always;
19
- }
package/docs/running.html DELETED
@@ -1,123 +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=&apos;docgen.pdf&apos;;"><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">Running DocGen</h1><ul class="dg-pageToc"><li><a href="#overview">Overview</a></li><li><a href="#command-line-usage">Command-line usage</a></li><li><a href="#scaffold-command">Scaffold command</a></li><li><a href="#run-command">Run command</a></li></ul><h2 id="overview">Overview</h2>
77
- <p>DocGen is a command-line tool which takes plain text input files and outputs a static website.</p>
78
- <h2 id="command-line-usage">Command-line usage</h2>
79
- <p>The DocGen command-line interface includes usage help for both the tool and its subcommands:</p>
80
- <pre><code>docgen --help
81
- docgen run --help
82
- </code></pre>
83
- <h2 id="scaffold-command">Scaffold command</h2>
84
- <p>The <strong>scaffold</strong> command creates an <em>example</em> input directory. It outputs the minumum files required by DocGen, which
85
- can then be used as a template for making any new website.</p>
86
- <p><strong>Create a scaffold template in the working directory</strong> (./)<strong>:</strong></p>
87
- <pre><code>docgen scaffold
88
- </code></pre>
89
- <p><strong>Create a scaffold template in a specified directory:</strong></p>
90
- <pre><code>docgen scaffold -o $HOME/docgen-example
91
- </code></pre>
92
- <h2 id="run-command">Run command</h2>
93
- <p>The <strong>run</strong> command transforms an input directory (plain text source) into an output directory (HTML+PDF).</p>
94
- <p><strong>Basic usage:</strong></p>
95
- <pre><code>docgen run -i $HOME/docgen-example -o $HOME/docgen-output
96
- </code></pre>
97
- <p><strong>Optionally create a PDF:</strong></p>
98
- <pre><code>docgen run -i $HOME/docgen-example -o $HOME/docgen-output -p
99
- </code></pre>
100
- <p><strong>Optionally create a redirect page:</strong></p>
101
- <pre><code>docgen run -i $HOME/docgen-example -o $HOME/docgen-output -r
102
- </code></pre>
103
- <blockquote>
104
- <p>The optional redirect page is an &apos;index.html&apos; file that is placed in the output&apos;s parent directory. The redirect page
105
- redirects the user to the homepage in the output directory. This is mostly useful for hosting the website without having
106
- to place all the files in the root directory.</p>
107
- </blockquote>
108
- </div></div></section>
109
-
110
- <footer>
111
- <div><p class="w-fixed-width"><span id="dg-web-footer">Version 2.1.3 released on 29/05/2015.</span></p></div>
112
- <div class="w-fixed-width">
113
- <p><span id="dg-copyright">&#xA9; 2015 <a href="https://github.com/mtmacdonald">Mark Macdonald</a></span></p>
114
- <p>
115
- <span id="dg-marking">MIT License.</span>
116
- <span id="dg-legalese"></span>
117
- <span id="dg-attribution">Created by DocGen 2.1.3 on 29/05/2015 at 13:57:42.</span>
118
- </p>
119
- </div>
120
- </footer>
121
-
122
- </body>
123
- </html>
@@ -1,105 +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=&apos;docgen.pdf&apos;;"><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">Troubleshooting</h1><ul class="dg-pageToc"><li><a href="#displaying-detailed-errors">Displaying detailed errors</a></li><li><a href="#pdf-missing-content">PDF missing content</a></li><li><a href="#attached-files-not-in-pdf">Attached files not in PDF</a></li><li><a href="#corrupted-text-characters">Corrupted text characters</a></li><li><a href="#missing-logo">Missing logo</a></li><li><a href="#other-issues">Other issues</a></li></ul><p>This section gives help on solving common issues with DocGen.</p>
77
- <h2 id="displaying-detailed-errors">Displaying detailed errors</h2>
78
- <p>Pass the <strong>-v</strong> (verbose) option when running DocGen to get more detailed error messages.</p>
79
- <h2 id="pdf-missing-content">PDF missing content</h2>
80
- <p>In complex pages, the PDF generator (wkhtmltopdf) needs to be given enough time for dynamic content to be rendered.
81
- Pass the <strong>-d [milliseconds]</strong> option to increase the rendering time for each page, if required.</p>
82
- <h2 id="attached-files-not-in-pdf">Attached files not in PDF</h2>
83
- <p>Attached files are not converted to PDF, only the web content is.</p>
84
- <h2 id="corrupted-text-characters">Corrupted text characters</h2>
85
- <p>Make sure all the input text files are saved with UTF-8 encoding.</p>
86
- <h2 id="missing-logo">Missing logo</h2>
87
- <p>The logo must be PNG format and saved with the path <em>files/images/logo.png</em>.</p>
88
- <h2 id="other-issues">Other issues</h2>
89
- <p>For any other problems, please submit a <a href="https://github.com/mtmacdonald/docgen/issues">an issue ticket</a>.</p>
90
- </div></div></section>
91
-
92
- <footer>
93
- <div><p class="w-fixed-width"><span id="dg-web-footer">Version 2.1.3 released on 29/05/2015.</span></p></div>
94
- <div class="w-fixed-width">
95
- <p><span id="dg-copyright">&#xA9; 2015 <a href="https://github.com/mtmacdonald">Mark Macdonald</a></span></p>
96
- <p>
97
- <span id="dg-marking">MIT License.</span>
98
- <span id="dg-legalese"></span>
99
- <span id="dg-attribution">Created by DocGen 2.1.3 on 29/05/2015 at 13:57:42.</span>
100
- </p>
101
- </div>
102
- </footer>
103
-
104
- </body>
105
- </html>