Bump asciidoctorj to 1.5.0.

Formerly asciidoctor-java-integration. This will fix the mixed content
issue when serving the docs over https.

Change-Id: I1f5ba308151e710299cd8c6fa69d93839ece7443
This commit is contained in:
Yuxuan 'fishy' Wang 2014-08-20 17:14:11 -07:00
parent efcd3168a2
commit f73c12ac15
4 changed files with 12 additions and 4 deletions

View File

@ -24,6 +24,7 @@ def genasciidoc(
asciidoc = [ asciidoc = [
'$(exe //lib/asciidoctor:asciidoc)', '$(exe //lib/asciidoctor:asciidoc)',
'-z', '$OUT', '-z', '$OUT',
'--base-dir', '$SRCDIR',
'--tmp', '$TMP', '--tmp', '$TMP',
'--in-ext', '".txt%s"' % EXPN, '--in-ext', '".txt%s"' % EXPN,
'--out-ext', '".html"', '--out-ext', '".html"',
@ -57,7 +58,9 @@ def genasciidoc(
out = ex, out = ex,
) )
asciidoc.append('$(location :%s)' % ex) # The new AsciiDoctor requires both the css file and include files are under
# the same directory. Luckily Buck allows us to use :target as SRCS now.
newsrcs.append(':%s' % ex)
genrule( genrule(
name = name, name = name,

View File

@ -16,5 +16,6 @@ def documentation_attributes(revision):
'last-update-label!', 'last-update-label!',
'source-highlighter=prettify', 'source-highlighter=prettify',
'stylesheet=doc.css', 'stylesheet=doc.css',
'linkcss=true',
'revnumber="%s"' % revision, 'revnumber="%s"' % revision,
] ]

View File

@ -15,6 +15,7 @@ java_library(
':jruby', ':jruby',
'//lib:args4j', '//lib:args4j',
'//lib:guava', '//lib:guava',
'//lib/log:api',
], ],
visibility = ['//tools/eclipse:classpath'], visibility = ['//tools/eclipse:classpath'],
) )
@ -42,8 +43,8 @@ java_library(
maven_jar( maven_jar(
name = 'asciidoctor', name = 'asciidoctor',
id = 'org.asciidoctor:asciidoctor-java-integration:0.1.4', id = 'org.asciidoctor:asciidoctorj:1.5.0',
sha1 = '3596c7142fd30d7b65a0e64ba294f3d9d4bd538f', sha1 = '192df5660f72a0fb76966dcc64193b94fba65f99',
license = 'Apache2.0', license = 'Apache2.0',
visibility = [], visibility = [],
attach_source = False, attach_source = False,

View File

@ -53,6 +53,9 @@ public class AsciiDoctor {
@Option(name = "--out-ext", usage = "extension for output files") @Option(name = "--out-ext", usage = "extension for output files")
private String outExt = ".html"; private String outExt = ".html";
@Option(name = "--base-dir", usage = "base directory")
private File basedir;
@Option(name = "--tmp", usage = "temporary output path") @Option(name = "--tmp", usage = "temporary output path")
private File tmpdir; private File tmpdir;
@ -82,7 +85,7 @@ public class AsciiDoctor {
OptionsBuilder optionsBuilder = OptionsBuilder.options(); OptionsBuilder optionsBuilder = OptionsBuilder.options();
optionsBuilder.backend(backend).docType(DOCTYPE).eruby(ERUBY) optionsBuilder.backend(backend).docType(DOCTYPE).eruby(ERUBY)
.safe(SafeMode.UNSAFE); .safe(SafeMode.UNSAFE).baseDir(basedir);
// XXX(fishywang): ideally we should just output to a string and add the // XXX(fishywang): ideally we should just output to a string and add the
// content into zip. But asciidoctor will actually ignore all attributes if // content into zip. But asciidoctor will actually ignore all attributes if
// not output to a file. So we *have* to output to a file then read the // not output to a file. So we *have* to output to a file then read the