Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do index.html as lib/HomePage.pod with =Html blocks
  • Loading branch information
Mouq committed Jun 17, 2014
1 parent d77582f commit 24be2c4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 109 deletions.
105 changes: 0 additions & 105 deletions html/index.html

This file was deleted.

6 changes: 2 additions & 4 deletions htmlify.p6
Expand Up @@ -553,10 +553,8 @@ sub write-disambiguation-files($dr) {
}

sub write-index-files($dr) {
# XXX: Main index file can't be generated properly until
# it is turned into a Pod file. For now, it's just static.
#say 'Writing html/index.html ...';
#spurt 'html/index.html', p2h slurp('template/index-content.html');
say 'Writing html/index.html ...';
spurt 'html/index.html', p2h EVAL slurp('lib/HomePage.pod') ~ "\n\$=pod";

say 'Writing html/language.html ...';
spurt 'html/language.html', p2h(pod-with-title(
Expand Down
40 changes: 40 additions & 0 deletions lib/HomePage.pod
@@ -0,0 +1,40 @@
=begin Html
=begin code
<img style="float: right;" src="/images/camelia-faded.png"/>
Welcome to the official documentation of the <a href="http://perl6.org">Perl 6</a>
programming language! Besides online browsing and searching, you can also <a>download</a>
an offline HTML or PDF copy, and <a href="http://github.com/perl6/doc">contribute</a>
by reporting mistakes or sending patches.

<hr>

<h3><a href="/language">Language Reference & Tutorials</a></h3>
<desc>
A collection of documents describing, in detail, the various
conceptual parts of the language. If you're new to Perl 6,
language>intro is a good place to start.
</desc>
<h3><a href="/type">Type Reference</a></h3>
<desc>
Index of built-in classes and roles.
</desc>
<h3><a href="/routine">Routine Reference</a></h3>
<desc>
Index of built-in subroutines and methods.
</desc>
<h3><a href="/module">Module Reference</a></h3>
<desc>
Index of modules that are part of the official core distribution.
</desc>

<hr>

<p>
You may also be interested in the Perl 6 <a href="http://perlcabal.org/syn">synopses</a>,
which are more complete than this documentation, but targeted toward compiler writers
rather than users of the langauge.
Documentation for the different but related <a href="http://perl.org/">Perl 5</a> language
can be found <a href="http://perldoc.perl.org/">here</a>.
</p>
=end code
=end Html

0 comments on commit 24be2c4

Please sign in to comment.