Skip to content

Commit

Permalink
Use CSS instead of template to hide platform tags
Browse files Browse the repository at this point in the history
  • Loading branch information
MGaetan89 committed Oct 25, 2024
1 parent f373ca5 commit f1bfa97
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class PillarboxAndroidLibraryPublishingPlugin : Plugin<Project> {

// Follow https://github.com/Kotlin/dokka/issues/3883 to see if it's necessary to duplicate this config
pluginsConfiguration.getByName<DokkaHtmlPluginParameters>("html") {
customStyleSheets.from(rootProject.projectDir.resolve("dokka/styles/pillarbox.css"))
footerMessage.set("© SRG SSR")
homepageLink.set("https://srgssr.github.io/pillarbox-android")
templatesDir.set(rootProject.projectDir.resolve("dokka/templates"))
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dokka {
// See the overridable images here:
// https://github.com/Kotlin/dokka/tree/master/dokka-subprojects/plugin-base/src/main/resources/dokka/images
customAssets.from("dokka/images/logo-icon.svg") // TODO Use Pillarbox logo
customStyleSheets.from("dokka/styles/pillarbox.css")
footerMessage.set("© SRG SSR")
homepageLink.set("https://srgssr.github.io/pillarbox-android")
templatesDir.set(file("dokka/templates"))
Expand Down
3 changes: 3 additions & 0 deletions dokka/styles/pillarbox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#filter-section, .platform-tags {
display: none;
}
4 changes: 0 additions & 4 deletions dokka/templates/includes/source_set_selector.ftl

This file was deleted.

0 comments on commit f1bfa97

Please sign in to comment.