diff --git a/ci/cloudbuild/builds/publish-docs.sh b/ci/cloudbuild/builds/publish-docs.sh index 5f40ea6504bdb..ff068c1223379 100755 --- a/ci/cloudbuild/builds/publish-docs.sh +++ b/ci/cloudbuild/builds/publish-docs.sh @@ -93,6 +93,8 @@ function stage_docfx() { local path="${binary_dir}/google/cloud/${feature}/docfx" if [[ "${feature}" == "common" ]]; then path="${binary_dir}/google/cloud/docfx" + elif [[ "${feature}" == "guides" ]]; then + path="${binary_dir}/product-neutral-guides/docfx" fi echo "path=${path}" >"${log}" @@ -119,6 +121,7 @@ io::log "bucket: gs://${docfx_bucket}" # have documentation, such as `experimental-storage_grpc`. These are harmless, # as the `stage_docfx()` function skips missing directories without an error. uploaded=(common) +uploaded+=(guides) uploaded+=("${FEATURE_LIST[@]}") echo "${uploaded[@]}" | xargs -P "$(nproc)" -n 1 \ bash -c "stage_docfx \"\${0}\" \"${docfx_bucket}\" cmake-out \"cmake-out/\${0}.docfx.log\"" diff --git a/docfx/product-neutral-guides/CMakeLists.txt b/docfx/product-neutral-guides/CMakeLists.txt index 56f54c315b8d0..5b0d62f66cff7 100644 --- a/docfx/product-neutral-guides/CMakeLists.txt +++ b/docfx/product-neutral-guides/CMakeLists.txt @@ -51,6 +51,11 @@ set(TOC_ITEMS ${toc_items}) set(toc_file "${output_dir}/toc.yml") configure_file("${CMAKE_CURRENT_SOURCE_DIR}/toc.yml.in" "${toc_file}" @ONLY) +set(metadata_file "${output_dir}/docs.metadata.json") +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/docs.metadata.json.in" + "${metadata_file}" @ONLY) +list(APPEND copied_files "${metadata_file}") + add_custom_target(product-neutral-guides-docs DEPENDS ${copied_files}) add_dependencies(all-docfx product-neutral-guides-docs) diff --git a/docfx/product-neutral-guides/docs.metadata.json.in b/docfx/product-neutral-guides/docs.metadata.json.in new file mode 100644 index 0000000000000..e11f570d884ad --- /dev/null +++ b/docfx/product-neutral-guides/docs.metadata.json.in @@ -0,0 +1,5 @@ +{ + "language": "cpp", + "name": "product-neutral-guides", + "version": "@PROJECT_VERSION@" +}