This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-fluido-skin.git
commit 26f5182cff669abbe46bb016fb591734d440f437 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Sat Oct 31 19:55:09 2026 +0000 Copy dark-theme.css only when the dark theme is enabled --- src/it/mskins-255_default/verify.groovy | 1 + src/main/resources/META-INF/maven/skin.xml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/it/mskins-255_default/verify.groovy b/src/it/mskins-255_default/verify.groovy index ca2c053..9be3448 100644 --- a/src/it/mskins-255_default/verify.groovy +++ b/src/it/mskins-255_default/verify.groovy @@ -20,3 +20,4 @@ String html = new File( basedir, "target/site/index.html" ).text // the dark theme is opt-in assert !html.contains( 'dark-theme.css' ) +assert !new File( basedir, "target/site/css/dark-theme.css" ).exists() diff --git a/src/main/resources/META-INF/maven/skin.xml b/src/main/resources/META-INF/maven/skin.xml index 76dd38c..5600a6c 100644 --- a/src/main/resources/META-INF/maven/skin.xml +++ b/src/main/resources/META-INF/maven/skin.xml @@ -34,6 +34,10 @@ under the License. <resource-name>css/gh-fork-ribbon.min.css</resource-name> <vtl-condition><![CDATA[#if( $site.getCustomChild( 'fluidoSkin.gitHub.projectId' ) )true#end]]></vtl-condition> </resource-condition> + <resource-condition> + <resource-name>css/dark-theme.css</resource-name> + <vtl-condition><![CDATA[#if( $site.getCustomValue( 'fluidoSkin.darkThemeEnabled', 'false' ).equalsIgnoreCase( 'true' ) )true#end]]></vtl-condition> + </resource-condition> <resource-condition> <resource-name>images/profiles/pre-release.png</resource-name> <vtl-condition><![CDATA[#if( $site.getCustomValue( 'fluidoSkin.profile', '' ).equalsIgnoreCase( 'pre-release' ) )true#end]]></vtl-condition>
