forked from tadzik/Pod-To-HTML
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improves documentation a bit by adding examples refs #49
- Loading branch information
Showing
5 changed files
with
54 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.precomp/ | ||
|
||
*~ | ||
.precomp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!doctype html> | ||
<html lang="{{ lang }}"> | ||
<head> | ||
<title>{{ title }}</title> | ||
<meta charset="UTF-8" /> | ||
<style> | ||
kbd { font-family: "Droid Sans Mono", "Luxi Mono", "Inconsolata", monospace } | ||
samp, code { font-family: "Terminus", "Courier", "Lucida Console", monospace } | ||
.nested { | ||
margin-left: 3em; | ||
} | ||
aside, u { opacity: 0.7 } | ||
a[id^="fn-"]:target { background: #ff0 } | ||
</style> | ||
</head> | ||
<body class="pod"> | ||
<div id="___top"></div> | ||
{{{ header }}} | ||
{{# title }}<h1 class='title'>{{ title }}</h1>{{/ title }} | ||
{{# subtitle }}<p class='subtitle'>{{ subtitle }}</p>{{/ subtitle }} | ||
<div class="pod-body no-toc"> | ||
{{# body }}{{{ . }}}{{/ body }} | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env perl6 | ||
|
||
use v6; | ||
use MONKEY-SEE-NO-EVAL; | ||
use Pod::To::HTML; | ||
|
||
sub MAIN( $file = "../../README.pod6" ) { | ||
my $file-content = $file.IO.slurp; | ||
die "No pod here" if not $file-content ~~ /\=begin \s+ pod/; | ||
my $pod; | ||
try { | ||
$pod = EVAL($file-content ~ "\n\$=pod"); | ||
}; | ||
die "Pod fails: $!" if $!; | ||
my $result = pod2html( $pod, templates => '.' ); | ||
say $result; | ||
} |