diff --git a/Authoringcontent.htm b/Authoringcontent.htm index 301393f..13150c3 100644 --- a/Authoringcontent.htm +++ b/Authoringcontent.htm @@ -78,14 +78,12 @@
-

Authoring content

- +

Authoring content

Please select one of the topic in this section:

- -

diff --git a/Configuration.htm b/Configuration.htm index e9c087c..0c65ed0 100644 --- a/Configuration.htm +++ b/Configuration.htm @@ -77,14 +77,12 @@
-

Configuration

- +

Configuration

Please select one of the topic in this section:

- -

diff --git a/MarkdownSource/acknowledgements.md b/MarkdownSource/acknowledgements.md index 5f216b1..27b9196 100644 --- a/MarkdownSource/acknowledgements.md +++ b/MarkdownSource/acknowledgements.md @@ -4,5 +4,5 @@ Acknowledgements This application wouldn't be possible without the work of others. The (likely incomplete) list below contains the work `Docnet` is based on / builds upon. * [MkDocs](http://www.mkdocs.org/). `Docnet` borrows a great deal from `MkDocs`: the theme css `Docnet` uses is based on a cleaned up version of their `Readthedocs` theme, as well as the javascript based search is from MkDocs. -* [MarkdownSharp](https://github.com/KyleGobel/MarkdownSharp-GithubCodeBlocks). The markdown parser is an extended version of the `MarkdownSharp` parser from StackExchange with the extensions added by Kyle Gobel. +* [MarkdownDeep](http://www.toptensoftware.com/markdowndeep/). The markdown parser is an extended version of the `MarkdownDeep` parser from topten software. * [Json.NET](http://www.newtonsoft.com/json). The reading/writing of json files is important for `Docnet` and it uses Json.NET for that. diff --git a/MarkdownSource/docnet.json b/MarkdownSource/docnet.json index 2fceef2..b94b0c4 100644 --- a/MarkdownSource/docnet.json +++ b/MarkdownSource/docnet.json @@ -19,7 +19,7 @@ "Writing content using Markdown" : { "Markdown support": "markdownsupport.md", - "Markdown extensions" : "markdownextensions.md" + "DocNet Markdown extensions" : "markdownextensions.md" } }, "Search" : "search.md", diff --git a/MarkdownSource/markdownextensions.md b/MarkdownSource/markdownextensions.md index b37e55f..aace18f 100644 --- a/MarkdownSource/markdownextensions.md +++ b/MarkdownSource/markdownextensions.md @@ -1,7 +1,7 @@ -Markdown extensions -=================== +DocNet Markdown extensions +========================== -`Docnet` defines the following markdown extensions to make writing +`Docnet` defines the following markdown extensions to make writing documentation easier. ## Alert boxes To quickly define alert boxes, `Docnet` defines the `@alert` element. Three types of alerts are defined: *danger* (displayed in red), *warning* (displayed in yellow) and *info* or *neutral*, which is displayed in blue. You specify the type of the alert after the `@alert` statement using @alert *name*. Close the `@alert` with `@end`. diff --git a/MarkdownSource/markdownsupport.md b/MarkdownSource/markdownsupport.md index 336bbef..728ceda 100644 --- a/MarkdownSource/markdownsupport.md +++ b/MarkdownSource/markdownsupport.md @@ -1,12 +1,79 @@ Markdown support ================ -`DocNet` uses markdown files as input. The markdown is parsed with the markdown parser from StackExchange (called '[MarkdownSharp](https://github.com/KyleGobel/MarkdownSharp-GithubCodeBlocks)'). It supports the default markdown statements as well as github style code block markers and specific extensions for writing documentation, which are described below. +`DocNet` uses markdown files as input. The markdown is parsed with the markdown parser from topten software (called '[MarkdownDeep](http://www.toptensoftware.com/markdowndeep/)'). It supports the default markdown statements as well as github style code block markers and specific extensions for writing documentation, which are described below. + +##Standard Markdown +The standard markdown syntax as defined by [John Gruber](https://daringfireball.net/projects/markdown/) is supported in full. + +##Php Markdown Extra +MarkdownDeep supports [PHP Markdown Extra](https://michelf.ca/projects/php-markdown/extra/). PHP Markdown Extra comes with a set of neat extensions for markdown to define e.g. tables, footnotes and more. Please see the link above for all the syntax examples. Additionally, you can look at the [unit test files](https://github.com/FransBouma/DocNet/tree/master/src/MarkdownDeepTests/testfiles/extramode) for MarkdownDeep in the [DocNet respository at GitHub](https://github.com/FransBouma/DocNet). + +A couple of examples are given below + +###Footnotes +MarkdownDeep supports Footnotes, which can be added through the following system: To specify a footnote marker, specify `[^1]`, which will result in:[^1] + +The actual footnote text is then specified with `[^1]:` following the text of the actual footnote. Click on the superscript `1` link above to go to the footnote rendered at the bottom of this page. + +[^1]: And this is the footnote related to the example above. + +###Definition lists +To specify simple definition lists, simply do: + +``` +Item one +: this is the description of item one + +Item Two +: this is the text of item 2 +``` + +which results in: + +Item one +: this is the description of item one + +Item Two +: this is the text of item 2 + +###Tables +There's basic support for defining tables. + +Specifying: +``` +Fruit|Color +--|-- +Apples|Red +Pears|Green +Bananas|Yellow +Bongo|Bongo... it's a strange color, do you have a minute? It's a bit like the sea, but also a bit like the beach. You know how it is... oh and a bit like the wind too? You see it? Hey! Where're you going?! +``` + +results in: + +Fruit|Color +--|-- +Apples|Red +Pears|Green +Bananas|Yellow +Bongo|Bongo... it's a strange color, do you have a minute? It's a bit like the sea, but also a bit like the beach. You know how it is... oh and a bit like the wind too? You see it? Hey! Where're you going?! + +###Abbreviations +There's also support for abbreviations, using the `` HTML tag. + +Specifying: +``` +*[FuBar]: F**ked Up Beyond Any Repair. +``` +*[FuBar]: F**ked Up Beyond Any Repair. + +gives an abbreviation link in the following sentence: This is a test for abbreviations: FuBar. ##Highlighting code The markdown parser has been extended with GitHub code specifications, so it's easy to specify a specific code beautifying based on a language. This feature uses the [Highlight.js](https://highlightjs.org/) javascript library and most popular languages are included. -Example: to specify a codeblock as C#, append `cs` after the first ` ``` ` marker: +Example: to specify a codeblock as C#, append `cs` after the first ``` marker: ```cs var i=42; @@ -19,4 +86,6 @@ this is a simple
 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`. 
\ No newline at end of file
+`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`. 
+
+
diff --git a/MarkdownSource/themes.md b/MarkdownSource/themes.md
index a39d5ff..2b9e6b8 100644
--- a/MarkdownSource/themes.md
+++ b/MarkdownSource/themes.md
@@ -20,8 +20,7 @@ The `PageTemplate.htm` file is a simple HTML file, located in each `theme` folde
 * `{{Breadcrumbs}}`. This is replaced with a / delimited list of names making up the bread crumbs representing the navigation through the ToC to reach the current page. 
 * `{{ExtraScript}}`. This is replaced with extra script definitions / references required by some pages, like the search page. It's `docnet` specific and if this marker isn't present, search won't work.
 * `{{Path}}`. This is used to fill in the relative path to reach css/js files in hard-coded URLs in the `PageTemplate` file. This means that specifying a css URL in `PageTemplate` should look like:
-
-```HTML
-
-```
+    ```HTML
+    
+    ```
 `Docnet` will then replace `{{Path}}` with e.g. '../../' to get to the css file from the location of the .htm file loaded.
diff --git a/WritingcontentusingMarkdown.htm b/WritingcontentusingMarkdown.htm
index e29ba53..585b6a2 100644
--- a/WritingcontentusingMarkdown.htm
+++ b/WritingcontentusingMarkdown.htm
@@ -46,7 +46,7 @@
 
  • Writing content using Markdown
  • Markdown support
  • -
  • Markdown extensions +
  • DocNet Markdown extensions
  • @@ -85,14 +85,12 @@
    -

    Writing content using Markdown

    - +

    Writing content using Markdown

    Please select one of the topic in this section:

    - -

    diff --git a/acknowledgements.htm b/acknowledgements.htm index 11a9ad8..97bcdee 100644 --- a/acknowledgements.htm +++ b/acknowledgements.htm @@ -1,100 +1,98 @@ - - - - - - - - - - - Acknowledgements - DocNet Documentation - - - - - - - -
    - - +
    + + + + +{{ExtraScript}} + + diff --git a/css/theme.css b/css/theme.css index 79f9c2d..49f1dc5 100644 --- a/css/theme.css +++ b/css/theme.css @@ -127,14 +127,14 @@ a { text-decoration: none; } - a .icon { - display: inline-block; - text-decoration: inherit; - } +a .icon { + display: inline-block; + text-decoration: inherit; +} - a:hover, a:active { - outline: 0; - } +a:hover, a:active { + outline: 0; +} abbr[title] { border-bottom: 1px dotted; @@ -152,18 +152,18 @@ blockquote { quotes: "\201C""\201D""\2018""\2019"; } - blockquote:before { - color: #ccc; - content: open-quote; - font-size: 4em; - line-height: 0.1em; - margin-right: 10px; - vertical-align: -0.4em; - } +blockquote:before { + color: #ccc; + content: open-quote; + font-size: 4em; + line-height: 0.1em; + margin-right: 10px; + vertical-align: -0.4em; +} - blockquote p { - display: inline; - } +blockquote p { + display: inline; +} body { @@ -186,14 +186,14 @@ button, input { *vertical-align: middle; } - button[disabled], input[disabled] { - cursor: default; - } +button[disabled], input[disabled] { + cursor: default; +} - button::-moz-focus-inner, input::-moz-focus-inner { - border: 0; - padding: 0; - } +button::-moz-focus-inner, input::-moz-focus-inner { + border: 0; + padding: 0; +} button { font-size: 100%; @@ -216,18 +216,35 @@ code, pre.nocode { overflow-x: auto; } - code.code-large { - font-size: 90%; - } - -dd { - margin: 0; +code.code-large { + font-size: 90%; } dfn { font-style: italic; } +dl { + margin-bottom: 24px; +} + +dl dt { + font-weight: bold; +} + +dl p, dl table, dl ul, dl ol { + margin-bottom: 12px !important; +} + +dl dd { + margin: 0 0 12px 24px; +} + +dl:not(.docutils) { + margin-bottom: 24px; +} + + figure { margin: 0; } @@ -249,35 +266,40 @@ form { h1, h2, h3, h4, h5, h6 { margin-top: 0; font-weight: lighter; - margin-bottom: -10px; } h1 { font-size: 220%; + margin-bottom:25px; } h2 { font-size: 190%; + margin-bottom:18px; } h3 { font-size: 155%; + margin-bottom:15px; } h4 { font-size: 130%; + margin-bottom: 13px; } - h4.searchresulttitle { - margin-bottom: -5px; - } +h4.searchresulttitle { + margin-bottom: -5px; +} h5 { font-size: 115%; + margin-bottom: 10px; } h6 { font-size: 105%; + margin-bottom: 7px; } hr { @@ -312,23 +334,23 @@ input { *vertical-align: middle; } - input[type="text"] { - -webkit-appearance: none; - padding: 6px; - display: inline-block; - border: 1px solid; - font-size: 80%; - box-shadow: inset 0 1px 3px #ddd; - border-radius: 0; - -webkit-transition: border 0.3s linear; - -moz-transition: border 0.3s linear; - transition: border 0.3s linear; - } +input[type="text"] { + -webkit-appearance: none; + padding: 6px; + display: inline-block; + border: 1px solid; + font-size: 80%; + box-shadow: inset 0 1px 3px #ddd; + border-radius: 0; + -webkit-transition: border 0.3s linear; + -moz-transition: border 0.3s linear; + transition: border 0.3s linear; +} - /* For chrome, to avoid ugly bar around search box*/ - input:focus { - outline: none; - } +/* For chrome, to avoid ugly bar around search box*/ +input:focus { + outline: none; +} ins { text-decoration: none; @@ -491,17 +513,21 @@ td { text-align: center; } - .toc-footer hr { - width: 100%; - display: block; - height: 1px; - border: 0; - border-top: 1px solid; - margin-left: auto; - margin-right: auto; - padding-bottom: 0; - margin-bottom: 5px; - } +.toc-footer hr { + width: 100%; + display: block; + height: 1px; + border: 0; + border-top: 1px solid; + margin-left: auto; + margin-right: auto; + padding-bottom: 0; + margin-bottom: 5px; +} + +.footnotes { + font-size:smaller; +} /* #endregion */ @@ -533,52 +559,51 @@ td { margin-bottom: 24px; } - .table caption { - font-size: 85%; - font-style: italic; - padding: 1em 0; - text-align: center; - } +.table caption { + font-size: 85%; + font-style: italic; + padding: 1em 0; + text-align: center; +} - .table td, .table th { - font-size: 90%; - margin: 0; - overflow: visible; - padding: 8px 16px; - } +.table td, .table th { + font-size: 90%; + margin: 0; + overflow: visible; + padding: 8px 16px; +} - .table td:first-child, .table th:first-child { - border-left-width: 0; - } +.table td:first-child, .table th:first-child { + border-left-width: 0; +} - .table thead { - text-align: left; - vertical-align: bottom; - white-space: nowrap; - } +.table thead { + text-align: left; + vertical-align: bottom; + white-space: nowrap; +} - .table thead th { - font-weight: bold; - border-bottom: solid 2px; - } +.table thead th { + font-weight: bold; + border-bottom: solid 2px; +} - .table td { - background-color: transparent; - vertical-align: middle; - } +.table td { + background-color: transparent; +} - .table td p { - line-height: 18px; - } +.table td p { + line-height: 18px; +} - .table td p:last-child { - margin-bottom: 0; - } +.table td p:last-child { + margin-bottom: 0; +} - .table .table-cell-min { - width: 1%; - padding-right: 0; - } +.table .table-cell-min { + width: 1%; + padding-right: 0; +} .table-secondary { font-size: 90%; @@ -592,14 +617,14 @@ td { border: 1px solid; } - .table-bordered-all td { - border-bottom: 1px solid; - border-left: 1px solid; - } +.table-bordered-all td { + border-bottom: 1px solid; + border-left: 1px solid; +} - .table-bordered-all tbody > tr:last-child td { - border-bottom-width: 0; - } +.table-bordered-all tbody > tr:last-child td { + border-bottom-width: 0; +} .table-bordered { border: 1px solid; @@ -632,13 +657,13 @@ td { overflow: auto; } - .table-responsive table { - margin-bottom: 0 !important; - } +.table-responsive table { + margin-bottom: 0 !important; +} - .table-responsive table td, .table-responsive table th { - white-space: nowrap; - } +.table-responsive table td, .table-responsive table th { + white-space: nowrap; +} /* #endregion*/ /* #region Tabs*/ diff --git a/docnetjson.htm b/docnetjson.htm index c67e4e5..050aac3 100644 --- a/docnetjson.htm +++ b/docnetjson.htm @@ -1,112 +1,109 @@ - - - - - - - - - - - Site configuration with the docnet.json file - DocNet Documentation - - - - - - - -
    - - +
    + + + + +{{ExtraScript}} + + diff --git a/h2leveldiscovery.htm b/h2leveldiscovery.htm index 7683195..eb9c9f0 100644 --- a/h2leveldiscovery.htm +++ b/h2leveldiscovery.htm @@ -77,8 +77,7 @@
    -

    Automatic H2 level ToC entry discovery

    - +

    Automatic H2 level ToC entry discovery

    Docnet will automatically add all H2 (## marked) headers to the ToC as sub navigation elements below a page ToC item. It will automatically add anchors to these H2 headers in the HTML output for the page as well. This makes it very easy to create a fine-grained ToC for easy discovery.

    diff --git a/index.htm b/index.htm index 72bbeea..5e9428a 100644 --- a/index.htm +++ b/index.htm @@ -1,100 +1,96 @@ - - - - - - - - - - - Home - DocNet Documentation - - - - - - - -
    - - -
    - - - - -{{ExtraScript}} - - + + + + + + + + + + + Home - DocNet Documentation + + + + + + + +
    + + +
    + + + + +{{ExtraScript}} + + diff --git a/license.htm b/license.htm index 2e28b48..a3dba0a 100644 --- a/license.htm +++ b/license.htm @@ -70,20 +70,15 @@
    -

    License

    - +

    License

    DocNet is licensed under the following license:

    -

    The MIT License (MIT)

    -

    Copyright (c) 2016 Frans Bouma

    - -

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    - -

      +

      Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

      +
      • The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
      -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

      +

      THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    diff --git a/markdownextensions.htm b/markdownextensions.htm index 36512cc..77a08c8 100644 --- a/markdownextensions.htm +++ b/markdownextensions.htm @@ -1,190 +1,154 @@ - - - - - - - - - - - Markdown extensions - DocNet Documentation - - - - - - - -
    - -

    will result in:

    +

    This is the text for the first tab. It's nothing special

    +

    As you can see, it can deal with newlines as well.

    +

    Now, the second tab however is very interesting. At least let's pretend it is!

    +
    + + + + + + + + + + +{{ExtraScript}} + + diff --git a/markdownsupport.htm b/markdownsupport.htm index 219a936..04acfcd 100644 --- a/markdownsupport.htm +++ b/markdownsupport.htm @@ -1,130 +1,195 @@ - - - - - - - - - + + + + + + + + + + + Markdown support - DocNet Documentation + + + + + + + +
    + + -
    - - - - -{{ExtraScript}} - - +
    +
    +
      +
    1. +

      And this is the footnote related to the example above. 

      +
    2. +
    +
    + + + + + + + + + + + +{{ExtraScript}} + + diff --git a/search.htm b/search.htm index dbc7ab5..6271fb8 100644 --- a/search.htm +++ b/search.htm @@ -70,10 +70,8 @@
    -

    Search

    - +

    Search

    Docnet will generate a search_data.json file in the root of the destination folder which is used with the javascript based search. It's a simple text search which can locate pages based on the word/sentence specified and will list them in first come first served order. For general purposes of locating a general piece of documentation regarding a topic it's good enough.

    -

    NOTE: Search locally on a file:/// served site won't work in Chrome, due to cross-origin protection because the search loads the search index and a template from disk in javascript. Either use Firefox or use the site with a server.

    diff --git a/search_index.json b/search_index.json index 0b3b108..bc3ab5e 100644 --- a/search_index.json +++ b/search_index.json @@ -27,14 +27,14 @@ { "location": "markdownsupport.htm", "breadcrumbs": "Home / Authoring content / Writing content using Markdown / Markdown support", - "keywords": "20 20to 42 a AddEntity after allow also and any append are as at based be beautifying been below besides block but C called code codeblock com convert cs default described destination docnet Docnet DocNet document documentation doesn easy escape Example extended extensions feature file files first fixed folder font for from future get github GitHub GithubCodeBlocks has Highlight highlighting Highlighting highlightjs How htm https i If in In included input is it It javascript js KyleGobel language languages library link Linking links markdown Markdown MarkdownSharp marker markers md means might moment most name need nohighlight not of on ones org page parsed parser popular pre present result should simple site sized so space spaces specific specifications specify StackExchange statements style support supports text that the The this This to To transform transformation updated url urls use uses usual var want well which will with writing you your", + "keywords": "1 2 20 20to 42 a A abbr abbreviation abbreviations Abbreviations above actual added AddEntity Additionally after all allow also an and And any Any append Apples are as at Bananas based basic be beach beautifying been below besides Beyond bit block Bongo bottom but by C ca called can Click code codeblock color Color com comes convert couple cs daringfireball default define defined defining definition Definition described description destination do docnet Docnet DocNet document documentation doesn e easy escape example Example examples extended extensions extra Extra extramode F feature 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 Hey Highlight highlighting Highlighting highlightjs how How htm HTML http https i If in In included input is it It item Item javascript John js ked know language languages library like link Linking links lists look markdown Markdown markdowndeep MarkdownDeep MarkdownDeepTests marker markers master md means michelf might minute moment more most name neat need net nohighlight not of oh on one ones org page parsed parser Pears php Php PHP Please popular pre present projects Red related rendered Repair respository result results sea see sentence set should simple simply site sized so software space spaces specific 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 then There this This through to To too topten toptensoftware transform transformation tree Two unit Up updated url urls use uses using usual var want well Where which will wind with writing www Yellow you You your", "title": "Markdown support" }, { "location": "markdownextensions.htm", - "breadcrumbs": "Home / Authoring content / Writing content using Markdown / Markdown extensions", - "keywords": "_iconname_ 64 a add after alert Alert alerts an and are as As At awesome Awesome based be Below Between blue box boxes by can Close codepen contents control converted create CSS3 danger dangerous deal define defined defines definition displayed Docnet each easy element end End endtabs example Example examples extensions fa first First followed following font Font for fusco Fusco github GitHub however HTML http icon iconname icons in info interesting into io is it It Joseph label least let make markdown Markdown more name need neutral newline newlines nohighlight nothing Now of on one or pen pretend pure quickly red result results Results second Second see set shows simple special specify start statement statements suffixed tab Tab tabs Tabs text that the The them This those Three to To two type types use used using very warning well where which will with work writing Wvzjrm yellow you You your", - "title": "Markdown extensions" + "breadcrumbs": "Home / Authoring content / Writing content using Markdown / DocNet Markdown extensions", + "keywords": "_iconname_ 64 a add after alert Alert alerts an and are as As At awesome Awesome based be Below Between blue box boxes by can Close codepen contents control converted create CSS3 danger dangerous deal define defined defines definition displayed Docnet DocNet documentation each easier easy element end End endtabs example Example examples extensions fa first First followed following font Font for fusco Fusco github GitHub however HTML http icon iconname icons in info interesting into io is it It Joseph label least let make markdown Markdown more name need neutral newline newlines nohighlight nothing Now of on one or pen pretend pure quickly red result results Results second Second see set shows simple special specify start statement statements suffixed tab Tab tabs Tabs text that the The them This those Three to To two type types use used using very warning well where which will with work writing Wvzjrm yellow you You your", + "title": "DocNet Markdown extensions" }, { "location": "search.htm", @@ -45,7 +45,7 @@ { "location": "acknowledgements.htm", "breadcrumbs": "Home / Acknowledgements", - "keywords": "a Acknowledgements added an and application as based be below borrows builds by cleaned com contains css deal Docnet extended extensions files for from github GithubCodeBlocks Gobel great http https important incomplete is it javascript json Json Kyle KyleGobel likely list markdown MarkdownSharp mkdocs MkDocs NET newtonsoft of on org others parser possible reading Readthedocs search StackExchange that the The their theme This up upon uses version well with without work wouldn writing www", + "keywords": "a Acknowledgements an and application as based be below borrows builds cleaned com contains css deal Docnet extended files for from great http important incomplete is it javascript json Json likely list markdown markdowndeep MarkdownDeep mkdocs MkDocs NET newtonsoft of on org others parser possible reading Readthedocs search software that the The their theme This topten toptensoftware up upon uses version well without work wouldn writing www", "title": "Acknowledgements" }, { diff --git a/themes.htm b/themes.htm index 7c19ec6..d1d87c4 100644 --- a/themes.htm +++ b/themes.htm @@ -41,9 +41,9 @@
  • Authoring content
  • Themes
  • Writing content using Markdown @@ -82,22 +82,14 @@
  • -

    Themes

    - +

    Themes

    Docnet uses themes to produce output in a certain form. A theme is a folder within the Themes folder which contains a PageTemplate.htm file and a Destination folder which contains zero or more folders and files which have to be copied to the Destination folder specified in the docnet.json file.

    - -

    Themes folder

    - +

    Themes folder

    Docnet expects the Themes folder to be located in the folder where the executable is started from. This means that if you build Docnet from source, you have to manually copy the Themes folder to the folder your binary is located. To make development easier, you could create a junction in the bin\debug or bin\release folder to the Themes folder in the source repository, using mklink on a windows command prompt.

    - -

    Default theme

    - +

    Default theme

    The default theme is called Default and is chosen if no theme has been specified in the docnet.json file. It is based on the theme from ReadTheDocs, and is created from the one shipped with MkDocs.

    - -

    PageTemplate.htm

    - +

    PageTemplate.htm

    The PageTemplate.htm file is a simple HTML file, located in each theme folder, which is used as the template for all generated .htm files. You can place whatever you like in there, including references to css/js files, headers, footers etc. DocNet however expects a couple of markers which are replaced with the data created from the markdown files. These markers are described below. The markers have to be specified as-is.

    -
    • {{Name}}. This is replaced with the value specified in Name in the docnet.json file.
    • {{Content}}. This is replaced with the HTML generated from the markdown file.
    • @@ -106,13 +98,14 @@
    • {{Footer}}. This is replaced with the value specified in Footer in the docnet.json file.
    • {{Breadcrumbs}}. This is replaced with a / delimited list of names making up the bread crumbs representing the navigation through the ToC to reach the current page.
    • {{ExtraScript}}. This is replaced with extra script definitions / references required by some pages, like the search page. It's docnet specific and if this marker isn't present, search won't work.
    • -
    • {{Path}}. This is used to fill in the relative path to reach css/js files in hard-coded URLs in the PageTemplate file. This means that specifying a css URL in PageTemplate should look like:
    • -
    +
  • +{{Path}}. This is used to fill in the relative path to reach css/js files in hard-coded URLs in the PageTemplate file. This means that specifying a css URL in PageTemplate should look like: +
    <link rel="stylesheet" href="{{Path}}css/theme.css" type="text/css" />
    +
    -

    <link rel="stylesheet" href="{{Path}}css/theme.css" type="text/css" />
    -

    - -

    Docnet will then replace {{Path}} with e.g. '../../' to get to the css file from the location of the .htm file loaded.

    +Docnet will then replace {{Path}} with e.g. '../../' to get to the css file from the location of the .htm file loaded. +
  • +
    diff --git a/usage.htm b/usage.htm index 5686b2a..65b141a 100644 --- a/usage.htm +++ b/usage.htm @@ -33,7 +33,7 @@
  • Usage
  • Configuration @@ -72,23 +72,16 @@
    -

    Usage

    - +

    Usage

    The usage is simple:

    -

    docnet options folder

    -

    options can be:

    - -

      +
      • -c : clear destination folder.
      -By default docnet doesn't remove any file in the destination folder. When specified it will remove all files and folders recursively in the specified Destination folder in the found docnet.json. So use this option with caution, as it won't check whether this is the folder your family photos or precious sourcecode are located!

      - +

      By default docnet doesn't remove any file in the destination folder. When specified it will remove all files and folders recursively in the specified Destination folder in the found docnet.json. So use this option with caution, as it won't check whether this is the folder your family photos or precious sourcecode are located!

      folder is the folder where a docnet.json file is expected to be present.

      - -

      Requirements

      - +

      Requirements

      Docnet is a .NET full application (using .NET 4.6.1) and requires .NET full to run. Not tested on Mono but it's highly likely it works on Mono without a problem. The code uses .NET 4.6.1 but it can be compiled against lower versions of .NET full, it doesn't use .NET 4.6 specific features but as Microsoft supports only the latest .NET 4.x versions, it was a logical choice to use .NET 4.6.1.