diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.adoc b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.adoc new file mode 100644 index 00000000..f3a9927e --- /dev/null +++ b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.adoc @@ -0,0 +1,97 @@ += Test File for HTML Sanity Check + + +== Image Directory Setting +Via the following directive, the image directory is set to "./images": + +---- +:imagesdir: ./images +---- +:imagesdir: ./images + + +== What is tested here + +This file serves as _smoketest_ for kbd:[htmlSC], as it deliberately forces +the (asciidoc) html generator to create the following errors within the html +output: + +* Broken cross reference (missing link target for internal link). See section <>. +* <> +* <> (dupliate link target) +* Missing local resource (missing link to local file) + + + +== Cross-References, a.k.a. _Internal Links_ + + +* A link to the subheading below: <>. +* A second link, but <<24mia, misspelled>> + + +This plugin has been created in context of the <> project + + +[[aim42]] +=== aim42 Architecture Improvement + + +[[Missing-Images]] +== Missing Images +One image from the image directory - created with this asciidoc: +---- +image::aim42.png["alternate-text", title="aim42-logo", width="150"] +---- + +image::aim42.png["alternate-text", title="aim42-logo", width="150"] + + +=== A Missing Image + +Another image tag - but this image (with the strange name) +does not exist in the file system: +---- +image::missing-image-urjk8ybepw8.jpg["missing...", title="missing-image"] +---- +image::missing-image-urjk8ybepw8.jpg["missing...", title="missing-image"] + +=== A data:image + +In this case, an inline image (data:uri) is generated by setting the switch `:data-uri:` + +:data-uri: + +image::aim42.png["alternate-text", title="aim42-logo", width="150"] + +image::missing-image-urjk8ybepw8.jpg["alternate-text", title="aim42-logo", width="150"] + +The resulting image is fully contained within the generated HTML and thus needs no additional check. + +[[Duplicate-Id]] +== Duplicate ID's or Bookmarks + +In Asciidoc, ID's are defined using double brackets +---- +[[some-anchor]] +---- +One can <> those id's/bookmarks +with <> directive in asciidoc. + +[[some-anchor]] +In this section, we define this id: +.... +[[some-anchor]] +.... + +for the first time. +Where will the browser jump to, if we <> + + +[[some-anchor]] +=== Second definition +In this section, we define it the second time. + + +== External Links +(to be done) diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.html b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.html new file mode 100644 index 00000000..2f989bdd --- /dev/null +++ b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/rain/src/file-to-test.html @@ -0,0 +1,607 @@ + + + + + + + +Test File for HTML Sanity Check + + + + + +
+
+

Image Directory Setting

+
+
+

Via the following directive, the image directory is set to "./images":

+
+
+
+
:imagesdir: ./images
+
+
+
+
+
+

What is tested here

+
+
+

This file serves as smoketest for kbd:[htmlSC], as it deliberately forces +the (asciidoc) html generator to create the following errors within the html +output:

+
+
+ +
+
+
+
+ +
+
+
    +
  • +

    A link to the subheading below: title.

    +
  • +
  • +

    A second link, but misspelled

    +
  • +
+
+
+

This plugin has been created in context of the aim42 Architecture Improvement project

+
+
+

aim42 Architecture Improvement

+ +
+
+
+
+

Missing Images

+
+
+

One image from the image directory - created with this asciidoc:

+
+
+
+
image::aim42.png["alternate-text", title="aim42-logo", width="150"]
+
+
+
+
+alternate-text +
+
Figure 1. aim42-logo
+
+
+

A Missing Image

+
+

Another image tag - but this image (with the strange name) +does not exist in the file system:

+
+
+
+
image::missing-image-urjk8ybepw8.jpg["missing...", title="missing-image"]
+
+
+
+
+missing…​ +
+
Figure 2. missing-image
+
+
+
+

A data:image

+
+

In this case, an inline image (data:uri) is generated by setting the switch :data-uri:

+
+
+
+alternate-text +
+
Figure 3. aim42-logo
+
+
+
+alternate-text +
+
Figure 4. aim42-logo
+
+
+

The resulting image is fully contained within the generated HTML and thus needs no additional check.

+
+
+
+
+
+

Duplicate ID’s or Bookmarks

+
+
+

In Asciidoc, ID’s are defined using double brackets

+
+
+
+
[[some-anchor]]
+
+
+
+

One can reference those id’s/bookmarks +with [some-anchor] directive in asciidoc.

+
+
+

In this section, we define this id:

+
+
+
+
[[some-anchor]]
+
+
+
+

