support multiversion

This commit is contained in:
CaiHQ
2022-01-04 11:58:10 +08:00
parent d2534a9ed9
commit 47b3b7b395
19 changed files with 6428 additions and 27 deletions

View File

@@ -6,14 +6,27 @@ rm -rf InstallTips.rst
rm -rf Introduction.rst
rm -rf YJSAPI.rst
rm -rf YJSInDepth.rst
rm -rf conf.py
rm -rf index.rst
pandoc ./markdown/ContractAPI.md -f markdown -t rst -o ContractAPI.rst
pandoc ./markdown/IDEUsage.md -f markdown -t rst -o IDEUsage.rst
pandoc ./markdown/InstallTips.md -f markdown -t rst -o InstallTips.rst
pandoc ./markdown/Introduction.md -f markdown -t rst -o Introduction.rst
pandoc ./markdown/YJSAPI.md -f markdown -t rst -o YJSAPI.rst
pandoc ./markdown/YJSInDepth.md -f markdown -t rst -o YJSInDepth.rst
if [ $# -lt 1 ]; then
export src=./markdown
elif [ $1 == "zryh" ] ; then
export src=./markdown_ZRYH
elif [ $1 == "bdware" ] ; then
export src=./markdown_BDWare
else
echo "error arguments, use ./markdown"
export src=./markdown
fi
cp ${src}/conf.py ./conf.py
cp ${src}/index.rst ./index.rst
pandoc ${src}/ContractAPI.md -f markdown -t rst -o ContractAPI.rst
pandoc ${src}/IDEUsage.md -f markdown -t rst -o IDEUsage.rst
pandoc ${src}/InstallTips.md -f markdown -t rst -o InstallTips.rst
pandoc ${src}/Introduction.md -f markdown -t rst -o Introduction.rst
pandoc ${src}/YJSAPI.md -f markdown -t rst -o YJSAPI.rst
pandoc ${src}/YJSInDepth.md -f markdown -t rst -o YJSInDepth.rst
cd ..
make clean
make html