Changeset 246 for trunk/extras

Show
Ignore:
Timestamp:
04/16/07 00:16:23 (2 years ago)
Author:
ingy
Message:
 r4326@skinny-2:  ingy | 2007-04-15 14:04:50 +0800
 yay
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/extras/talks/osdc-2007/Spork.slides

    r244 r246  
    198198== Kwiki Wiki Creation Instructions 
    199199 
    200     > kwiki -new ~/Sites/my-wiki 
    201  
    202     > vim ~/Sites/my-wiki/plugins 
    203     > kwiki -update ~/Sites/my-wiki 
    204  
    205     > kwiki -start ~/Sites/my-wiki 
     200    > kwiki -new my-wiki 
     201 
     202    > vim plugins 
     203    > kwiki -update 
     204 
     205    > kwiki -start 
    206206 
    207207---- 
    208208== Kwiki Software Upgrade Instructions 
    209209    > svn up 
    210  
     210+== Yay! 
    211211---- 
    212212== The Great Kwiki Source Code Reorg 
     
    255255 
    256256    use Kwiki::Boot; 
    257     Kwiki::Boot->debug->boot->kwiki->process; 
     257    Kwiki::Boot->boot->kwiki->process; 
    258258 
    259259+|index.fcgi| 
     
    262262    use CGI::Fast; 
    263263    while ( my $cgi = CGI::Fast->new ) { 
    264         Kwiki::Boot->debug->boot->kwiki->process; 
     264        Kwiki::Boot->boot->kwiki->process; 
    265265    } 
    266266 
     267---- 
     268== Kwiki Documentation - Doolittle 
     269 
     270* Introducing |Doolittle| 
     271* Let the Community Write the Doc 
     272* So Ingy can |do little| work 
    267273---- 
    268274== Kwiki Documentation - Doolittle 
     
    270276* http://doolittle.kwiki.org 
    271277* Kwiki::Doolittle::Formatter 
    272 ** Kwiki::Formatter:Pod 
    273 +* |Pull all POD| out of each module 
    274 +* Symlink into a big Kwiki |database of documentation| 
     278** Kwiki::Formatter::Pod 
     279* |Pull all POD| out of each module 
     280* Symlink into a big Kwiki |database of documentation| 
     281 
     282---- 
     283== Kwiki Documentation - Doolittle 
     284 
     285* This idea could work for Perl doc itself 
     286+* Or even Plagger 
    275287 
    276288---- 
     
    296308+* So if you install Kwiki 2.0, then: 
    297309 
    298     spork -new KwikiAndTheSymlink 
     310    cd kwiki/trunk/extras/talks/osdc-2007 
     311    spork -make 
     312    spork -start 
    299313 
    300314---- 
    301315== Spork::Formatter2 
    302316 
    303     package Spork::Formatter2; 
    304     use Spoon::Base -Base; 
    305     use Spork::Parser; 
    306     use Spork::Emitter::HTML; 
    307  
    308     sub text_to_html { 
    309         my $text = shift; 
    310         my $ast = Spork::Parser->new->parse($text); 
    311         return Spork::Emitter::HTML->new->emit($ast); 
    312     } 
    313  
     317.hilite 
     318package Spork::Formatter2; 
     319use Spoon::Base -Base; 
     320use Spork::Parser; 
     321use Spork::Emitter::HTML; 
     322 
     323sub text_to_html { 
     324    my $text = shift; 
     325    my $ast = Spork::Parser->new->parse($text); 
     326    return Spork::Emitter::HTML->new->emit($ast); 
     327
     328 
     329        bbbbbbbbbbbbbbbbb 1 
     330r+ 3-4 
     331                                  ggggg 8 
     332                                      gggg 9 
     333
     334r+ 6-10 
     335
     336g+ 6-10 
     337
     338b+ 6-10 
     339.hilite 
     340 
     341---- 
     342* 侀 
     343+* 二 
     344+* 茶 
    314345---- 
    315346== Perldoc 2.0 
     
    750781ggb+ 37-41 
    751782---- 
    752 == Kwid for Plain Old Dummies 
    753 .image:dumdum1953.jpg 
    754  
    755 Pod: 
    756  
    757     =head2 Cool Stuff 
    758      
    759     B<This> piece of code for C<Foo::Bar> is I<way cool>. 
    760      
    761         sub way_cool { 
    762             ... 
    763         } 
    764      
    765     It is everything you need: 
    766      
    767     =over 
    768      
    769     =item * 
    770      
    771     Fast 
    772      
    773     =item * 
    774      
    775     Quick 
    776      
    777     =item * 
    778      
    779     Speedy 
    780      
    781     =back 
    782  
    783 ---- 
    784 == Kwid for Plain Old Dummies 
    785 .image:foo_large.gif 
    786  
    787 Kwid: 
    788  
    789     == Cool Stuff 
    790      
    791     *This* piece of code for `Foo::Bar` is /way cool/. 
    792      
    793         sub way_cool { 
    794             ... 
    795         } 
    796      
    797     It is everything you need: 
    798      
    799     * Fast 
    800     * Quick 
    801     * Speedy 
    802  
    803 ---- 
    804783== Perldoc In Action 
    805784 
    806785* Module Install Does It All 
     786* Perldoc is self hosting 
     787* On CPAN Now 
    807788* Perldoc Live Demo 
    808789