docs-v2/data
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
..
clockface.yml Enhance Flux functions lists (#5221) 2023-11-07 13:56:49 -07:00
flux_influxdb_minor_versions.yml Update Flux/InfluxDB version modal (#5668) 2024-11-12 08:20:54 -07:00
flux_influxdb_versions.yml Update Flux/InfluxDB version modal (#5668) 2024-11-12 08:20:54 -07:00
flux_stdlib_frontmatter.yml Update shared content usage in v2 docs and more (#5953) 2025-04-02 15:54:32 -06:00
influxd_flags.yml feat(oss2): Add influxd_flags entry for option 2025-05-15 16:05:43 -05:00
influxdb_urls.yml Merge pull request #6079 from influxdata/chore-js-refactor-footer-scripts-modules 2025-06-09 14:40:37 -05:00
labels.yml feat(ci): add doc review pipeline with auto-labeling and Copilot review (#6890) 2026-03-09 20:22:31 -05:00
list_filters.yml Adapt keywords to the ones used in Telegraf plugins 2025-06-18 22:36:29 +02:00
notifications.yaml hotfix: Change date for InfluxDB Docker latest tag 2026-03-10 13:50:18 -06:00
products.yml feat(api): Hugo-native API reference rendering 2026-03-15 22:17:33 -05:00
query_examples.yml fix: moving_average code example (#4862) 2023-05-09 09:20:24 -05:00
telegraf_plugins.yml Telegraf v1.38.0 (#6911) 2026-03-10 10:17:22 -05:00