[lang] Fixes PUBLISH_DIR for api-quick-start

Since api-quick-start publish location (api-guide/quick-start) is
different from standard scheme, we need to explicit PUBLISH_DIR
for translated api-quick-start documents.

Change-Id: I36d54d618a7ae0f32f5b8d86488b540f1be997c6
This commit is contained in:
Ian Y. Choi 2018-04-19 10:47:17 +09:00
parent 3e766d6c0a
commit bb24cc4ec5

View File

@ -109,7 +109,13 @@ function build_rst {
-d ${DOCTREES} \
${DOC_DIR}${book}/source/ \
${BUILD_DIR}
PUBLISH_DIR=publish-docs/${language}/${book}/
# "api-quick-start" has a special location
# following https://developer.openstack.org/api-guide/quick-start/
if [ ${book} = "api-quick-start" ] ; then
PUBLISH_DIR=publish-docs/${language}/api-guide/quick-start/
else
PUBLISH_DIR=publish-docs/${language}/${book}/
fi
mkdir -p ${PUBLISH_DIR}
rsync -a ${DOC_DIR}${book}/build/html/ ${PUBLISH_DIR}
echo $MARKER_TEXT > ${PUBLISH_DIR}/.root-marker