mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-07 09:19:00 +00:00
Modify shadow asciidoctor script
This commit is contained in:
parent
e45ab1803c
commit
c2bcc60866
@ -10,16 +10,16 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
asciidoctorWrappedWithCustomOptions = writeShellScriptBin "asciidoctor" ''
|
asciidoctorWrappedWithCustomOptions = writeShellScriptBin "asciidoctor" ''
|
||||||
${lib.getBin gems}/bin/asciidoctor -T ./gems/templates $@
|
${lib.getBin gems}/bin/asciidoctor -T ${./templates} $@
|
||||||
'';
|
'';
|
||||||
|
|
||||||
treesitterWithPlugins = (tree-sitter.withPlugins (_: tree-sitter.allGrammars));
|
treesitterWithPlugins = (tree-sitter.withPlugins (_: tree-sitter.allGrammars));
|
||||||
in
|
in
|
||||||
mkShell {
|
mkShell {
|
||||||
packages = [
|
packages = [
|
||||||
|
asciidoctorWrappedWithCustomOptions
|
||||||
gems
|
gems
|
||||||
gems.wrappedRuby
|
gems.wrappedRuby
|
||||||
asciidoctorWrappedWithCustomOptions
|
|
||||||
|
|
||||||
git
|
git
|
||||||
libgit2
|
libgit2
|
||||||
@ -48,6 +48,7 @@ mkShell {
|
|||||||
shellHook = ''
|
shellHook = ''
|
||||||
go version
|
go version
|
||||||
hugo version
|
hugo version
|
||||||
|
which asciidoctor
|
||||||
asciidoctor --version
|
asciidoctor --version
|
||||||
|
|
||||||
chmod u+x --recursive ./bin
|
chmod u+x --recursive ./bin
|
||||||
|
23
templates/admonition.html.erb
Normal file
23
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
templates/paragraph.html.erb
Normal file
6
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>
|
Loading…
Reference in New Issue
Block a user