Yet another version of wman, templatized, and now Unix man pages use the same path style as Plan 9/Inferno.
This commit is contained in:
parent
d12a6910c0
commit
8488a0b651
4 changed files with 62 additions and 38 deletions
12
apps/wman/page_list.tpl
Normal file
12
apps/wman/page_list.tpl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
% d=`{wman_get_section_desc $wman_cat}
|
||||
<h1>Manual pages - Section %($wman_cat%): %($"d%)</h1>
|
||||
|
||||
<ul style="float:left">
|
||||
%{
|
||||
ls -F $wman_cat_path \
|
||||
| sed $dirfilter^' /(\/INDEX|\.html)$/d; s/\.([0-9]|9p)$//; s!/0intro$!/intro!' \
|
||||
| awk -F/ '{ print "<li><a href=\""$(NF)"\">"$(NF)"</a></li>" }
|
||||
NR%28 == 0 { print "</ul><ul style=\"float: left\">" }'
|
||||
%}
|
||||
</ul>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue