Le dim. 03 août 2014 à 07:57:26 -0400, ping song a écrit : > Jean-Michael: > I recently tested slidy2 backend: > http://asciidoc-slidy2-backend-plugin.googlecode.com/svn/trunk/doc_googlecode/slidy2_doc.slidy.html > and I think it's a very nice one. > some issues I found when I started to use it for serious work: > [snip] slidy2 is nice indeed, improves and fixes slidy;
on this matter, joined is a custom slidy2.conf to fix a few "missing" incremental= attributes that would be great to have merged into backends/slidy2/slidy2.conf also available there: git://git.autogeree.net/tool/asciidoc > can you have a look? > overall it's still a very good one. thanks for the work! thanks++ --julm
# vim: ft=conf wrap
# FIX: to handle {incremental}
[listtags-horizontal]
list=<div class="hdlist{compact-option? compact}{role? {role}}"{id?
id="{id}"}>{title?<div class="title">{title}</div>}<table>{labelwidth?<col
width="{labelwidth}%" />}{itemwidth?<col width="{itemwidth}%" />}<tbody
class="{incremental? incremental}{role? {role}}">|</tbody></table></div>
label=<td class="hdlist1{strong-option? strong}">|</td>
term=|<br />
entry=<tr>|</tr>
item=<td class="hdlist2">|</td>
text=<p style="margin-top: 0;">|</p>
# FIX: to handle {incremental}
[image-blockmacro]
<div class="imageblock{incremental? incremental}{style? {style}}{role?
{role}}{unbreakable-option? unbreakable}"{id? id="{id}"}{align?
style="text-align:{align};"}{float? style="float:{float};"}>
<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}")}"}" />
{link#}</a>
</div>
<div class="title">{caption={figure-caption} {counter:figure-number}.
}{title}</div>
</div>
# FIX: to handle {incremental}
ifdef::basebackend-xhtml11,basebackend-html5[]
[source-highlight-block]
<div class="listingblock{incremental? incremental}">
<a id="{id}"></a>
<div class="title">{caption=}{title}</div>
<div class="content">
|
</div></div>
endif::basebackend-xhtml11,basebackend-html5[]
# FIX: {incremental} location
[admonitionparagraph]
# add an incremental div
<div class="admonitionblock{role? {role}}{incremental? incremental}"{id?
id="{id}"}>
<table><tr>
<td class="icon">
{data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}" />
{data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64,
{data-uri#}{icons#}{sys:python -uc "import base64,sys;
base64.encode(sys.stdin,sys.stdout)" <
"{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/{name}.png}")}"}" />
{icons%}<div class="title">{caption}</div>
</td>
<td class="content">
<div class="title">{title}</div>
|
</td>
</tr></table>
</div>
signature.asc
Description: Digital signature
