Changeset 66
- Timestamp:
- 01/19/07 23:24:11 (2 years ago)
- Files:
-
- trunk/bin/make-make.pl (modified) (5 diffs)
- trunk/doc (added)
- trunk/doc/pod (added)
- trunk/doc/pod/Kwiki (added)
- trunk/doc/pod/Kwiki.pod (added)
- trunk/doc/pod/Kwiki/Cache.pod (added)
- trunk/doc/pod/Kwiki/Formatter.pod (added)
- trunk/doc/pod/Kwiki/Hub.pod (added)
- trunk/doc/pod/Makefile (added)
- trunk/doc/pod/dummy (added)
- trunk/doc/pod/dummy/dummy (added)
- trunk/doc/pod/dummy/dummy/dummy (added)
- trunk/src/Makefile (modified) (1 diff)
- trunk/src/core/Kwiki/lib/Kwiki.pm (modified) (1 diff)
- trunk/src/core/Kwiki/lib/Kwiki/Formatter.pm (modified) (1 diff)
- trunk/src/core/Kwiki/lib/Kwiki/Hub.pm (modified) (1 diff)
- trunk/src/core/Kwiki/src (added)
- trunk/src/core/Kwiki/src/doc (added)
- trunk/src/core/Kwiki/src/doc/Kwiki (added)
- trunk/src/core/Kwiki/src/doc/Kwiki.pod (added)
- trunk/src/core/Kwiki/src/doc/Kwiki/Formatter.pod (added)
- trunk/src/core/Kwiki/src/doc/Kwiki/Hub.pod (added)
- trunk/src/core/Kwiki/src/module.yaml (added)
- trunk/src/core/Makefile (modified) (1 diff)
- trunk/src/core/docs.mk (added)
- trunk/src/cpan/Makefile (modified) (1 diff)
- trunk/src/docs.mk (added)
- trunk/src/modules.mk (modified) (1 diff)
- trunk/src/plugins/Makefile (modified) (1 diff)
- trunk/src/plugins/docs.mk (added)
- trunk/src/plugins/ingy/Kwiki-Cache/lib/Kwiki/Cache.pm (modified) (1 diff)
- trunk/src/plugins/ingy/Kwiki-Cache/src (added)
- trunk/src/plugins/ingy/Kwiki-Cache/src/doc (added)
- trunk/src/plugins/ingy/Kwiki-Cache/src/doc/Kwiki (added)
- trunk/src/plugins/ingy/Kwiki-Cache/src/doc/Kwiki/Cache.pod (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bin/make-make.pl
r45 r66 3 3 use warnings; 4 4 5 my ($ type, $star_level) = @ARGV;5 my ($output_file, $type, $star_level) = @ARGV; 6 6 $star_level ||= 1; 7 7 8 # ./Kwiki/src/doc/Kwiki/Formatter.pod 9 10 my $pathlet = ($output_file eq 'modules.mk') ? 'lib' : 'src/doc'; 11 my $file_type = ($output_file eq 'modules.mk') ? 'MODULES' : 'DOCS'; 12 8 13 my @libs = map { 9 s!^.*/ lib/!! or die $_;14 s!^.*/$pathlet/!! or die $_; 10 15 chomp; 11 16 $_; … … 19 24 our $level5 = ''; 20 25 my $all = ''; 21 my $sections = lc($type) . ": \$(${type}_PATHS) \$(${type}_ MODULES)\n\n";26 my $sections = lc($type) . ": \$(${type}_PATHS) \$(${type}_$file_type)\n\n"; 22 27 23 28 for my $lib (@libs) { … … 25 30 my $level = @parts; 26 31 my $path = $lib; 27 if ($path =~ s!/\w+. pm$!!) {32 if ($path =~ s!/\w+.(pm|pod)$!!) { 28 33 $paths{$path} = 1; 29 34 } … … 54 59 55 60 if ($all) { 56 $all = "${type}_ MODULES= $all\n\n";61 $all = "${type}_$file_type = $all\n\n"; 57 62 } 58 63 59 print "$paths$level1$level2$level3$level4$level5$all$sections"; 64 open OUT, "> $output_file" or die "Can't open $output_file for output: $!"; 65 print OUT "$paths$level1$level2$level3$level4$level5$all$sections"; 66 close OUT; 60 67 61 68 sub make_section { 62 69 my ($level, $TYPE, $star_level) = @_; 70 my $dot_level = $level; 71 $dot_level++ if $output_file eq 'docs.mk'; 63 72 my $type = lc($TYPE); 64 73 my $stars = join '/', (('*') x $star_level); 65 my $dots = join '/', (('..') x $ level);74 my $dots = join '/', (('..') x $dot_level); 66 75 if ($level == 1) { 67 76 return <<"..."; 68 77 \$(${TYPE}_LEVEL_$level): 69 ln -fs $dots/src/$type/$stars/ lib/\$\@ \$\@78 ln -fs $dots/src/$type/$stars/$pathlet/\$\@ \$\@ 70 79 71 80 ... … … 77 86 \@( \\ 78 87 cd $dummy; \\ 79 lib=$dots/src/$type/$stars/ lib/\$\@; \\88 lib=$dots/src/$type/$stars/$pathlet/\$\@; \\ 80 89 echo "ln -fs \$\$lib \$\@;"; \\ 81 90 ln -fs \$\$lib $dots2/\$\@; \\ trunk/src/Makefile
r45 r66 1 make:2 $(MAKE) -C cpan modules.mk3 $(MAKE) -C core modules.mk4 $(MAKE) -C plugins modules.mk1 all: 2 $(MAKE) -C cpan $@ 3 $(MAKE) -C core $@ 4 $(MAKE) -C plugins $@ trunk/src/core/Kwiki/lib/Kwiki.pm
r45 r66 26 26 return $self; 27 27 } 28 29 __DATA__30 31 =head1 NAME32 33 Kwiki - The Kwiki Wiki Building Framework34 35 =head1 SYNOPSIS36 37 > kwiki -new cgi-bin/my-kwiki38 39 Kwiki software installed! Point your browser at this location.40 41 =head1 NOTE42 43 If you are impatient (don't worry, that's a good thing!) read44 L<Kwiki::Command> to get the details on how to install and configure a45 new Kwiki wiki in record time.46 47 =head1 DESCRIPTION48 49 A Wiki is a website that allows its users to add pages, and edit any50 existing pages. It is one of the most popular forms of web51 collaboration. If you are new to wiki, visit52 http://c2.com/cgi/wiki?WelcomeVisitors which is possibly the oldest53 wiki, and has lots of information about how wikis work.54 55 Kwiki is a Perl wiki implementation based on the Spoon application56 architecture and using the Spiffy object orientation model. The major57 goals of Kwiki are that it be easy to install, maintain and extend.58 59 All the features of a Kwiki wiki come from plugin modules. The base60 installation comes with the bare minimum plugins to make a working61 Kwiki. To make a really nice Kwiki installation you need to install62 additional plugins. Which plugins you pick is entirely up to you.63 Another goal of Kwiki is that every installation will be unique.64 When there are hundreds of plugins available, this will hopefully65 be the case.66 67 =head1 CGI::Kwiki68 69 Kwiki is the successor of the popular CGI::Kwiki software. It is a70 complete refactoring of that code. The new code has a lovely plugin API71 and is much cleaner and extendable on all fronts.72 73 There is currently no automated way to upgrade a CGI::Kwiki installation74 to Kwiki. It's actually quite easy to do by hand. Instructions on how to75 do it are here: http://www.kwiki.org/?KwikiMigrationByHand76 77 =head1 DOCUMENTATION78 79 All of the future Kwiki module documentation is being written at80 the http://doc.kwiki.org/ wiki. Check there for the latest doc, and81 help improve it. Each successive release of Kwiki will include the82 latest doc from that site.83 84 =head1 CREDITS85 86 I am currently employed by Socialtext, Inc. They make high quality87 social software for enterprise deployment. Socialtext has a bold new88 vision of building their products over Open Source software and89 returning the generic source code to the community. This results in a90 win/win effect for both entities. You get this shiny new wiki framework,91 and Socialtext can take advantage of your plugins and bug fixes.92 93 The Kwiki project would not be where it is now without their support. I94 thank them.95 96 Of particular note, Dave Rolsky and Chris Dent are two current97 Socialtext employees that have made significant contributions to Kwiki.98 99 ---100 101 Iain Truskett was probably the most active Kwiki community hacker before102 his untimely death in December 2003. The underlying foundation of Kwiki103 has been named "Spoon" in his honor. Rest in peace Spoon.104 105 ---106 107 Ian (what's with all these Iai?ns??) Langworth has become a new Kwiki108 warrior. He helped a lot with the maiden release. Expect a lot of109 plugins to come from him! Thanks Ian.110 111 ---112 113 Finally, big props to all the folks on http://www.kwiki.org and114 irc://irc.freenode.net/#kwiki. Thanks for all the support!115 116 =head1 SEE ALSO117 118 Kwiki::Command119 120 =head1 AUTHOR121 122 Ingy döt Net <ingy@cpan.org>123 124 =head1 COPYRIGHT125 126 Copyright (c) 2006. Ingy döt Net. All rights reserved.127 128 Copyright (c) 2004. Brian Ingerson. All rights reserved.129 130 This program is free software; you can redistribute it and/or modify it131 under the same terms as Perl itself.132 133 See http://www.perl.com/perl/misc/Artistic.html134 135 =cuttrunk/src/core/Kwiki/lib/Kwiki/Formatter.pm
r45 r66 497 497 package Kwiki::Formatter; 498 498 __DATA__ 499 500 =head1 NAME501 502 Kwiki::Formatter - Kwiki Formatter Base Class503 504 =head1 SYNOPSIS505 506 =head1 DESCRIPTION507 508 =head1 AUTHOR509 510 Ingy döt Net <ingy@cpan.org>511 512 =head1 COPYRIGHT513 514 Copyright (c) 2006. Ingy döt Net. All rights reserved.515 516 Copyright (c) 2004. Brian Ingerson. All rights reserved.517 518 This program is free software; you can redistribute it and/or modify it519 under the same terms as Perl itself.520 521 See http://www.perl.com/perl/misc/Artistic.html522 523 =cut524 499 __css/formatter.css__ 525 500 pre.formatter_pre { trunk/src/core/Kwiki/lib/Kwiki/Hub.pm
r45 r66 7 7 'display'; 8 8 } 9 10 __DATA__11 12 =head1 NAME13 14 Kwiki::Hub - Kwiki Hub Base Class15 16 =head1 SYNOPSIS17 18 =head1 DESCRIPTION19 20 =head1 AUTHOR21 22 Ingy döt Net <ingy@cpan.org>23 24 =head1 COPYRIGHT25 26 Copyright (c) 2006. Ingy döt Net. All rights reserved.27 28 Copyright (c) 2004. Brian Ingerson. All rights reserved.29 30 This program is free software; you can redistribute it and/or modify it31 under the same terms as Perl itself.32 33 See http://www.perl.com/perl/misc/Artistic.html34 35 =cuttrunk/src/core/Makefile
r45 r66 1 1 TYPE=CORE 2 3 all: modules.mk docs.mk 4 2 5 include ../modules.mk 6 include ../docs.mk trunk/src/cpan/Makefile
r45 r66 1 1 TYPE=CPAN 2 3 all: modules.mk 4 2 5 include ../modules.mk trunk/src/modules.mk
r48 r66 7 7 grep -v '/t/' | \ 8 8 sort -fd | \ 9 perl ../../bin/make-make.pl $ (TYPE) $(GLOB_LEVEL) > $@9 perl ../../bin/make-make.pl $@ $(TYPE) $(GLOB_LEVEL) trunk/src/plugins/Makefile
r45 r66 1 1 TYPE=PLUGINS 2 2 GLOB_LEVEL=2 3 4 all: modules.mk docs.mk 5 3 6 include ../modules.mk 7 include ../docs.mk trunk/src/plugins/ingy/Kwiki-Cache/lib/Kwiki/Cache.pm
r45 r66 46 46 return $value; 47 47 } 48 49 __DATA__50 51 =head1 NAME52 53 Kwiki::Cache - Kwiki Cache Plugin54 55 =head1 SYNOPSIS56 57 =head1 DESCRIPTION58 59 =head1 AUTHOR60 61 Ingy döt Net <ingy@cpan.org>62 63 =head1 COPYRIGHT64 65 Copyright (c) 2006. Ingy döt Net. All rights reserved.66 67 Copyright (c) 2004. Brian Ingerson. All rights reserved.68 69 This program is free software; you can redistribute it and/or modify it70 under the same terms as Perl itself.71 72 See http://www.perl.com/perl/misc/Artistic.html73 74 =cut
