From b340971607d3d9f13f147c3c8db545a87b0c6561 Mon Sep 17 00:00:00 2001 From: Frans Bouma Date: Wed, 6 Mar 2019 14:04:08 +0100 Subject: [PATCH] Updated docs with ThemeFolder --- MarkdownSource/docnetjson.md | 10 ++++++++-- acknowledgements.htm | 1 - docnetjson.htm | 10 ++++++++-- h2leveldiscovery.htm | 1 - license.htm | 1 - notfound.htm | 1 - search.htm | 1 - search_index.json | 2 +- 8 files changed, 17 insertions(+), 10 deletions(-) diff --git a/MarkdownSource/docnetjson.md b/MarkdownSource/docnetjson.md index 71803df..7c9230f 100644 --- a/MarkdownSource/docnetjson.md +++ b/MarkdownSource/docnetjson.md @@ -9,7 +9,8 @@ DocNet uses a json file to determine what to do in what form. The format is stra "Source" : "sourcefolder", "Destination" : "destinationfolder", "IncludeSource": "includefolder", - "Theme" : "themefolder", + "Theme" : "themename", + "ThemeFolder" : "themefolder", "SourceFoldersToCopy" : ["folder1", "foldern"], "Footer" : "footer text or HTML", "StartingPageName" : "Home", @@ -49,7 +50,12 @@ Specifies the folder where the output will be written to (.htm files). The outpu 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. +Specifies the name of the theme to use which is a 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. + +If `ThemeFolder` is specified, the theme is looked up in that folder. + +### ThemeFolder +Optional folder specification of the folder which contains the theme specified in `Theme`. If not specified, the `Themes` folder of the docnet executable is used. ### 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. diff --git a/acknowledgements.htm b/acknowledgements.htm index 8d9ba9f..262ee1a 100644 --- a/acknowledgements.htm +++ b/acknowledgements.htm @@ -42,7 +42,6 @@
  • Search
  • Acknowledgements -
  • License
  • diff --git a/docnetjson.htm b/docnetjson.htm index 6e86861..7153223 100644 --- a/docnetjson.htm +++ b/docnetjson.htm @@ -48,6 +48,8 @@
  • Theme
  • +
  • ThemeFolder
  • +
  • SourceFoldersToCopy
  • ConvertLocalLinks
  • @@ -121,7 +123,8 @@ "Source" : "sourcefolder", "Destination" : "destinationfolder", "IncludeSource": "includefolder", - "Theme" : "themefolder", + "Theme" : "themename", + "ThemeFolder" : "themefolder", "SourceFoldersToCopy" : ["folder1", "foldern"], "Footer" : "footer text or HTML", "StartingPageName" : "Home", @@ -156,7 +159,10 @@

    IncludeSource

    Specifies the folder where the files specified to be included using @@include directives 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.

    +

    Specifies the name of the theme to use which is a 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.

    +

    If ThemeFolder is specified, the theme is looked up in that folder.

    +

    ThemeFolder

    +

    Optional folder specification of the folder which contains the theme specified in Theme. If not specified, the Themes folder of the docnet executable is used.

    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.

    diff --git a/h2leveldiscovery.htm b/h2leveldiscovery.htm index 9bc59f8..087d7ef 100644 --- a/h2leveldiscovery.htm +++ b/h2leveldiscovery.htm @@ -39,7 +39,6 @@
  • Site configuration with the docnet.json file
  • Automatic H2 level ToC entry discovery -
  • Not found (404) page
  • diff --git a/license.htm b/license.htm index 4b8c515..1c5ea1f 100644 --- a/license.htm +++ b/license.htm @@ -44,7 +44,6 @@
  • Acknowledgements
  • License -