{{{decoratedTitleHTML}}}
+
+ {{/decoratedTitleHTML}}
+ {{^decoratedTitleHTML}}
+
+
+ {{/decoratedTitleHTML}}
+
+ {{title}}
+ diff --git a/README.md b/README.md index 103ce16..633df30 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,14 @@ open file:/tmp/SlothCreatorSite/documentation/slothcreator.html ## Status +### 2021-07-06 + +Well, it's getting closer and the source code starts to be quite +reasonable as well. Though you can still tell it started as a +quick hack. + +### 2021-07-03 + **It's not ready for production yet, needs some more work.** This is a very quick hack/PoC full of quirks, @@ -53,10 +61,10 @@ It's not much yet, but a pretty good starting point. ## TODO -- [ ] better templates -- [ ] support tutorials (task sections etc) +- [ ] better API doc templates +- [ ] improve tutorial templates - [ ] better CSS -- [ ] refactor code into a proper type and module for easier reuse +- [x] refactor code into a proper type and module for easier reuse - [x] drop dependency on Macro - [ ] support Mustache templates in the filesystem! (for customization & faster testing) diff --git a/Sources/DocCHTMLExporter/DZRenderingContext.swift b/Sources/DocCHTMLExporter/DZRenderingContext.swift index 9f2534d..9d7f5d0 100644 --- a/Sources/DocCHTMLExporter/DZRenderingContext.swift +++ b/Sources/DocCHTMLExporter/DZRenderingContext.swift @@ -32,7 +32,8 @@ open class DZRenderingContext { } public struct Templates { - // refer to them using this struct, to make them configurable later on. + + public init() {} /// Arguments: /// relativePathToRoot, highlightCDN, contentHTML, footerHTML, title, diff --git a/Sources/DocCHTMLExporter/Templates/README.md b/Sources/DocCHTMLExporter/Templates/README.md new file mode 100644 index 0000000..5eb9474 --- /dev/null +++ b/Sources/DocCHTMLExporter/Templates/README.md @@ -0,0 +1,25 @@ +
{{#lines}}{{code}}
+{{/lines}}
+ {{{tokensHTML}}}
+ {{name}}
{{{decoratedTitleHTML}}}
+
+ {{/decoratedTitleHTML}}
+ {{^decoratedTitleHTML}}
+
+
+ {{/decoratedTitleHTML}}
+
+ {{title}}
+ Step {{step}}
+{{#lines}}{{code}}
+ {{/lines}}
+