diff --git a/toc/toc.yaml b/docs-devsite/_toc.yaml similarity index 98% rename from toc/toc.yaml rename to docs-devsite/_toc.yaml index d6d5ff4a185..43ec97cda56 100644 --- a/toc/toc.yaml +++ b/docs-devsite/_toc.yaml @@ -472,8 +472,6 @@ toc: path: /docs/reference/js/vertexai-preview.date_2.md - title: EnhancedGenerateContentResponse path: /docs/reference/js/vertexai-preview.enhancedgeneratecontentresponse.md - - title: ErrorDetails - path: /docs/reference/js/vertexai-preview.errordetails.md - title: FileData path: /docs/reference/js/vertexai-preview.filedata.md - title: FileDataPart @@ -517,8 +515,6 @@ toc: path: /docs/reference/js/vertexai-preview.groundingattribution.md - title: GroundingMetadata path: /docs/reference/js/vertexai-preview.groundingmetadata.md - - title: HTTPErrorDetails - path: /docs/reference/js/vertexai-preview.httperrordetails.md - title: InlineDataPart path: /docs/reference/js/vertexai-preview.inlinedatapart.md - title: ModelParams @@ -545,8 +541,6 @@ toc: path: /docs/reference/js/vertexai-preview.usagemetadata.md - title: VertexAI path: /docs/reference/js/vertexai-preview.vertexai.md - - title: VertexAIError - path: /docs/reference/js/vertexai-preview.vertexaierror.md - title: VertexAIOptions path: /docs/reference/js/vertexai-preview.vertexaioptions.md - title: VideoMetadata diff --git a/scripts/docgen/docgen.ts b/scripts/docgen/docgen.ts index 314e42a7cfc..4103558e334 100644 --- a/scripts/docgen/docgen.ts +++ b/scripts/docgen/docgen.ts @@ -152,12 +152,23 @@ async function generateToc() { 'toc', '--input', 'temp', + '--output', + 'docs-devsite', '-p', '/docs/reference/js', '-j' ], { stdio: 'inherit' } ); + // The toc on the devsite must be named _toc.yaml + await spawn( + 'mv', + [ + 'docs-devsite/toc.yaml', + 'docs-devsite/_toc.yaml' + ], + { stdio: 'inherit' } + ); } finally { cleanup(); }