docs-v2/content
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
..
chronograf/v1 Fix broken fragment links in Chronograf v1.11.0 release notes (#6864) 2026-03-02 11:15:32 -06:00
enterprise_influxdb/v1 fix(v1): publish OSS v1.12.3, defer Enterprise v1.12.3 pending GA (#6945) 2026-03-14 15:12:40 -05:00
flux/v0 refactor: replace URL-parsing in shortcodes with cascade product data (#6883) 2026-02-27 09:46:57 -06:00
influxdb feat(api): Hugo-native API reference rendering 2026-03-15 22:17:33 -05:00
influxdb3 feat(api): Hugo-native API reference rendering 2026-03-15 22:17:33 -05:00
kapacitor/v1 Release Kapacitor v1.8.3 (#6899) 2026-03-03 08:09:38 -06:00
platform chore(ci): upgrade link-checker to v1.5.0 and improve reporting (#6768) 2026-01-30 15:03:13 -06:00
resources fix: links containing hostname 2025-08-24 21:32:26 -05:00
shared chore: update release notes to 3.8.4 (#6915) 2026-03-10 11:46:46 -05:00
telegraf Telegraf v1.38.0 (#6911) 2026-03-10 10:17:22 -05:00
.remarkrc.yaml Jts contrib and linting fixes (#6494) 2025-10-27 20:24:25 -05:00
CLAUDE.md Update content/CLAUDE.md 2025-09-23 10:40:39 -05:00
_index.md
create.md chore(docs): Redesign docs CLI tools for creating and editing content, add content/create.md tutorial page for the How to creat… (#6506) 2025-11-03 10:18:15 -06:00
example.md Ask AI group filters (#6529) 2025-11-18 16:43:02 -06:00
test-version-detector.md feat(influxdb): Version detector shortcode triggers a modal 2025-09-30 19:01:21 -05:00