docs-v2/content/influxdb3/cloud-dedicated/reference
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
..
cli Move influxctl --perf-debug example output to command reference (#6599) 2025-12-22 13:11:35 -06:00
client-libraries hotfix: fix nav orphans and sorting, update clustered token delete to revoke 2025-05-13 09:25:11 -06:00
influxql InfluxDB 3 Core & InfluxDB 3 Enterprise alpha release (#5760) 2025-01-13 07:21:11 -07:00
internals Closes DAR #535 - Adds Clustered reference/internals/durability/\ 2025-09-09 14:03:44 -05:00
policies InfluxDB 3 Core & InfluxDB 3 Enterprise alpha release (#5760) 2025-01-13 07:21:11 -07:00
release-notes docs: update 2025 product highlights and add January 2026 features (#6873) 2026-02-27 09:17:41 -06:00
sql chore(sql): Update SQL reference with additional functions (#6359) 2025-09-05 08:26:38 -06:00
syntax docs(influxdb3): document duplicate point write ordering and workarounds (#6584) 2025-12-12 17:02:14 -06:00
_index.md InfluxDB 3 Core & InfluxDB 3 Enterprise alpha release (#5760) 2025-01-13 07:21:11 -07:00
glossary.md chore(influxdb3): Cloud Dedicated: use shared glossary file 2025-04-15 15:15:45 -05:00
naming-restrictions.md feat(v3): Add naming restrictions reference and guidelines: 2025-07-10 16:10:27 -05:00
sample-data.md feat(sample-data): add new wind sample dataset (#6440) 2025-10-06 12:08:35 -06:00