forked from asciidoctor/asciidoctor-maven-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…or#168 & asciidoctor#160 enable configuration for site parser - rewrite AsciidoctorParser (used by Maven Site Plugin) to make it more organized and extensible - specify baseDir by default when invoking Asciidoctor API - pass AsciiDoc configuration defined in Maven Site plugin to the Asciidoctor API - API options (e.g., templateDir) - Ruby options (e.g., requires) - AsciiDoc attributes (e.g., icons=font) - 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 CI - remove unused legacy site module - fix license headers - minor cleanups
- Loading branch information
1 parent
50922eb
commit 7728179
Showing
12 changed files
with
283 additions
and
90 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.