-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Separate core and gradle plugin docs - Generate docs for integration test directly from the project root
- Loading branch information
Showing
12 changed files
with
166 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
:icons: font | ||
:toc: left | ||
:imagesdir: . | ||
|
||
// :outfilesuffix: adoc | ||
|
||
// Align the version with ./gradle.properties file | ||
:version: 2.0.0 | ||
|
||
:asciidoc-url: https://asciidoctor.org | ||
:asciidoctor-gradle-plugin-url: https://github.com/asciidoctor/asciidoctor-gradle-plugin | ||
:gerdaschemann: https://github.com/ascheman | ||
:gernotstarke: https://github.com/gernotstarke | ||
:gradle-plugin-url: https://plugins.gradle.org/ | ||
:gradle-url: https://gradle.org/ | ||
:jitpack-url: https://jitpack.io/ | ||
:maven-url: https://maven.apache.org/ | ||
:plugin-issues: https://github.com/aim42/htmlSanityCheck/issues | ||
:plugin-url: https://github.com/aim42/htmlSanityCheck | ||
:project-bugs: https://github.com/aim42/htmlSanityCheck/issues?q=is%3Aopen+is%3Aissue+label%3Abug | ||
:project-issues: https://github.com/aim42/htmlSanityCheck/issues | ||
:project-url: https://github.com/aim42/htmlSanityCheck | ||
:project: htmlSanityCheck |
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,88 @@ | ||
:doctype: book | ||
include::../asciidoctor-config.ad[] | ||
|
||
= HSC Gradle Plugin | ||
|
||
The {gradle-url}[Gradle] plugin of HTML Sanity Check (xref:../README.adoc[HSC]) enables to check generated or native HTML documentation from the Gradle build. | ||
|
||
[[sec:installation]] | ||
== Installation (Gradle Plugin) | ||
|
||
=== Default Installation | ||
|
||
Use the following snippet inside a Gradle build file: | ||
|
||
.build.gradle | ||
[source,groovy,subs="attributes+"] | ||
---- | ||
plugins { | ||
id 'org.aim42.{project}' version '{version}' // <1> | ||
} | ||
---- | ||
<1> Checkout <<box:current-version,current version>> | ||
|
||
And add the following to | ||
|
||
.settings.gradle | ||
[source,groovy,subs="attributes+"] | ||
---- | ||
pluginManagement { | ||
repositories { | ||
maven { url "{jitpack-url}" } // <1> | ||
mavenCentral() | ||
gradlePluginPortal() // <2> | ||
} | ||
} | ||
---- | ||
|
||
=== Legacy Installation | ||
|
||
In case of https://docs.gradle.org/current/userguide/plugins.html#sec:old_plugin_application[legacy plugin usage] | ||
|
||
.build.gradle | ||
[source,groovy,subs="attributes+"] | ||
---- | ||
buildscript { | ||
repositories { | ||
maven { url "{jitpack-url}" } // <1> | ||
mavenCentral() | ||
gradlePluginPortal() // <2> | ||
} | ||
dependencies { | ||
classpath ('gradle.plugin.org.aim42:{project}:{version}') // <2> | ||
} | ||
} | ||
apply plugin: 'org.aim42.{project}' | ||
---- | ||
<1> In case you would like to use an older version (< 2.x) or a current development version, check out <<sec:other-versions>> | ||
<2> Check out <<box:current-version,current version>> | ||
|
||
[[box:current-version]] | ||
[IMPORTANT] | ||
.Latest (development) version | ||
==== | ||
The current development version is defined in link:../gradle.properties[] | ||
[source] | ||
---- | ||
include::../gradle.properties[tag=version] | ||
---- | ||
==== | ||
|
||
== Usage | ||
|
||
== Example | ||
|
||
[[sec:other-versions]] | ||
== Old and development versions | ||
|
||
[[sec:old-versions]] | ||
=== Old versions | ||
|
||
https://plugins.gradle.org/plugin/org.aim42.htmlSanityCheck[Old versions] (< `2.x`) are available from the {gradle-plugin-url} repository. | ||
|
||
[[sec:development-versions]] | ||
=== Development versions | ||
|
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:hsc-url: https://github.com/aim42/htmlSanityCheck/[] |
1 change: 0 additions & 1 deletion
1
integration-test/gradle-plugin/src/test/resources/gradle.properties
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
integration-test/gradle-plugin/src/test/resources/htmlsanitycheck-logo.png
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
integration-test/gradle-plugin/src/test/resources/integration-test.adoc
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
= Just a very simple (integration) test | ||
include::config.ad[] | ||
|
||
of https://github.com/aim42/htmlSanityCheck/[] | ||
of {hsc-url} |
1 change: 0 additions & 1 deletion
1
integration-test/gradle-plugin/src/test/resources/sample-hsc-report.jpg
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
integration-test/gradle-plugin/src/test/resources/structure101-logo.png
This file was deleted.
Oops, something went wrong.