File tree Expand file tree Collapse file tree 3 files changed +104
-3
lines changed
docs/modules/ROOT/pages/classic
test-all-model5-plugins/src/gradleTest/listsAndMaths Expand file tree Collapse file tree 3 files changed +104
-3
lines changed Original file line number Diff line number Diff line change 11= AsciidoctorJ GEMs plugin
22
3- GEM support is simplified via the `org.asciidoctor.jvm.gems` plugin.
3+ GEM support is simplified via the `org.asciidoctor.jvm.gems.classic ` plugin.
44
55[tabs]
66====
@@ -12,7 +12,7 @@ Groovy::
1212.build.gradle
1313----
1414plugins {
15- id 'org.asciidoctor.jvm.gems' version '{release-version}'
15+ id 'org.asciidoctor.jvm.gems.classic ' version '{release-version}'
1616}
1717
1818repositories {
@@ -43,7 +43,7 @@ Kotlin::
4343.build.gradle.kts
4444----
4545plugins {
46- id("org.asciidoctor.jvm.gems") version "{release-version}"
46+ id("org.asciidoctor.jvm.gems.classic ") version "{release-version}"
4747}
4848----
4949--
Original file line number Diff line number Diff line change 1+ import org.asciidoctor.gradle.model5.jvm.extensions.AsciidoctorjGenericExtension
2+
3+ plugins {
4+ id ' org.asciidoctor.jvm'
5+ id ' org.asciidoctor.jvm.gems'
6+ id ' org.asciidoctor.jvm.epub'
7+ }
8+
9+ apply from : System . getProperty(' org.ysb33r.ivypot.repo.groovy.dsl.uri' )
10+
11+ repositories {
12+ ruby. gems()
13+ }
14+
15+ asciidoc {
16+ toolchains {
17+ asciidoctorj {
18+ asciidocExtensions {
19+ lists(AsciidoctorjGenericExtension ) {
20+ requires ' asciidoctor-lists'
21+ useGem ' asciidoctor-lists' , ' 1.1.2'
22+ }
23+ math(AsciidoctorjGenericExtension ) {
24+ requires ' asciimath'
25+ useGem ' asciimath' , ' 2.0.6'
26+ }
27+ }
28+ }
29+ }
30+ publications {
31+ main {
32+ output ' asciidoctorj' , ' epub'
33+ }
34+ }
35+ }
36+
37+ tasks. register(' runGradleTest' ) {
38+ dependsOn(' asciidoctorAll' )
39+ }
Original file line number Diff line number Diff line change 1+ = A book with maths and lists
2+ :stem:
3+
4+ == Test the AsciiMath Macro
5+
6+ stem:[sum_(i=1)^n i^3=((n(n+1))/2)^2]
7+
8+ == Test the List Macro
9+
10+ :listing-caption: Code
11+
12+ .Gemfile.lock
13+ ----
14+ GEM
15+ remote: https://rubygems.org/
16+ specs:
17+ asciidoctor (2.0.15)
18+
19+ PLATFORMS
20+ ruby
21+
22+ DEPENDENCIES
23+ asciidoctor (~> 2.0.15)
24+ ----
25+
26+ .Some Ruby code
27+ [source,ruby]
28+ ----
29+ require 'sinatra'
30+
31+ get '/hi' do
32+ "Hello World!"
33+ end
34+ ----
35+
36+ .This is my first table
37+ |===
38+ |Column 1, Header Row |Column 2, Header Row
39+
40+ |Cell in column 1, row 1
41+ |Cell in column 2, row 1
42+
43+ |Cell in column 1, row 2
44+ |Cell in column 2, row 2
45+ |===
46+
47+ .And this is the second one
48+ |===
49+ |Column 1, Header Row |Column 2, Header Row
50+
51+ |Cell in column 1, row 1
52+ |Cell in column 2, row 1
53+
54+ |Cell in column 1, row 2
55+ |Cell in column 2, row 2
56+ |===
57+
58+ === List of tables
59+ list-of::table[]
60+
61+ === List of code snippets
62+ list-of::listing[]
You can’t perform that action at this time.
0 commit comments