You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/10/02 12:29:46 UTC
[plc4x-build-tools] branch develop updated: - Added bootstrap to
the skin - Made the page automatically include the fontawesome css
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x-build-tools.git
The following commit(s) were added to refs/heads/develop by this push:
new 18c889d - Added bootstrap to the skin - Made the page automatically include the fontawesome css
18c889d is described below
commit 18c889de518b39cf0dee21fdaf6926b160c04170
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Wed Oct 2 14:29:39 2019 +0200
- Added bootstrap to the skin
- Made the page automatically include the fontawesome css
---
plc4x-site-skin/pom.xml | 25 ++++++++++++++++++++++
.../src/main/resources/META-INF/maven/site.vm | 2 ++
2 files changed, 27 insertions(+)
diff --git a/plc4x-site-skin/pom.xml b/plc4x-site-skin/pom.xml
index f5b200b..1a40bb8 100644
--- a/plc4x-site-skin/pom.xml
+++ b/plc4x-site-skin/pom.xml
@@ -26,6 +26,7 @@
<sitePluginVersion>3.7.1</sitePluginVersion>
<mpirVersion>3.0.0</mpirVersion>
+ <bootstrap.version>4.3.1</bootstrap.version>
<fontawesome.version>5.2.0</fontawesome.version>
</properties>
@@ -47,6 +48,18 @@
<version>1.4.1</version>
<executions>
<execution>
+ <id>get-bootstrap</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>wget</goal>
+ </goals>
+ <configuration>
+ <url>https://github.com/twbs/bootstrap/releases/download/v${bootstrap.version}/bootstrap-${bootstrap.version}-dist.zip</url>
+ <unpack>true</unpack>
+ <outputDirectory>${project.build.directory}/dependency/bootstrap</outputDirectory>
+ </configuration>
+ </execution>
+ <execution>
<id>get-fontawesome</id>
<phase>generate-resources</phase>
<goals>
@@ -75,6 +88,18 @@
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
+ <directory>${project.build.directory}/dependency/bootstrap/bootstrap-${bootstrap.version}-dist</directory>
+ <includes>
+ <include>css/*</include>
+ </includes>
+ </resource>
+ <resource>
+ <directory>${project.build.directory}/dependency/bootstrap/bootstrap-${bootstrap.version}-dist</directory>
+ <includes>
+ <include>js/*</include>
+ </includes>
+ </resource>
+ <resource>
<directory>
${project.build.directory}/dependency/fontawesome/fontawesome-free-${fontawesome.version}-web
</directory>
diff --git a/plc4x-site-skin/src/main/resources/META-INF/maven/site.vm b/plc4x-site-skin/src/main/resources/META-INF/maven/site.vm
index 64c98ad..d5cd8f5 100644
--- a/plc4x-site-skin/src/main/resources/META-INF/maven/site.vm
+++ b/plc4x-site-skin/src/main/resources/META-INF/maven/site.vm
@@ -11,6 +11,8 @@
<meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
<title>$title</title>
<style type="text/css" media="all">
+ @import url("$relativePath/css/all.min.css");
+ @import url("$relativePath/css/bootstrap.min.css");
@import url("$relativePath/css/maven-base.css");
@import url("$relativePath/css/maven-theme.css");
@import url("$relativePath/css/site.css");