From fc1f93680bbbf0f581b52850abc587d91e227a31 Mon Sep 17 00:00:00 2001 From: Jason Stirnaman Date: Fri, 6 Mar 2026 14:35:54 -0600 Subject: [PATCH] style(api): use Redocly anchor format and flatten operation layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Switch operation anchors from {method}-{path} to operation/{operationId} (PascalCase), matching Redocly convention and existing content links like #operation/PutPluginFile. Updated in Hugo templates, all-endpoints list, and JS TOC. - Remove nested bordered containers from API operations. Operations separated by top-border dividers instead of card wrappers. Param lists, schema properties, and responses no longer wrapped in bordered boxes. - Replace CSS custom properties (var(--article-text, ...)) with SCSS theme variables ($article-text, $article-heading, $nav-border, etc). The CSS vars were never defined in this theme, so all text fell back to hardcoded dark-gray values invisible in dark mode. - Delete entire dark mode override section — now handled automatically by Hugo's per-theme SCSS compilation. - Add border-bottom divider to operation endpoint line for visual separation from the operation heading. - Update PLAN.md to mark Task 7 as completed. --- PLAN.md | 2 +- assets/js/components/api-toc.ts | 4 +- assets/styles/layouts/_api-operations.scss | 195 ++++++------------- layouts/api/list.html | 7 +- layouts/partials/api/all-endpoints-list.html | 18 +- layouts/partials/api/operation.html | 4 +- 6 files changed, 77 insertions(+), 153 deletions(-) diff --git a/PLAN.md b/PLAN.md index 8d0877a4c..45d08fbbe 100644 --- a/PLAN.md +++ b/PLAN.md @@ -41,7 +41,7 @@ Replace the current API reference documentation implementation (RapiDoc web comp 4. ✅ **Remove operation pages** - Delete individual operation page generation 5. ✅ **Update Cypress tests** - Simplify tests for static HTML 6. ✅ **Clean up styles** - Remove RapiDoc CSS and dead auth modal code -7. **Fix generation script cleanup** - Add `--clean` flag (planned) +7. ✅ **Fix generation script cleanup** - Added `--clean` (default) and `--dry-run` flags 8. **Apply Cache Data tag split** - Enterprise spec update (planned) 9. **Migrate remaining products** - Apply to all InfluxDB products (planned) diff --git a/assets/js/components/api-toc.ts b/assets/js/components/api-toc.ts index beb6ff5cc..8860df35e 100644 --- a/assets/js/components/api-toc.ts +++ b/assets/js/components/api-toc.ts @@ -143,8 +143,8 @@ function buildOperationsTocHtml(operations: OperationMeta[]): string { let html = '