-
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 #206 from Bernardo-MG/release
Release
- Loading branch information
Showing
9 changed files
with
131 additions
and
11 deletions.
There are no files selected for viewing
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
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</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/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 | ||
|
||
This is an example for a Maven Site with 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
...st/resources/it/image_shine_dark/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
...sources/it/image_shine_dark/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.
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,18 @@ | ||
<?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>darkly</bootswatchStyle> | ||
<shine>dark</shine> | ||
</skinConfig> | ||
</custom> | ||
|
||
</project> |
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,26 @@ | ||
// 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( 'shadow' ) | ||
assert fig.hasClass( 'bg-dark' ) | ||
assert fig.hasClass( 'rounded' ) | ||
assert fig.hasClass( 'p-2' ) | ||
|
||
def firstImg = fig.select( 'img' ).first() | ||
assert firstImg.attr( 'src' ).contains( './images/example_class_diagram.png' ) | ||
assert firstImg.attr( 'alt' ).contains( 'Dice class diagram' ) | ||
assert firstImg.hasClass( 'img-fluid' ) | ||
|
||
def firstCaption = fig.select( 'figcaption' ).first() | ||
assert firstCaption.html().contains( 'Dice class diagram' ) | ||
assert firstCaption.hasClass( 'font-italic' ) |