-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…parser - rewrite Maven Site parser to make more organized and extensible - pass AsciiDoc configuration in Maven Site plugin to Asciidoctor API - enhance Maven Site integration test - add custom template - add include - add source highlighting - make validation code compatible with Java 6 - enable integration tests on Travis - remove unused legacy site module
- Loading branch information
1 parent
50922eb
commit 4228725
Showing
12 changed files
with
238 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Content included from the file _include.adoc. |
26 changes: 20 additions & 6 deletions
26
src/it/maven-site-plugin/src/site/asciidoc/file-with-toc.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,16 +1,30 @@ | ||
= Maven Site Plugin Test | ||
= File with TOC | ||
:toc: | ||
|
||
This is an example file to test asciidoctor-maven-plugin with maven-site-plugin. | ||
[.lead] | ||
This is an example file that was processed by the site module in the Asciidoctor Maven Plugin. | ||
|
||
== First section | ||
|
||
= First section | ||
This is the first section of the page. | ||
|
||
== Sub section | ||
include::_include.adoc[] | ||
|
||
=== Sub section | ||
|
||
This is a subsection of the first section | ||
|
||
= Second section | ||
TIP: You can control the number of section levels displayed in the TOC using the `toclevels` attribute. | ||
|
||
== Second section | ||
|
||
This is the first section of the page. | ||
|
||
== Sub section | ||
=== Sub section | ||
|
||
This is a subsection of the second section. | ||
|
||
[source,xml,indent=0] | ||
---- | ||
include::../../../pom.xml[tag=plugin-decl] | ||
---- |
1 change: 1 addition & 0 deletions
1
src/it/maven-site-plugin/src/site/asciidoc/templates/paragraph.html.slim
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 @@ | ||
p class=role =content |
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,8 @@ | ||
<project name="Maven Site Plugin IT"> | ||
<body> | ||
<menu name="AsciiDoc Pages"> | ||
<item name="File with TOC" href="/file-with-toc.html"/> | ||
</menu> | ||
${reports} | ||
</body> | ||
</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
42 changes: 0 additions & 42 deletions
42
src/main/java/org/asciidoctor/maven/site/AsciidoctorLegacySiteModule.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.