bdcontract-doc/toRst.sh

35 lines
1004 B
Bash
Raw Normal View History

2021-09-24 17:43:11 +00:00
#!/bin/bash
cd source
rm -rf ContractAPI.rst
rm -rf IDEUsage.rst
rm -rf InstallTips.rst
rm -rf Introduction.rst
rm -rf YJSAPI.rst
rm -rf YJSInDepth.rst
2022-01-04 03:58:10 +00:00
rm -rf conf.py
rm -rf index.rst
2022-01-04 05:26:25 +00:00
rm -rf _static
2022-01-04 03:58:10 +00:00
if [ $# -lt 1 ]; then
2022-01-04 05:26:25 +00:00
export src=../markdown/markdown_BDWare
2022-01-04 03:58:10 +00:00
elif [ $1 == "zryh" ] ; then
2022-01-04 05:26:25 +00:00
export src=../markdown/markdown_ZRYH
2022-01-04 03:58:10 +00:00
elif [ $1 == "bdware" ] ; then
2022-01-04 05:26:25 +00:00
export src=../markdown/markdown_BDWare
2022-01-04 03:58:10 +00:00
else
echo "error arguments, use ./markdown"
2022-01-04 05:26:25 +00:00
export src=../markdown/markdown_BDWare
2022-01-04 03:58:10 +00:00
fi
cp ${src}/conf.py ./conf.py
cp ${src}/index.rst ./index.rst
2022-01-04 05:26:25 +00:00
cp -r ${src}/_static ./_static
2022-01-04 03:58:10 +00:00
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
2021-09-24 17:43:11 +00:00
cd ..
make clean
2022-01-04 05:14:02 +00:00
#make html