Browse Source

[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
tags/1.8.0^0
Ian Y. Choi 1 year ago
parent
commit
bb24cc4ec5
1 changed files with 7 additions and 1 deletions
  1. 7
    1
      bin/doc-tools-check-languages

+ 7
- 1
bin/doc-tools-check-languages 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

Loading…
Cancel
Save