Skip to content
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

Footer customisation #1691

Merged
merged 1 commit into from
Jan 14, 2021
Merged

Footer customisation #1691

merged 1 commit into from
Jan 14, 2021

Conversation

MarcinAman
Copy link
Contributor

No description provided.

@MarcinAman MarcinAman linked an issue Jan 8, 2021 that may be closed by this pull request
@MarcinAman MarcinAman merged commit c04295a into master Jan 14, 2021
@MarcinAman MarcinAman deleted the footer-customization branch January 14, 2021 15:51
@gnarea
Copy link

gnarea commented Mar 11, 2021

Thanks for this! Any idea when the next release that will ship this change will be?

@MarcinAman
Copy link
Contributor Author

I am preparing release notes so it should be released this week

This was referenced Mar 15, 2021
@FWDekker
Copy link

Thanks! I'm a bit confused, though. Where do I add the footerMessage property? The documentation talks about the "base plugin configuration" but I have no idea where that is. I can't seem to add it to dokkaHtml.configure or to my source set's configuration or anywhere else where I'd expect to have to add it.

@MarcinAman
Copy link
Contributor Author

Here is an example of base plugin configuration: https://github.com/Kotlin/kotlin-examples/blob/25040fe92994ab46ebac6a6450d3ad1d3e870af1/gradle/dokka/dokka-customFormat-example/build.gradle.kts#L21

but instead of passing customAssets/stylesheets you need to add footerMessage there.

Also it is possible to do it without adding base plugin to buildScript:

pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.base.DokkaBase" to """{ "footerMessage": "<div style=\"color: red\">custom message</div>" }"""))

You can read more on those in our gradle docs:
https://kotlin.github.io/dokka/1.4.32/user_guide/gradle/usage/#applying-plugins

@FWDekker
Copy link

Oh I see, i didn't get that the base plugin was a separate plugin. I thought it was the base of the plugin, like a shared module or something.

Either way, the snippet you provided works perfectly, thank you!

@bogdan-richard
Copy link

bogdan-richard commented Aug 19, 2021

I might be missing something, but I cannot add my own footer for dokkaJavadoc tasks. Tried with @MarcinAman's example, the only change is this is in Groovy:

pluginsMapConfiguration.set(["org.jetbrains.dokka.base.DokkaBase" : """{ "footerMessage": "<div style=\"color: red\">custom message</div>" }"""])

Could anyone please give some hints?

Note: works well with dokkaHtml.

@MarcinAman
Copy link
Contributor Author

@bogdan-richard aforementioned customisation option only works for html output format. Currently your are not able to customise footer in javadoc

@bogdan-richard
Copy link

Thanks @MarcinAman for the quick response!

diegorondini referenced this pull request in diegorondini/hara-ddiclient Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dokka should allow for footer customization
5 participants