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
2 changes: 1 addition & 1 deletion .claude/agents/ts-component-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ assets/js/
│ ├── api-nav.ts # API navigation behavior
│ ├── api-toc.ts # Table of contents
│ ├── api-tabs.ts # Tab switching
│ └── api-scalar.ts # Scalar/RapiDoc integration
│ └── api-rapidoc.ts # RapiDoc integration
└── utils/
├── dom-helpers.ts # Shared DOM utilities
└── debug-helpers.js # Debugging utilities
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/hugo-template-dev/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ assets/
│ │ ├── api-nav.ts # API navigation behavior
│ │ ├── api-toc.ts # Table of contents
│ │ ├── api-tabs.ts # Tab switching (if needed beyond CSS)
│ │ └── api-scalar.ts # Scalar/RapiDoc integration
│ │ └── api-rapidoc.ts # RapiDoc integration
│ └── utils/
│ └── dom-helpers.ts # Shared DOM utilities
└── styles/
Expand Down
4 changes: 2 additions & 2 deletions api-docs/scripts/dist/generate-openapi-articles.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api-docs/scripts/generate-openapi-articles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ interface GeneratePagesOptions {
* Generate Hugo content pages from article data
*
* Creates markdown files with frontmatter from article metadata.
* Each article becomes a page with type: api that renders via Scalar.
* Each article becomes a page with type: api that renders via RapiDoc.
*
* @param options - Generation options
*/
Expand Down Expand Up @@ -689,7 +689,7 @@ ${yaml.dump(frontmatter)}---
const productConfigs: ProductConfigMap = {
// TODO: v2 products (cloud-v2, oss-v2) are disabled for now because they
// have existing Redoc-based API reference at /reference/api/
// Uncomment when ready to migrate v2 products to Scalar
// Uncomment when ready to migrate v2 products to RapiDoc
// 'cloud-v2': {
// specFile: path.join(API_DOCS_ROOT, 'influxdb/cloud/v2/ref.yml'),
// pagesDir: path.join(DOCS_ROOT, 'content/influxdb/cloud/api'),
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/api-toc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function buildOperationsTocHtml(operations: OperationMeta[]): string {
let html = '<ul class="api-toc-list api-toc-list--operations">';

operations.forEach((op) => {
// Generate anchor ID from operationId (Scalar uses operationId for anchors)
// Generate anchor ID from operationId (RapiDoc uses operationId for anchors)
const anchorId = op.operationId;
const methodClass = getMethodClass(op.method);

Expand Down
6 changes: 3 additions & 3 deletions layouts/_default/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
(api/section.html, api/list.html, api/single.html) should be preferred.
*/}}

{{/* Section pages should render content directly, not use RapiDoc */}}
{{ if .IsSection }}
{{/* Section pages without staticFilePath should render content directly, not use RapiDoc */}}
{{ if and .IsSection (not .Params.staticFilePath) }}

{{ partial "header.html" . }}
{{ partial "topnav.html" . }}
Expand Down Expand Up @@ -54,7 +54,7 @@ <h4 class="api-toc-header">ON THIS PAGE</h4>
{{ partial "footer.html" . }}

{{ else }}
{{/* Non-section pages with staticFilePath use RapiDoc renderer */}}
{{/* Pages with staticFilePath (operation pages) use RapiDoc renderer */}}

{{ partial "header.html" . }}
{{ partial "topnav.html" . }}
Expand Down
Loading