X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=makeRST.sh;h=bd716ee13d86312ff5cf92d89eb4451b9cb2e50c;hb=1fa582fcdeb1735ce884002130663ba5883ce46d;hp=c09dc3385221ed0f051893514c90ec0e90a8c3c6;hpb=c323d9fc2bd57b3365600c0357c5537e1e1579ce;p=docs.git diff --git a/makeRST.sh b/makeRST.sh index c09dc3385..bd716ee13 100755 --- a/makeRST.sh +++ b/makeRST.sh @@ -4,24 +4,28 @@ # converting asciidoc to reStructedText automatically using # asciidoctor maven plug in and pandoc (http://www.pandoc.org/). # -# Please make sure you have pandoc (http://www.pandoc.org/) and sphinx -# (http://www.sphinx-doc.org/) installed. +# Please make sure you have pandoc (http://www.pandoc.org/), sphinx +# (http://www.sphinx-doc.org/) and sphinx-bootstrap-theme(https://ryan-roemer.github.io/sphinx-bootstrap-theme/) installed. cwd=$(pwd) cp -r $cwd/docs/getting-started-guide $cwd/docs_autotranslation/getting-started-guide +cp -r $cwd/docs/opendaylight-with-openstack $cwd/docs_autotranslation/opendaylight-with-openstack cp -r $cwd/docs/_static $cwd/docs_autotranslation/_static -docs='howto-openstack developer-guide user-guide' +docs='developer-guide user-guide' for i in $docs - do - echo "Translating $i ..." - cd $cwd/manuals/$i - mvn clean compile - cp -r $cwd/manuals/$i/target/generated-docs $cwd/docs_autotranslation/$i - mvn clean - cd $cwd/docs_autotranslation/$i - pandoc -f docbook -t rst -s *.xml -o index.rst - done +do + echo "Translating $i ..." + cd $cwd/manuals/$i + mvn clean compile + cp -r $cwd/manuals/$i/target/generated-docs $cwd/docs_autotranslation/$i + mvn clean + cd $cwd/docs_autotranslation/$i + pandoc -f docbook -t rst -s *.xml -o index.rst +done +cd $cwd/docs_autotranslation +./split.py -i developer-guide/index.rst +./split.py -i user-guide/index.rst sphinx-build -b html $cwd/docs_autotranslation $cwd/docs_autotranslation/html