Skip to content

Commit 3186c59

Browse files
committed
Move toc to devsite, and rename to _toc.yaml
1 parent b664d41 commit 3186c59

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

toc/toc.yaml renamed to docs-devsite/_toc.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,6 @@ toc:
472472
path: /docs/reference/js/vertexai-preview.date_2.md
473473
- title: EnhancedGenerateContentResponse
474474
path: /docs/reference/js/vertexai-preview.enhancedgeneratecontentresponse.md
475-
- title: ErrorDetails
476-
path: /docs/reference/js/vertexai-preview.errordetails.md
477475
- title: FileData
478476
path: /docs/reference/js/vertexai-preview.filedata.md
479477
- title: FileDataPart
@@ -517,8 +515,6 @@ toc:
517515
path: /docs/reference/js/vertexai-preview.groundingattribution.md
518516
- title: GroundingMetadata
519517
path: /docs/reference/js/vertexai-preview.groundingmetadata.md
520-
- title: HTTPErrorDetails
521-
path: /docs/reference/js/vertexai-preview.httperrordetails.md
522518
- title: InlineDataPart
523519
path: /docs/reference/js/vertexai-preview.inlinedatapart.md
524520
- title: ModelParams
@@ -545,8 +541,6 @@ toc:
545541
path: /docs/reference/js/vertexai-preview.usagemetadata.md
546542
- title: VertexAI
547543
path: /docs/reference/js/vertexai-preview.vertexai.md
548-
- title: VertexAIError
549-
path: /docs/reference/js/vertexai-preview.vertexaierror.md
550544
- title: VertexAIOptions
551545
path: /docs/reference/js/vertexai-preview.vertexaioptions.md
552546
- title: VideoMetadata

scripts/docgen/docgen.ts

+11
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,23 @@ async function generateToc() {
152152
'toc',
153153
'--input',
154154
'temp',
155+
'--output',
156+
'docs-devsite',
155157
'-p',
156158
'/docs/reference/js',
157159
'-j'
158160
],
159161
{ stdio: 'inherit' }
160162
);
163+
// The toc on the devsite must be named _toc.yaml
164+
await spawn(
165+
'mv',
166+
[
167+
'docs-devsite/toc.yaml',
168+
'docs-devsite/_toc.yaml'
169+
],
170+
{ stdio: 'inherit' }
171+
);
161172
} finally {
162173
cleanup();
163174
}

0 commit comments

Comments
 (0)