Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion tools/apidoc/build-apidoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,18 @@ set -e
sed -e 's,%API_HEADER%,Root Admin API,g' "$thisdir/generatetoc_header.xsl" >generatetocforadmin.xsl
sed -e 's,%API_HEADER%,Domain Admin API,g' "$thisdir/generatetoc_header.xsl" >generatetocfordomainadmin.xsl

python "$thisdir/gen_toc.py" $(find . -type f)
WINOS=`uname -s|grep -i WIN`
gen_toc_file=''
if [ "x$WINOS" != "x" ]; then
gen_toc_file="`cygpath -w $thisdir`\\gen_toc.py"
else
gen_toc_file="$thisdir/gen_toc.py"
fi

argfiles=`find . -type f`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of looping on the found files (argfiles), you can simply give pass it to gen_toc_file?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bhaisaab Argument list too long erro will triger under windows , so i split the argument.
Don't know if it exists under other distros.Can you check it?

for file in $argfiles;
do echo "Parse file $file";python $gen_toc_file $file;
done

cat generatetocforuser_include.xsl >>generatetocforuser.xsl
cat generatetocforadmin_include.xsl >>generatetocforadmin.xsl
Expand Down