diff options
author | Oleg Yukhnevich <whyoleg@gmail.com> | 2023-11-07 15:27:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 15:27:34 +0200 |
commit | 64cce58f73f908909ba60da6005d7abb2572b2f0 (patch) | |
tree | b66897df0bb86e159d6d040c65e04552efd1ee68 /plugins/base/src/main/resources/dokka/templates/includes/header.ftl | |
parent | 84e48b516500433332e9279237cd139f7836ca94 (diff) | |
download | dokka-64cce58f73f908909ba60da6005d7abb2572b2f0.tar.gz dokka-64cce58f73f908909ba60da6005d7abb2572b2f0.tar.bz2 dokka-64cce58f73f908909ba60da6005d7abb2572b2f0.zip |
Add the link to GitHub repo to the header if there are source links defined (#3235)
* Use URL from base plugin configuration
* Add integration test for the multi-module project that the homepage link exists everywhere
Diffstat (limited to 'plugins/base/src/main/resources/dokka/templates/includes/header.ftl')
-rw-r--r-- | plugins/base/src/main/resources/dokka/templates/includes/header.ftl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/base/src/main/resources/dokka/templates/includes/header.ftl b/plugins/base/src/main/resources/dokka/templates/includes/header.ftl index d5c7a613..d399e633 100644 --- a/plugins/base/src/main/resources/dokka/templates/includes/header.ftl +++ b/plugins/base/src/main/resources/dokka/templates/includes/header.ftl @@ -21,6 +21,9 @@ <@source_set_selector.display/> </div> <div class="navigation-controls"> + <#if homepageLink?has_content> + <div class="navigation-controls--btn navigation-controls--homepage" id="homepage-link" role="button"><a href="${homepageLink}"></a></div> + </#if> <button class="navigation-controls--btn navigation-controls--theme" id="theme-toggle-button" type="button">switch theme</button> <div class="navigation-controls--btn navigation-controls--search" id="searchBar" role="button">search in API</div> </div> |