Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ci/cloudbuild/builds/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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\""
Expand Down
5 changes: 5 additions & 0 deletions docfx/product-neutral-guides/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 5 additions & 0 deletions docfx/product-neutral-guides/docs.metadata.json.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"language": "cpp",
"name": "product-neutral-guides",
"version": "@PROJECT_VERSION@"
}