Create a shadow asciidoctor executable for this project

This commit is contained in:
Gabriel Arazas 2023-04-03 23:33:49 +08:00
parent 9be31f2418
commit 809f08e382
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<div<%= @id && %( id="#{@id}") %> class="<%= ['admonitionblock',(attr :name),role].compact * ' ' %>">
<table>
<tr>
<td class="icon"><%
if document.attr? :icons, 'font' %>
<i class="icon-<%= attr 'name' %>" title="<%= @caption %>"></i><%
elsif document.attr? :icons %>
<svg class="icon">
<use href="<%= icon_uri(attr :name) %>#<%= attr :name %>" alt="<%= @caption %>"></use>
</svg><%
else %>
<div class="title"><%= @caption %></div><%
end %>
</td>
<td class="content"><%
if title? %>
<div class="title"><%= title %></div><%
end %>
<%= content %>
</td>
</tr>
</table>
</div>

View File

@ -0,0 +1,6 @@
<p<%= @id && %( id="#{@id}") %> <% if role %>class="<%= role %>"<% end %>><%
if title? %>
<div class="title"><%= title %></div><%
end %>
<%= content %>
</p>