feature: added restydoc documentation indexes for the official nginx core and most of the official openresty components. also upgraded resty-cli to 0.07rc2.
This commit is contained in:
parent
7f5a1fa7e4
commit
fb040b60db
|
@ -964,9 +964,14 @@ _EOC_
|
|||
$target_dir = "\$(DESTDIR)$prefix/bin/";
|
||||
}
|
||||
push @make_install_cmds, "cd $root_dir/build/$resty_cli_dir && "
|
||||
. "$root_dir/build/install resty $target_dir";
|
||||
. "$root_dir/build/install bin/* $target_dir";
|
||||
}
|
||||
|
||||
# configure restydoc indexes
|
||||
|
||||
push @make_install_cmds, "cp $root_dir/build/resty.index \$(DESTDIR)$prefix/",
|
||||
"cp -r $root_dir/build/pod \$(DESTDIR)$prefix/";
|
||||
|
||||
# prepare nginx configure line
|
||||
|
||||
$ngx_dir = auto_complete "nginx";
|
||||
|
|
|
@ -17,6 +17,8 @@ if [ -z $debug ]; then
|
|||
mkdir -p $name/bundle || exit 1
|
||||
fi
|
||||
|
||||
bundle_dir=$root/$name/bundle
|
||||
|
||||
cd $name/bundle || exit 1
|
||||
|
||||
if [ ! -d $work ]; then
|
||||
|
@ -478,7 +480,7 @@ mv openresty-redis2-nginx-module-* redis2-nginx-module-$ver || exit 1
|
|||
|
||||
#################################
|
||||
|
||||
ver=0.07rc1
|
||||
ver=0.07rc2
|
||||
$root/util/get-tarball "https://github.com/openresty/resty-cli/tarball/v$ver" -O resty-cli-$ver.tar.gz || exit 1
|
||||
tar -xzf resty-cli-$ver.tar.gz || exit 1
|
||||
mv openresty-resty-cli-* resty-cli-$ver || exit 1
|
||||
|
@ -714,6 +716,41 @@ perl bundle/$resty_cli/bin/md2pod.pl $root/doc/README-win32.md | pod2text > READ
|
|||
unix2dos README-win32.txt || exit 1
|
||||
find bundle -name '*~' -delete
|
||||
|
||||
restydoc_index=$bundle_dir/$resty_cli/bin/restydoc-index
|
||||
#restydoc_index=$HOME/git/resty-cli/bin/restydoc-index
|
||||
|
||||
nginx_xml2pod=$bundle_dir/$resty_cli/bin/nginx-xml2pod
|
||||
#nginx_xml2pod=$HOME/git/resty-cli/bin/nginx-xml2pod
|
||||
|
||||
# generate restydoc index from nginx docs
|
||||
|
||||
curdir=$PWD
|
||||
cd $root/work/
|
||||
if [ -d nginx.org ]; then
|
||||
cd nginx.org/ || exit 1
|
||||
hg pull || exit 1
|
||||
hg update || exit 1
|
||||
cd ..
|
||||
else
|
||||
hg clone http://hg.nginx.org/nginx.org || exit 1
|
||||
fi
|
||||
cd nginx.org/ || exit 1
|
||||
$nginx_xml2pod xml/en/docs || exit 1
|
||||
cd $curdir
|
||||
|
||||
echo "restydoc-index $root/work/nginx.org"
|
||||
$restydoc_index --outdir bundle $root/work/nginx.org || exit 1
|
||||
|
||||
# generate restydoc index from openresty docs
|
||||
|
||||
for indir in bundle/*/; do
|
||||
if [ "$indir" == "bundle/pod/" ]; then
|
||||
continue
|
||||
fi
|
||||
echo "restydoc-index $indir"
|
||||
$restydoc_index --outdir bundle $indir || exit 1
|
||||
done
|
||||
|
||||
cd $root
|
||||
|
||||
tar cf $name.tar $name
|
||||
|
|
Loading…
Reference in New Issue