mirror of
https://gitee.com/BDWare/bdcontract-doc
synced 2026-02-14 20:29:27 +00:00
support multiversion
This commit is contained in:
12
toRst.sh
12
toRst.sh
@@ -8,19 +8,21 @@ rm -rf YJSAPI.rst
|
||||
rm -rf YJSInDepth.rst
|
||||
rm -rf conf.py
|
||||
rm -rf index.rst
|
||||
|
||||
rm -rf _static
|
||||
if [ $# -lt 1 ]; then
|
||||
export src=./markdown
|
||||
export src=../markdown/markdown_BDWare
|
||||
elif [ $1 == "zryh" ] ; then
|
||||
export src=./markdown_ZRYH
|
||||
export src=../markdown/markdown_ZRYH
|
||||
elif [ $1 == "bdware" ] ; then
|
||||
export src=./markdown_BDWare
|
||||
export src=../markdown/markdown_BDWare
|
||||
else
|
||||
echo "error arguments, use ./markdown"
|
||||
export src=./markdown
|
||||
export src=../markdown/markdown_BDWare
|
||||
fi
|
||||
cp ${src}/conf.py ./conf.py
|
||||
cp ${src}/index.rst ./index.rst
|
||||
cp -r ${src}/_static ./_static
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user