Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion META6.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"Air::Plugin::Wordcloud",
"Air::Plugin::Rakudoc",
"Air::Plugin::MailForm",
"Air::Plugin::Donate"
"Air::Plugin::Donate",
"Air::Plugin::RakuDoc"
],
"description": "hArc stack website examples (HTMX, Air, Red, Cro)",
"license": "Artistic-2.0",
Expand Down
39 changes: 39 additions & 0 deletions bin/25-1-rakudoc-v2.raku
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env raku

use Air::Functional :BASE;
use Air::Base;
use Air::Plugin::RakuDoc;

my &index = &page.assuming(
title => 'hÅrc',
description => 'HTMX, Air, Red, Cro',
footer => footer p ['Aloft on ', b 'Åir'],
);

my $base-examples =
site :register[Air::Plugin::RakuDoc.new], :!scss,
index
main
div [
h3 'RakuDoc';
rakudoc q:to/RAKUDOC/;
=document :!auto-toc
=begin rakudoc
=config item :bullet«\c[palm tree]»
=config item2 :bullet«\c[Earth Globe Europe-Africa]»
=head This is some RakuDoc source

Lets include a snazzy list:
=item First item with a palm tree bullet
=item Second item with palm tree
=item2 Now a second layer with a world
=item Back to the palm tree

And now some ordinary text.
=end rakudoc
RAKUDOC
hr;

];

$base-examples.serve;
Loading