-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from Bernardo-MG/release
Release
- Loading branch information
Showing
16 changed files
with
153 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/test/resources/it/image_shine_dark/src/site/markdown/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<!-- ********************************************** --> | ||
<!-- **************** PROJECT INFO **************** --> | ||
<!-- ********************************************** --> | ||
|
||
<groupId>com.bernardomg.maven.skins</groupId> | ||
<artifactId>image-shine-dark-overriden</artifactId> | ||
<version>1.0.0</version> | ||
<packaging>jar</packaging> | ||
|
||
<!-- ********************************************** --> | ||
<!-- **************** PROPERTIES ****************** --> | ||
<!-- ********************************************** --> | ||
|
||
<properties> | ||
<!-- Plugins versions --> | ||
<plugin.site.version>@plugin.site.version@</plugin.site.version> | ||
<!-- Maven Site --> | ||
<site.skin.version>@project.version@</site.skin.version> | ||
</properties> | ||
|
||
<!-- ********************************************** --> | ||
<!-- ******************* BUILD ******************** --> | ||
<!-- ********************************************** --> | ||
|
||
<build> | ||
<defaultGoal>clean package install</defaultGoal> | ||
<plugins> | ||
<plugin> | ||
<!-- Site --> | ||
<!-- Generates the Maven Site --> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-site-plugin</artifactId> | ||
<version>${plugin.site.version}</version> | ||
<dependencies> | ||
<dependency> | ||
<!-- Docs Maven Skin --> | ||
<groupId>com.bernardomg.maven.skins</groupId> | ||
<artifactId>docs-maven-skin</artifactId> | ||
<version>${site.skin.version}</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
12 changes: 12 additions & 0 deletions
12
src/test/resources/it/image_shine_dark_overriden/src/site/markdown/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Site With Images and Invalid Dark Theme | ||
|
||
This is an example for a Maven Site with images and a dark theme which looks bad for images. | ||
|
||
![Dice class diagram][dice-class_diagram] | ||
|
||
## Big Image | ||
|
||
![Big image][big-image] | ||
|
||
[big-image]: ./images/Fronalpstock_big.jpg | ||
[dice-class_diagram]: ./images/example_class_diagram.png |
Binary file added
BIN
+694 KB
...es/it/image_shine_dark_overriden/src/site/resources/images/Fronalpstock_big.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.69 KB
.../image_shine_dark_overriden/src/site/resources/images/example_class_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
src/test/resources/it/image_shine_dark_overriden/src/site/site.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/DECORATION/1.8.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.8.0 http://maven.apache.org/xsd/decoration-1.8.0.xsd"> | ||
|
||
<skin> | ||
<groupId>com.bernardomg.maven.skins</groupId> | ||
<artifactId>docs-maven-skin</artifactId> | ||
<version>${site.skin.version}</version> | ||
</skin> | ||
|
||
<custom> | ||
<skinConfig> | ||
<bootswatchStyle>spacelab</bootswatchStyle> | ||
<shine>dark</shine> | ||
<bgshine>primary</bgshine> | ||
<figshine>white</figshine> | ||
</skinConfig> | ||
</custom> | ||
|
||
</project> |
14 changes: 14 additions & 0 deletions
14
src/test/resources/it/image_shine_dark_overriden/verify.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// This script verifies that a minimal site contains only the barebones of a site. | ||
|
||
import org.jsoup.Jsoup | ||
|
||
// Acquires the sample HTML content | ||
def html = new File(basedir, 'target/site/index.html').text | ||
|
||
// Parses HTML | ||
def parsed = Jsoup.parse(html) | ||
def body = parsed.body() | ||
|
||
// Images | ||
def fig = body.select( 'figure' ).first() | ||
assert fig.hasClass( 'bg-white' ) |