docs-v2/content/influxdb/cloud
Jason Stirnaman f5535c9d5c feat(api): Hugo-native API reference rendering
Hugo-native templates for API
reference documentation. Operations render as server-side HTML instead
of client-side Redoc, providing faster page loads, full SEO
indexability, and consistent styling.

Architecture:
- Tag-based navigation: operations grouped by OpenAPI tag, accessed
  via tag pages only (no individual operation URLs)
- Generation script auto-discovers products from .config.yml files,
  deriving Hugo paths and menu keys from directory structure
- Per-tag JSON/YAML chunks for fast Hugo template rendering
- Inline curl examples generated from OpenAPI specs at build time

Templates (layouts/api/, layouts/partials/api/):
- tag-renderer.html: renders all operations for a tag
- operation.html: individual operation with parameters, request body,
  responses, and schema rendering
- code-sample.html: curl examples with Ask AI integration
- section-children.html: tag listing on section index pages
- all-endpoints-list.html: all operations sorted by path

Generation (api-docs/scripts/generate-openapi-articles.ts):
- Auto-discovery from .config.yml replaces hardcoded productConfigs
- Each API section generates independently (no cross-spec merging)
- Frontmatter-driven template data (specDownloadPath, articleDataKey)
- Link transformation: /influxdb/version/ placeholders resolved to
  product-specific paths

Removed:
- Redoc renderer, JavaScript components, and CSS
- Shadow DOM test infrastructure (~160 lines)
- Operation page generation (dead generatePathPages function)
- mergeArticleData() and slugifyDisplayName()

Styles (assets/styles/layouts/_api-*.scss):
- 3-column layout: sidebar, content, sticky TOC
- Theme-aware code blocks for curl examples
- Method badges (GET/POST/PUT/DELETE) with color coding
- Collapsible schema sections with depth tracking

Tests (cypress/e2e/content/api-reference.cy.js):
- Tag page rendering with operation structure
- Download button verification per section
- All-endpoints page with operation cards
- Related links from x-related OpenAPI extension
- Code sample and Ask AI link validation
2026-03-15 22:17:33 -05:00
..
__tests__ refactor: replace URL-parsing in shortcodes with cascade product data (#6883) 2026-02-27 09:46:57 -06:00
account-management fix: links containing hostname 2025-08-24 21:32:26 -05:00
admin Ask AI group filters (#6529) 2025-11-18 16:43:02 -06:00
api-guide Update shared content usage in v2 docs and more (#5953) 2025-04-02 15:54:32 -06:00
get-started Update shared content usage in v2 docs and more (#5953) 2025-04-02 15:54:32 -06:00
monitor-alert Update shared content usage in v2 docs and more (#5953) 2025-04-02 15:54:32 -06:00
process-data chore(spell-check): improve Vale spell checking for code comments (#6876) 2026-02-28 14:24:23 -06:00
query-data fix: links missing leading slash 2025-05-29 09:06:42 -05:00
reference feat(api): Hugo-native API reference rendering 2026-03-15 22:17:33 -05:00
security V2 nav reorg (#5213) 2023-11-06 15:53:12 -07:00
tags 2.0 GA and separate Cloud from OSS (#1805) 2020-11-11 09:52:14 -07:00
tools Add Documentation MCP server pages to chronograf, kapacitor, flux, and explorer (#6833) 2026-02-18 14:20:26 -06:00
upgrade InfluxDB 3 Core & InfluxDB 3 Enterprise alpha release (#5760) 2025-01-13 07:21:11 -07:00
visualize-data Update shared content usage in v2 docs and more (#5953) 2025-04-02 15:54:32 -06:00
write-data fix(v2): OSS replication:- Fix (simplify) list formatting; remove nested lists.- Convert numbered list to numbered headers to replace nested lists- Add additional headers to show alternatives- Specify Enterprise v1- Update callouts 2025-08-18 15:16:38 -05:00
_index.md refactor: replace URL-parsing in shortcodes with cascade product data (#6883) 2026-02-27 09:46:57 -06:00
migrate-regions.md InfluxDB 3 Core & InfluxDB 3 Enterprise alpha release (#5760) 2025-01-13 07:21:11 -07:00
sign-up.md dar issue 563 - Cloud 1 documentation, support, and migration (#6729) 2026-01-15 14:55:06 -06:00