Skip to content

Commit

Permalink
2.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
yianwillis committed Aug 21, 2017
1 parent 3023ed0 commit 978faa9
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 14 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
2017-08-20 yianwillis@gmail.com update reference

ChangeLog
VERSION
devel/pdf_maker/reference.inp
devel/pdf_maker/user_manual.inp
devel/release/vcd-setup-unicode.nsi
Expand Down
4 changes: 2 additions & 2 deletions devel/doc/main.aap
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ TOPLEVELDIR = ../..
@Files = expand2string(glob(DOC_FILES))

:attr {publish = $SF_SCP_WEB_URL/doc/%file%} vim-stylesheet.css
#:attr {publish = $SF_SCP_WEB_URL/doc/%file%} *.html
:attr {publish = $SF_SCP_WEB_URL/doc/%file%} *.html

allhtml {virtual}:
:sys $TOOLS_DIR/vim2html.pl $DOC_DIR/tags-cn $DOC_FILES
:sys $TOOLS_DIR/vim2html.pl --banner $DOC_DIR/tags-cn $DOC_FILES
:copy $TOOLS_DIR/vim-stylesheet.css .

all {virtual}:
Expand Down
6 changes: 3 additions & 3 deletions devel/pdf_maker/main.aap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ all:
:print Use 'aap release' to generate pdf mauals to release.

help.html:
:execute ../doc/main.aap allhtml
:sys $TOOLS_DIR/vim2html.pl $DOC_DIR/tags-cn $DOC_FILES
:copy $TOOLS_DIR/vim-stylesheet.css .
:sys ./uncss.sh

:rule %.tex: help.html ../tools/html2lex %.inp
Expand All @@ -22,6 +23,5 @@ release: reference.pdf user_manual.pdf
:copy user_manual.pdf $(RELEASE_DIR)/user_manual-$(VERSION).pdf

clean:
:del {r}{force} *.html *.pdf *.tex *.aux *.log *.out *.fdb_latexmk *.fls
:execute ../doc/main.aap clean
:del {r}{force} *.html *.pdf *.tex *.aux *.log *.out *.fdb_latexmk *.fls *.css
:execute $TOOLS_DIR/main.aap clean
2 changes: 1 addition & 1 deletion devel/pdf_maker/uncss.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
for i in ../doc/*.html; do
for i in *.html; do
cat $i |
perl -np -e 's/<code class="note">((?:.(?!<\/?code))*.)<\/code>/<dfn>\1<\/dfn>/g' |
perl -np -e 's/<code class="keystroke">((?:.(?!<\/?code))*.)<\/code>/<kbd>\1<\/kbd>/g' |
Expand Down
28 changes: 20 additions & 8 deletions devel/tools/vim2html.pl
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@
use Text::Tabs; # Willis: expand replaced by myexpand. So no longer necessary.
use Encode;
use vars qw/%url $date/;
use Getopt::Long qw(GetOptions);

%url = ();
$date = Encode::decode_utf8(`date -u`);
chop $date;

my $show_banner;

sub maplink
{
my $tag = shift;
Expand Down Expand Up @@ -127,6 +130,15 @@ sub vim2html
my $head = uc( $outfile );

my $filler = ' ' x 80;
my $banner = $show_banner ? <<"EOF" : "";
<div id=banner>
<a href="help.html">帮助总览</a> &middot;
<a href="quickref.html">快速参考</a> &middot;
<a href="usr_toc.html">用户手册</a> &middot;
<a href="help.html#reference_toc">参考手册</a>
</div>
EOF

print OUT<<EOF;
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
Expand All @@ -136,13 +148,7 @@ sub vim2html
<link rel="stylesheet" href="vim-stylesheet.css" type="text/css">
</head>
<body>
<h2></h2>
<div id=banner>
<a href="help.html">帮助总览</a> &middot;
<a href="quickref.html">快速参考</a> &middot;
<a href="usr_toc.html">用户手册</a> &middot;
<a href="help.html#reference_toc">参考手册</a>
</div>
$banner
<div id=outer><pre id=sp>$filler</pre><div id=inner>
<pre>
EOF
Expand Down Expand Up @@ -288,7 +294,9 @@ sub usage
vim2html.pl: converts vim documentation to HTML.
usage:
vim2html.pl <tag file> <text files>
vim2html.pl [--banner] <tag file> <text files>
Parameters:
--banner: optional. Print banner line.
EOF
}

Expand All @@ -298,6 +306,10 @@ sub usage
#usage() if $#ARGV < 2;
usage() if !defined $ARGV[1];

GetOptions(
'banner' => \$show_banner,
) or usage();

print "Processing tags...\n";
readTagFile( $ARGV[ 0 ] );

Expand Down

0 comments on commit 978faa9

Please sign in to comment.