-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhelp #1723
base: master
Are you sure you want to change the base?
Webhelp #1723
Conversation
/** | ||
* We need to choose something different than `index` since webhelp overrides it | ||
*/ | ||
override val PAGE_WITH_CHILDREN_SUFFIX: String = "webhelp_index" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe parent
?
} | ||
}.let { content -> | ||
"""<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE product-profile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd extract this <!DOCTYPE>
header (or possibly all hardcoded xmls) to some separate file(s) and load it there (as well as in the ProjectDefinitionAppender)
override val preprocessors: List<PageTransformer> = | ||
listOf(RootCreator, TableOfContentPreprocessor(), ProjectDefinitionAppender, ConfigurationAppender) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be an extension
code { | ||
attributes["style"] = "block" | ||
attributes["lang"] = "kotlin" | ||
val renderer = WebhelpCodeRenderer(dokkaContext) | ||
+node.children.joinToString(separator = "") { renderer.buildContentNode(it, pageContext) } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can reuse the tags/code
here. Moreover, I'd make this a preprocessor, converting groups with ContentKind.Symbol
to ContentCode
de135ce
to
4397c96
Compare
No description provided.