mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-07 12:19:36 +00:00
Create a shadow asciidoctor executable for this project
This commit is contained in:
parent
f25bdc4301
commit
b457013f9b
23
gems/templates/admonition.html.erb
Normal file
23
gems/templates/admonition.html.erb
Normal 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>
|
6
gems/templates/paragraph.html.erb
Normal file
6
gems/templates/paragraph.html.erb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<p<%= @id && %( id="#{@id}") %> <% if role %>class="<%= role %>"<% end %>><%
|
||||||
|
if title? %>
|
||||||
|
<div class="title"><%= title %></div><%
|
||||||
|
end %>
|
||||||
|
<%= content %>
|
||||||
|
</p>
|
@ -8,6 +8,10 @@ let
|
|||||||
ruby = ruby_3_1;
|
ruby = ruby_3_1;
|
||||||
gemset = ./gemset.nix;
|
gemset = ./gemset.nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
asciidoctorWrappedWithCustomOptions = writeShellScriptBin "asciidoctor" ''
|
||||||
|
${lib.getBin localGem.env}/bin/asciidoctor -T ./gems/templates $@
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
mkShell {
|
mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -16,6 +20,8 @@ mkShell {
|
|||||||
];
|
];
|
||||||
|
|
||||||
packages = [
|
packages = [
|
||||||
|
asciidoctorWrappedWithCustomOptions
|
||||||
|
|
||||||
git
|
git
|
||||||
go
|
go
|
||||||
hugo
|
hugo
|
||||||
|
Loading…
Reference in New Issue
Block a user