docs-v2/layouts/_default
Jason Stirnaman 4d88770ed3 feat(api): Uplift API reference docs with Scalar renderer
Replace legacy API documentation approach with modern Scalar-based rendering:

## Architecture Changes
- Add renderer abstraction (`layouts/partials/api/`) supporting Scalar and RapiDoc
- Create `api` layout type for API reference pages (single.html, list.html)
- Configure renderer via `site.Params.apiRenderer` (default: scalar)

## OpenAPI Processing Pipeline (TypeScript)
- `api-docs/scripts/generate-openapi-articles.ts` - Main generation script
- `api-docs/scripts/openapi-paths-to-hugo-data/` - OpenAPI to Hugo data converter
- Generates per-endpoint path fragments for AI agent access
- Creates Hugo content pages with `type: api` frontmatter

## AI Agent Accessibility
- Full specs at `/openapi/influxdb-{product}.yml` and `.json`
- Per-endpoint fragments at `/openapi/influxdb-{product}/paths/`
- `<link rel="alternate">` tags in HTML for machine discovery

## Scalar Features
- Dark/light theme support synchronized with site theme
- InfluxData brand colors
- Responsive layout
- Download link for OpenAPI spec

## Products Supported
- cloud-v2, oss-v2
- influxdb3-core, influxdb3-enterprise
- cloud-dedicated, cloud-serverless, clustered

Usage: node api-docs/scripts/dist/generate-openapi-articles.js [product]
2026-01-02 16:41:59 -06:00
..
_markup feat(monolith): use minio for object storage (#6228) 2025-07-17 15:14:17 -05:00
LLMS-TXT-README.md Feature: Generate documentation in LLM-friendly Markdown (#6555) 2025-12-01 12:32:28 -06:00
api.html feat(api): Uplift API reference docs with Scalar renderer 2026-01-02 16:41:59 -06:00
landing-influxdb.html Feature: Generate documentation in LLM-friendly Markdown (#6555) 2025-12-01 12:32:28 -06:00
landing-influxdb.llmstxt.txt Feature: Generate documentation in LLM-friendly Markdown (#6555) 2025-12-01 12:32:28 -06:00
list.html Algolia search modifications (#3522) 2021-12-23 09:49:35 -07:00
page-list.json chore(hugo): Update shortcodes and templates to avoid calling isset on <nil> 2025-05-19 14:57:15 -05:00
section.html Algolia search modifications (#3522) 2021-12-23 09:49:35 -07:00
single.html Algolia search modifications (#3522) 2021-12-23 09:49:35 -07:00
tags-landing.html Algolia search modifications (#3522) 2021-12-23 09:49:35 -07:00