summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/asciidoc/html5.conf
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-03-03 15:58:11 +1100
committerChris Johns <chrisj@rtems.org>2013-03-03 15:58:11 +1100
commit0464153b36015012c5a2ff14d6d3f65fe04f476b (patch)
treec877a69503720afce35ee9fc111eb83d3a219c27 /source-builder/sb/asciidoc/html5.conf
parentImport more of asciidoc. (diff)
downloadrtems-source-builder-0464153b36015012c5a2ff14d6d3f65fe04f476b.tar.bz2
Change asciidoc to the 8.6.4 release package because Windows was broken.
Diffstat (limited to '')
-rw-r--r--source-builder/sb/asciidoc/html5.conf19
1 files changed, 10 insertions, 9 deletions
diff --git a/source-builder/sb/asciidoc/html5.conf b/source-builder/sb/asciidoc/html5.conf
index dbd8164..c0139b5 100644
--- a/source-builder/sb/asciidoc/html5.conf
+++ b/source-builder/sb/asciidoc/html5.conf
@@ -80,8 +80,8 @@ latexmath-style=template="latexmathblock",subs=()
<span class="image{role? {role}}">
<a class="image" href="{link}">
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}>
-{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}
-{data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print 'src=\"data:'+mimetypes.guess_type(r'{target}')[0]+';base64,'; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
+{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"} src="data:image/{eval:os.path.splitext(r'{target}')[1][1:]};base64,
+{data-uri#}{sys3:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
{link#}</a>
</span>
@@ -90,8 +90,8 @@ latexmath-style=template="latexmathblock",subs=()
<div class="content">
<a class="image" href="{link}">
{data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}>
-{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}
-{data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print 'src=\"data:'+mimetypes.guess_type(r'{target}')[0]+';base64,'; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
+{data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} src="data:image/{eval:os.path.splitext(r'{target}')[1][1:]};base64,
+{data-uri#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin,sys.stdout)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}">
{link#}</a>
</div>
<div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div>
@@ -668,17 +668,18 @@ template::[footer-text]
ifdef::badges[]
<div id="footer-badges">
ifndef::icons[]
-Valid <a href="http://validator.w3.org/check?uri=referer">HTML5</a>
+Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a>
and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
endif::icons[]
ifdef::icons[]
<a href="http://validator.w3.org/check?uri=referer">
- <img src="http://www.w3.org/html/logo/badge/html5-badge-h-solo.png"
- width="30" alt="HTML5 Powered" title="HTML5 Powered">
+ <img style="border:0;width:88px;height:31px"
+ src="http://www.w3.org/Icons/valid-xhtml11-blue"
+ alt="Valid XHTML 1.1" height="31" width="88">
</a>
-<a href="http://jigsaw.w3.org/css-validator/check/referer">
+<a href="http://jigsaw.w3.org/css-validator/">
<img style="border:0;width:88px;height:31px"
- src="http://www.w3.org/Icons/valid-css"
+ src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
alt="Valid CSS!">
</a>
endif::icons[]