@binout
https://github.com/binout
Membre du Bordeaux JUG
bdx.io
le 17 octobre !Langage de balisage, créé en 2002, processeur en Python
Parce que :
= Hello, Jug Summer Camp!
Benoit Prioux <benoit.prioux@gmail.com>
Introduction à http://asciidoc.org[AsciiDoc].
== Première Section
* foo
* bar
== Deuxième Section
1. item 1
2. item 2
NOTE: C'est l'heure de la démo !
Ruby
asciidoc
vers différents backends : docbook
, html5
, epub
, pdf
et même deckjs
!
12 août 2014 : sortie de la version 1.5.0
Ruby
, ce n’est pas pour moi ?Asciidoctor asciidoctor = Asciidoctor.Factory.create();
Options options = options().backend("html5").get();
String rendered = asciidoctor.convert("*Gras* ou _italique_ ?", options);
System.out.println(rendered);
<div class="paragraph">
<p><strong>Gras</strong> ou <em>italique</em> ?</p>
</div>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>1.5.0</version>
<executions>
<execution>
<id>output-html</id>
<phase>generate-resources</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
</execution>
</executions>
</plugin>
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.0'
}
}
apply plugin: 'org.asciidoctor.gradle.asciidoctor'
<target name="doc">
<taskdef resource="net/jtools/classloadertask/antlib.xml" classpath="lib/ant-classloadertask.jar"/>
<classloader loader="thread" classpath="lib/asciidoctor-ant.jar"/>
<taskdef name="asciidoctor" classname="org.asciidoctor.ant.AsciidoctorAntTask"/>
<asciidoctor sourceDirectory="src/asciidoc" outputDirectory="build/docs"/>
</target>
/**
* This class has the following features:
*
* - Support for *foo*
* - Support for bar
*/
public class Thing implements Something { ... }
ruby
en java
Maven proxy : http://rubygems-proxy.torquebox.org/
<dependency>
<groupId>rubygems</groupId>
<artifactId>asciidoctor-diagram</artifactId>
<version>1.2.0</version>
<type>gem</type>
<scope>provided</scope>
<dependency>
ruby
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.version}</version>
<configuration>
<gemPath>${project.build.directory}/gems-provided</gemPath>
<requires>
<require>asciidoctor-diagram</require>
</requires>
</configuration>
...
</plugin>
ruby
?Nouveau : on peut coder des extensions directement en Java, Groovy, Scala
twitter:binout[]
devient :
<a href="http://www.twitter.com/binout">@binout</a>
/