Skip to content

Commit

Permalink
[lang] Fixes PUBLISH_DIR for api-quick-start
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ianychoi committed Apr 19, 2018
1 parent 3e766d6 commit bb24cc4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/doc-tools-check-languages
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb24cc4

Please sign in to comment.