-
Notifications
You must be signed in to change notification settings - Fork 410
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
[Dokka 2] Align heading 1 (<h1>
) styles
#3886
Comments
Hey, thanks for raising the issue! dokka {
dokkaPublications.html {
includes.from("...")
}
} @adam-enko correct me if I wrong, as this is missing from migration guide Anyway, it's a bit strange that the styles are different, have you experienced the same with behavior with Dokka 1.9.x? |
I'm using dokka {
pluginsConfiguration.html {
includes("Module.md")
}
} It's accessible from
We didn't deploy any HTML documentation when we were using Dokka 1.9.20. We decided to set this up with Dokka 2 directly. |
My bad, the correct way for the root module is to use the same syntax as in source sets:
got it, thanks, looks like this is not something that changed in Dokka 2.0, but just a minor styles differences, because those pages are just different (module page vs all-modules page) |
That doesn't seem to exist either: https://github.com/Kotlin/dokka/blob/master/dokka-runners/dokka-gradle-plugin/src/main/kotlin/engine/plugins/DokkaHtmlPluginParameters.kt |
oh, missed that in your comment, you need to use |
My bad 😅 The style are still different though |
I agree that the behaviour is confusing. The options used to configure Dokka Generator has two
(DokkaModuleDescription also has an 'includes' field, but that's the root directory of each partial Dokka Module to be aggregated into a Publication https://github.com/Kotlin/dokka/blob/v2.0.0-Beta/dokka-subprojects/core/src/main/kotlin/org/jetbrains/dokka/configuration.kt#L251, and isn't relevant here.) DGP provides a way of configuring includes both at the top-level (e.g. |
Is your feature request related to a problem? Please describe
When including a module documentation using the following:
Where
Module.md
contains something like:# Module Content Lorem ipsum
The title is rendered as:
However, if I include a top-level documentation using:
With the same content as before, the title is rendered as:
This results in a different layout between the two pages:
Describe the solution you'd like
Both titles have the same style.
Describe alternatives you've considered
For the moment, I can replace my top-level title with a HTML tag, instead of the Markdown
#
tag:The text was updated successfully, but these errors were encountered: