Open azawawi opened 11 years ago
We can use the index.data to generate routine documentation index from /^routine (.+?)$/
p6doc-index build # Generates index.data in the same directory
# To generate index.data location in Perl 6
say $*SPEC.catdir($dirs[0..*-3], 'languages', 'perl6', 'site', 'bin', 'index.data'
# Sample index.data
(
"method multi" => [
["Type::Routine", "method multi"],
["lib::Type::Routine", "method multi"]
],
"The C<^> Sigil" =>
[
["Language::variables", "The C<^> Sigil"], ["lib::Language::variables", "The C<^> Sigil"]
],
)
Need to hack htmlify.pl to generate json as moritz said
HTMLify sourcecode https://github.com/perl6/doc/blob/master/htmlify.p6