for the first time. +Where will the browser jump to, if we click here?

+
+
+

Second definition

+
+

In this section, we define it the second time.

+
+
+
+
+
+ +
+
+

(to be done)

+
+
+
+
+ + + \ No newline at end of file diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.adoc b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.adoc new file mode 100644 index 00000000..c3973cb4 --- /dev/null +++ b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.adoc @@ -0,0 +1,87 @@ += Test File for HTML Sanity Check + + +== Image Directory Setting +Via the following directive, the image directory is set to "./images": + +---- +:imagesdir: ./images +---- +:imagesdir: ./images + + +== What is tested here + +This file serves as _smoketest_ for kbd:[htmlSC], as it deliberately forces +the (asciidoc) html generator to create the following errors within the html +output: + +* Broken cross reference (missing link target for internal link). +* <> +* <> (dupliate link target) +* Missing local resource (missing link to local file) + + + +== Cross-References, a.k.a. _Internal Links_ + + +* A link to the subheading below: <>. +* A second link, but <> + + +This plugin has been created in context of the <> project + + +[[aim42]] +=== aim42 Architecture Improvement + + +[[Missing-Images]] +== Missing Images +One image from the image directory - created with this asciidoc: +---- +image::aim42.png["alternate-text", title="aim42-logo", width="150"] +---- + +image::aim42.png["alternate-text", title="aim42-logo", width="150"] + + + +=== A data:image + +In this case, an inline image (data:uri) is generated by setting the switch `:data-uri:` + +:data-uri: + +image::aim42.png["alternate-text", title="aim42-logo", width="150"] + +image::missing-image-urjk8ybepw8.jpg["alternate-text", title="aim42-logo", width="150"] + +The resulting image is fully contained within the generated HTML and thus needs no additional check. + +[[Duplicate-Id]] +== Duplicate ID's or Bookmarks + +In Asciidoc, ID's are defined using double brackets +---- +[[some-anchor]] +---- +One can <> those id's/bookmarks +with <> directive in asciidoc. + +[[some-anchor]] +In this section, we define this id: +.... +[[some-anchor]] +.... + +for the first time. +Where will the browser jump to, if we <> + +=== Second definition +In this section, we define it the second time. + + +== External Links +(to be done) diff --git a/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.html b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.html new file mode 100644 index 00000000..cfbe1676 --- /dev/null +++ b/htmlSanityCheck-maven-plugin/src/test/resources-its/org/aim42/htmlSanityCheck/it/MavenIT/sunshine/src/file-to-test.html @@ -0,0 +1,593 @@ + + + + + + + +Test File for HTML Sanity Check + + + + + +
+
+

Image Directory Setting

+
+
+

Via the following directive, the image directory is set to "./images":

+
+
+
+
:imagesdir: ./images
+
+
+
+
+
+

What is tested here

+
+
+

This file serves as smoketest for kbd:[htmlSC], as it deliberately forces +the (asciidoc) html generator to create the following errors within the html +output:

+
+
+ +
+
+
+
+ +
+
+
    +
  • +

    A link to the subheading below: title.

    +
  • +
  • +

    A second link, but misspelled

    +
  • +
+
+
+

This plugin has been created in context of the aim42 Architecture Improvement project

+
+
+

aim42 Architecture Improvement

+ +
+
+
+
+

Missing Images

+
+
+

One image from the image directory - created with this asciidoc:

+
+
+
+
image::aim42.png["alternate-text", title="aim42-logo", width="150"]
+
+
+
+
+alternate-text +
+
Figure 1. aim42-logo
+
+
+

A data:image

+
+

In this case, an inline image (data:uri) is generated by setting the switch :data-uri:

+
+
+
+alternate-text +
+
Figure 2. aim42-logo
+
+
+
+alternate-text +
+
Figure 3. aim42-logo
+
+
+

The resulting image is fully contained within the generated HTML and thus needs no additional check.

+
+
+
+
+
+

Duplicate ID’s or Bookmarks

+
+
+

In Asciidoc, ID’s are defined using double brackets

+
+
+
+
[[some-anchor]]
+
+
+
+

One can reference those id’s/bookmarks +with [some-anchor] directive in asciidoc.

+
+
+

In this section, we define this id:

+
+
+
+
[[some-anchor]]
+
+
+
+

for the first time. +Where will the browser jump to, if we click here?

+
+
+

Second definition

+
+

In this section, we define it the second time.

+
+
+
+
+
+ +
+
+

(to be done)

+
+
+
+
+ + + \ No newline at end of file