Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
course-material
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IT1901
course-material
Commits
9e2d6ed7
Commit
9e2d6ed7
authored
3 years ago
by
Hallvard Trætteberg
Browse files
Options
Downloads
Patches
Plain Diff
Diagram support
parent
c063a5d7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#138383
passed
3 years ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lectures/build.gradle
+0
-120
0 additions, 120 deletions
lectures/build.gradle
pom.xml
+24
-0
24 additions, 0 deletions
pom.xml
with
24 additions
and
120 deletions
lectures/build.gradle
deleted
100644 → 0
+
0
−
120
View file @
c063a5d7
plugins
{
id
'org.asciidoctor.jvm.convert'
version
'3.3.2'
id
'org.asciidoctor.jvm.revealjs'
version
'3.3.2'
}
repositories
{
jcenter
()
maven
{
url
"https://plugins.gradle.org/m2/"
}
maven
{
url
'http://rubygems-proxy.torquebox.org/releases'
}
}
dependencies
{
asciidoctorGems
'rubygems:asciidoctor-revealjs:4.1.0'
// asciidoctorGems 'rubygems:asciidoctor-revealjs:2.0.0'
}
asciidoctor
{
sourceDir
'asciidoc'
sources
{
include
'*.adoc'
}
outputDir
file
(
'build/docs'
)
resources
{
from
(
'asciidoc'
)
{
include
'**/*.png'
}
into
'.'
}
logDocuments
=
true
outputOptions
{
backends
'html5'
}
}
asciidoctorj
{
version
=
'2.4.3'
modules
{
// diagram.use()
diagram
.
version
'1.5.16'
}
// useIntermediateWorkDir = true
attributes
toc:
'left'
,
toclevels:
3
,
'source-highlighter'
:
'highlightjs'
/*
extensions {
block_macro (name: 'tweet') { parent, target, attributes ->
String content = """<div class="tweet" data-src="https://twitter.com/${target}/status/${attributes.get('1')}"></div>"""
config.remove 'content_model'
createBlock(parent, "pass", [content], [:], config)
}
}
*/
}
asciidoctorRevealJs
{
sourceDir
'revealjs'
sources
{
include
'*.adoc'
}
outputDir
file
(
'build/docs/slides'
)
resources
{
from
(
'revealjs'
)
{
include
'images/**'
include
'**/*.css'
}
into
'.'
}
attributes
'sourceDir'
:
'revealjs'
,
'imagesDir'
:
'revealjs'
,
'icons'
:
'font'
,
'iconfont-name'
:
'fontawesome-4.5.0'
revealjsOptions
{
controls
=
true
slideNumber
=
true
progressBar
=
true
pushToHistory
=
true
overviewMode
=
true
touchMode
=
true
backgroundTransition
=
'convex'
//none , fade, slide, convex, concave, zoom
theme
=
'white'
//'black', 'beige' , 'league', 'night', 'serif', 'simple', 'sky', 'solarized'
}
plugins
'rajgoel/chart/Chart.min.js'
//plugins 'IainAndrew/footer-reveal/footer-reveal.min.js'
}
revealjs
{
version
'2.0.0'
// why not '3.8.0'
templateGitHub
{
organisation
=
'hakimel'
repository
=
'reveal.js'
tag
=
'3.8.0'
}
}
revealjsPlugins
{
github
'rajgoel'
,
{
organisation
=
'rajgoel'
repository
=
'reveal.js-plugins'
branch
=
'master'
}
/*github 'IainAndrew', {
organisation = 'IainAndrew'
repository = 'footer-reveal'
branch = 'master'
}*/
}
build
.
dependsOn
'asciidoctor'
build
.
dependsOn
'asciidoctorRevealJs'
This diff is collapsed.
Click to expand it.
pom.xml
+
24
−
0
View file @
9e2d6ed7
...
...
@@ -11,6 +11,7 @@
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<asciidoctorj.version>
2.5.2
</asciidoctorj.version>
<asciidoctorj.diagram.version>
2.2.0
</asciidoctorj.diagram.version>
<jruby.version>
9.2.9.0
</jruby.version>
<revealjs.version>
3.9.2
</revealjs.version>
<!-- Use 'master' as version and remove the 'v' prefixing the download url to use the current snapshot version -->
...
...
@@ -107,7 +108,30 @@
<artifactId>
asciidoctorj
</artifactId>
<version>
${asciidoctorj.version}
</version>
</dependency>
<dependency>
<groupId>
org.asciidoctor
</groupId>
<artifactId>
asciidoctorj-diagram
</artifactId>
<version>
${asciidoctorj.diagram.version}
</version>
</dependency>
<!-- Since asciidoctorj-diagram v2.2.0, uncomment to use specific version of plantuml or ditaa -->
<!--
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-diagram-plantuml</artifactId>
<version>1.2021.8</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-diagram-ditaamini</artifactId>
<version>1.0.0</version>
</dependency>
-->
</dependencies>
<configuration>
<requires>
<require>
asciidoctor-diagram
</require>
</requires>
</configuration>
<executions>
<execution>
<id>
convert-to-html
</id>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment