| @@ -5,6 +5,7 @@ | |||
| "IncludeSource": "Includes", | |||
| "Theme" : "Default", | |||
| "Footer" : "Made with DocNet. Get your copy at: <a href='https://github.com/FransBouma/DocNet' target='_blank'>https://github.com/FransBouma/DocNet</a>.", | |||
| "ConvertLocalLinks": "true", | |||
| "Pages" : | |||
| { | |||
| "__index" : "index.md", | |||
| @@ -12,6 +12,7 @@ DocNet uses a json file to determine what to do in what form. The format is stra | |||
| "Theme" : "themefolder", | |||
| "SourceFoldersToCopy" : ["folder1", "foldern"], | |||
| "Footer" : "footer text or HTML", | |||
| "ConvertLocalLinks: "true" | "false", | |||
| "Pages" : | |||
| { | |||
| "__index" : "index.md", | |||
| @@ -35,6 +36,7 @@ The order in which the pages are specified is the order in which they'll appear | |||
| * `IncludeSource` specifies the folder where the files specified to be included using [@@include directives](markdownextensions.htm#include-files) are located. If `IncludeSource` isn't specified, the value `Includes` is assumed. | |||
| * `Theme` specifies the folder within the `Themes` folder in the folder the `docnet` executable is located which is used as the theme for the pages to generate. `Docnet` expects a file called `PageTemplate.htm` within the specified `Theme` folder, which contains the HTML which is used as the wrapper file for the HTML generated from the markdown. It has to contain a couple of marker, which are described later in this document. If `Theme` isn't specified, `Default` is assumed. | |||
| * `SourceFoldersToCopy`. This is an optional directive with, if specified, one or more folder names relative to `Source`, which contain files to copy to the `Destination` folder. E.g. image files used in the markdown files, located in an `Images` folder can be copied this way to the output folder reliably. All folders specified are copied recursively. | |||
| * `ConvertLocalLinks`. This is an optional directive which, if specified and set to `"true"`, will make DocNet convert all local links to `.md` suffixed files into `.htm` files. Example: `(local link)[somemarkdownfile.md]` will be converted to `<a href="somemarkdownfile.htm">local link</a>`. Non-local urls are not converted. Default: `"false"`. | |||
| * `Footer`. This is text and/or HTML which is placed in the footer of each page, using a _marker_ (see below). | |||
| * `Pages` contains the pages to generate into the output, in the order and structure in which you want them to appear in the navigation. The name given is the value used in the navigation tree and has to be unique per level. The value specified with each name is the markdown file to load, parse and generate as .htm file in the output. The markdown file is relative to the path specified in `Source`. A file `foo.md` will be generated as `foo.htm` in the output. | |||
| @@ -114,6 +114,11 @@ this is a simple <pre> block | |||
| ``` | |||
| ##Linking | |||
| `Docnet` doesn't transform links. This means that any link to any document in your documentation has to use the url it will get in the destination folder. Example: you want to link to the file `How to\AddEntity.md` from a page. In the result site this should be the link `How%20to/AddEntity.htm`, which you should specify in your markdown. In the future it might be `docnet` will be updated with link transformation, at the moment it doesn't convert any links besides the usual markdown ones. The markdown parser also doesn't allow spaces to be present in the urls. If you need a space in the url, escape it with `%20`. | |||
| `Docnet` doesn't automatically transform links to markdown files by default. To enable automatic link conversion to local markdown files, please specify the `ConvertLocalLinks` option in the [docnet.json file](docnetjson.md) file with the value `true`. If `ConvertLocalLinks` isn't specified or set to `false`, any link to any document in your documentation has to use the url it will get in the destination folder. | |||
| Example: you want to link to the file `How to\AddEntity.md` from a page. If `ConvertLocalLinks` isn't specified or set to `false`, you have to specify in the markdown the url it will need to be in the result site, which is the link `How%20to/AddEntity.htm`. If `ConvertLocalLinks` is set to `true`, you can specify `How%20to/AddEntity.md` and DocNet will convert it to `How%20to/AddEntity.htm`. | |||
| @alert important | |||
| The markdown parser also doesn't allow spaces to be present in the urls. If you need a space in the url, escape it with `%20`. | |||
| @end | |||
| @@ -89,6 +89,7 @@ | |||
| "Theme" : "themefolder", | |||
| "SourceFoldersToCopy" : ["folder1", "foldern"], | |||
| "Footer" : "footer text or HTML", | |||
| "ConvertLocalLinks: "true" | "false", | |||
| "Pages" : | |||
| { | |||
| "__index" : "index.md", | |||
| @@ -112,6 +113,7 @@ | |||
| <li><code>IncludeSource</code> specifies the folder where the files specified to be included using <a href="markdownextensions.htm#include-files">@@include directives</a> are located. If <code>IncludeSource</code> isn't specified, the value <code>Includes</code> is assumed. </li> | |||
| <li><code>Theme</code> specifies the folder within the <code>Themes</code> folder in the folder the <code>docnet</code> executable is located which is used as the theme for the pages to generate. <code>Docnet</code> expects a file called <code>PageTemplate.htm</code> within the specified <code>Theme</code> folder, which contains the HTML which is used as the wrapper file for the HTML generated from the markdown. It has to contain a couple of marker, which are described later in this document. If <code>Theme</code> isn't specified, <code>Default</code> is assumed.</li> | |||
| <li><code>SourceFoldersToCopy</code>. This is an optional directive with, if specified, one or more folder names relative to <code>Source</code>, which contain files to copy to the <code>Destination</code> folder. E.g. image files used in the markdown files, located in an <code>Images</code> folder can be copied this way to the output folder reliably. All folders specified are copied recursively.</li> | |||
| <li><code>ConvertLocalLinks</code>. This is an optional directive which, if specified and set to <code>"true"</code>, will make DocNet convert all local links to <code>.md</code> suffixed files into <code>.htm</code> files. Example: <code>(local link)[somemarkdownfile.md]</code> will be converted to <code><a href="somemarkdownfile.htm">local link</a></code>. Non-local urls are not converted. Default: <code>"false"</code>. </li> | |||
| <li><code>Footer</code>. This is text and/or HTML which is placed in the footer of each page, using a <em>marker</em> (see below).</li> | |||
| <li><code>Pages</code> contains the pages to generate into the output, in the order and structure in which you want them to appear in the navigation. The name given is the value used in the navigation tree and has to be unique per level. The value specified with each name is the markdown file to load, parse and generate as .htm file in the output. The markdown file is relative to the path specified in <code>Source</code>. A file <code>foo.md</code> will be generated as <code>foo.htm</code> in the output. </li> | |||
| </ul> | |||
| @@ -229,9 +229,9 @@ The files to include are read from a special folder, specified under <code>Inclu | |||
| specified in the <a href="docnetjson.htm">docnet.json</a> file, the folder <code>Includes</code> is assumed. </p> | |||
| <p>The directive <code>@@include("somehtmlinclude.htm")</code></p> | |||
| <p>results in the contents of <code>somehtmlinclude.htm</code> being included at the spot where the @@include statement is given, as shown below:</p> | |||
| <p><i>This</i> is an <b>included</b> piece of html</p> | |||
| <p>@@include("includedhtml.htm")</p> | |||
| <p>You can also include markdown, which is then processed with the other markdown as if it's part of it. </p> | |||
| <p><em>This</em> is an included <code>piece</code> of <strong>Markdown</strong>.</p> | |||
| <p>@@include("includedmarkdown.md")</p> | |||
| </div> | |||
| </div> | |||
| @@ -183,8 +183,10 @@ If you want to have an image rendered centered with a note below it, simply spec | |||
| <p>To specify a block of text in a fixed sized font but not specify any language highlighting, specify <code>nohighlight</code> as language name:</p> | |||
| <pre class="nocode">this is a simple <pre> block | |||
| </pre><h2 id="linking">Linking<a class="headerlink" href="#linking" title="Permalink to this headline"><i class="fa fa-link" aria-hidden="true"></i></a></h2> | |||
| <p><code>Docnet</code> doesn't transform links. This means that any link to any document in your documentation has to use the url it will get in the destination folder. Example: you want to link to the file <code>How to\AddEntity.md</code> from a page. In the result site this should be the link <code>How%20to/AddEntity.htm</code>, which you should specify in your markdown. In the future it might be <code>docnet</code> will be updated with link transformation, at the moment it doesn't convert any links besides the usual markdown ones. The markdown parser also doesn't allow spaces to be present in the urls. If you need a space in the url, escape it with <code>%20</code>. </p> | |||
| <p><code>Docnet</code> doesn't automatically transform links to markdown files by default. To enable automatic link conversion to local markdown files, please specify the <code>ConvertLocalLinks</code> option in the <a href="docnetjson.htm">docnet.json file</a> file with the value <code>true</code>. If <code>ConvertLocalLinks</code> isn't specified or set to <code>false</code>, any link to any document in your documentation has to use the url it will get in the destination folder. </p> | |||
| <p>Example: you want to link to the file <code>How to\AddEntity.md</code> from a page. If <code>ConvertLocalLinks</code> isn't specified or set to <code>false</code>, you have to specify in the markdown the url it will need to be in the result site, which is the link <code>How%20to/AddEntity.htm</code>. If <code>ConvertLocalLinks</code> is set to <code>true</code>, you can specify <code>How%20to/AddEntity.md</code> and DocNet will convert it to <code>How%20to/AddEntity.htm</code>.</p> | |||
| <div class="alert alert-warning"><span class="alert-title"><i class="fa fa-warning"></i> Important!</span><p>The markdown parser also doesn't allow spaces to be present in the urls. If you need a space in the url, escape it with <code>%20</code>. </p> | |||
| </div> | |||
| <div class="footnotes"> | |||
| <hr /> | |||
| <ol> | |||
| @@ -9,7 +9,7 @@ | |||
| { | |||
| "location": "docnetjson.htm", | |||
| "breadcrumbs": "Home / Configuration / Site configuration with the docnet.json file", | |||
| "keywords": "__index _marker_ _Sub 1 1_ 2 3 4 a A above absolute all All always an and appear are as assigned assumed be becomes below but called can case characters clicked configuration contain contains content copied copy couple create default Default defined described Destination destinationfolder determine directive directives do docnet Docnet DocNet document doesn e E each Each elements entry escape example executable exist exists expected expects file filename_page1 filename_page2 filename_page3 filename_page4 filenames files folder folder1 foldern folders foo footer Footer for form format forward from full g generate generated given guarantees has have header Header Home htm HTML if If image Images in include included includefolder Includes IncludeSource index into is isn it It json later level Levels list load loaded located markdown markdownextensions marker md more name Name nameoflevel names navigated navigation no of one only optional or order output page Page pages Pages PageTemplate parent parse path Paths per placed recursively relative reliably root same see See sensitive shown simply site so Source sourcefolder SourceFoldersToCopy special specified specifies specify starting still straight structure sub Sub subfolders target text the The them theme Theme themefolder Themes there they this This Title to topics topictitle tree unique use used uses using value want way what when where which will with within without wrapper written you", | |||
| "keywords": "__index _marker_ _Sub 1 1_ 2 3 4 a A above absolute all All always an and appear are as assigned assumed be becomes below but called can case characters clicked configuration contain contains content convert converted ConvertLocalLinks copied copy couple create default Default defined described Destination destinationfolder determine directive directives do docnet Docnet DocNet document doesn e E each Each elements entry escape example Example executable exist exists expected expects false file filename_page1 filename_page2 filename_page3 filename_page4 filenames files folder folder1 foldern folders foo footer Footer for form format forward from full g generate generated given guarantees has have header Header Home href htm HTML if If image Images in include included includefolder Includes IncludeSource index into is isn it It json later level Levels link links list load loaded local located make markdown markdownextensions marker md more name Name nameoflevel names navigated navigation no Non not of one only optional or order output page Page pages Pages PageTemplate parent parse path Paths per placed recursively relative reliably root same see See sensitive set shown simply site so somemarkdownfile Source sourcefolder SourceFoldersToCopy special specified specifies specify starting still straight structure sub Sub subfolders suffixed target text the The them theme Theme themefolder Themes there they this This Title to topics topictitle tree true unique urls use used uses using value want way what when where which will with within without wrapper written you", | |||
| "title": "Site configuration with the docnet.json file" | |||
| }, | |||
| { | |||
| @@ -27,7 +27,7 @@ | |||
| { | |||
| "location": "markdownsupport.htm", | |||
| "breadcrumbs": "Home / Authoring content / Writing content using Markdown / Markdown support", | |||
| "keywords": "1 2 20 20to 42 a A abbr abbreviation abbreviations Abbreviations above actual added AddEntity Additionally after all All allow also alt an and And any Any append Apples applied apply are as at attribute attributes Bananas based basic be beach beautifying been below besides Beyond bit block Bongo bottom but by By C ca called can centered class Click code codeblock color Color com comes contain convert couple cs css cssclass1 cssclass2 Currently daringfireball default define defined defining definition Definition described description destination div do docnet Docnet DocNet document documentation doesn e easy escape example Example examples extended extensions extra Extra extramode F feature figure file files first fixed folder following font footnote footnotes Footnotes for FransBouma from Fruit FuBar full future g get github GitHub given gives go going Green Gruber has have height Hey Highlight highlighting Highlighting highlightjs how How htm html HTML http https i id idvalue If image Image images Images imageurl img in In included input is it It item Item javascript John jpg js ked know language languages library like link Linking links Links lists look markdown Markdown markdowndeep MarkdownDeep MarkdownDeepTests marker markers master md means michelf might minute moment more most mycenteredpicture name neat need net no nohighlight normal not note of oh on one ones only org p page parsed parser Pears php Php PHP picture Please popular pre present projects Red related rendered rendering Repair respository result results sea see sentence set shadow shadowed should simple simply site sized so software space spaces special Special specific specification specifications specified specify Specifying src standard Standard statements strange style superscript support supported supports syntax system tables Tables tag test testfiles text that the The them then There this This through title to To too topten toptensoftware transform transformation tree Two unit Up updated url urls use uses using usual value values var want well Where which width will wind with writing www xxx Yellow you You your yyy", | |||
| "keywords": "1 2 20 20to 42 a A abbr abbreviation abbreviations Abbreviations above actual added AddEntity Additionally after alert all All allow also alt an and And any Any append Apples applied apply are as at attribute attributes automatic automatically Bananas based basic be beach beautifying been below Beyond bit block Bongo bottom but by By C ca called can centered class Click code codeblock color Color com comes contain conversion convert ConvertLocalLinks couple cs css cssclass1 cssclass2 Currently daringfireball default define defined defining definition Definition described description destination div do docnet Docnet DocNet docnetjson document documentation doesn e easy enable end escape example Example examples extended extensions extra Extra extramode F false feature figure file files first fixed folder following font footnote footnotes Footnotes for FransBouma from Fruit FuBar full g get github GitHub given gives go going Green Gruber has have height Hey Highlight highlighting Highlighting highlightjs how How htm html HTML http https i id idvalue If image Image images Images imageurl img important in included input is isn it It item Item javascript John jpg js json ked know language languages library like link Linking links Links lists local look markdown Markdown markdowndeep MarkdownDeep MarkdownDeepTests marker markers master md michelf minute more most mycenteredpicture name neat need net no nohighlight normal not note of oh on one only option or org p page parsed parser Pears php Php PHP picture please Please popular pre present projects Red related rendered rendering Repair respository result results sea see sentence set shadow shadowed simple simply site sized so software space spaces special Special specific specification specifications specified specify Specifying src standard Standard statements strange style superscript support supported supports syntax system tables Tables tag test testfiles text the The them then There this This through title to To too topten toptensoftware transform tree true Two unit Up url urls use uses using value values var want well Where which width will wind with writing www xxx Yellow you You your yyy", | |||
| "title": "Markdown support" | |||
| }, | |||
| { | |||