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 {
109 109
             -d ${DOCTREES} \
110 110
             ${DOC_DIR}${book}/source/ \
111 111
             ${BUILD_DIR}
112
-        PUBLISH_DIR=publish-docs/${language}/${book}/
112
+        # "api-quick-start" has a special location
113
+        # following https://developer.openstack.org/api-guide/quick-start/
114
+        if [ ${book} = "api-quick-start" ] ; then
115
+            PUBLISH_DIR=publish-docs/${language}/api-guide/quick-start/
116
+        else
117
+            PUBLISH_DIR=publish-docs/${language}/${book}/
118
+        fi
113 119
         mkdir -p ${PUBLISH_DIR}
114 120
         rsync -a ${DOC_DIR}${book}/build/html/ ${PUBLISH_DIR}
115 121
         echo $MARKER_TEXT > ${PUBLISH_DIR}/.root-marker

Loading…
Cancel
Save