azawawi / farabi6

Experimental in-browser Perl 6 Editor
Artistic License 2.0
14 stars 12 forks source link

Implement F1 on Perl 6 document #7

Open azawawi opened 11 years ago

azawawi commented 11 years ago

Need to hack htmlify.pl to generate json as moritz said

HTMLify sourcecode https://github.com/perl6/doc/blob/master/htmlify.p6

azawawi commented 9 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"]
      ],
     )