Skip to content

Conversation

@jstirnaman
Copy link
Contributor

@jstirnaman jstirnaman commented Jan 2, 2026

Fix tag-based API reference sub section pages template. Adds a condition to check for presence of a spec file to differentiate from the parent section page.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

PR Preview Action v1.4.8
🚀 Deployed preview to https://influxdata.github.io/docs-v2/pr-preview/pr-6686/
on branch gh-pages at 2026-01-02 01:50 UTC

@jstirnaman jstirnaman changed the title feat(api): Uplift API reference docs with Scalar renderer feat(api): Uplift API reference docs Jan 2, 2026
@jstirnaman jstirnaman changed the base branch from master to feat-api-uplift January 2, 2026 01:49
@jstirnaman jstirnaman changed the title feat(api): Uplift API reference docs feat(api): Fix API reference tag-based section template Jan 2, 2026
claude added 2 commits January 2, 2026 02:06
The previous commit added an .IsSection check that correctly fixed
section index pages but inadvertently broke endpoint pages that Hugo
classifies as sections.

This commit refines the conditional to check for the absence of the
staticFilePath parameter, which distinguishes true section index pages
from endpoint pages that need the RapiDoc renderer:

- Section pages (no staticFilePath): Show children listing
- Endpoint pages (with staticFilePath): Use RapiDoc renderer

Fixes the regression introduced in commit 59daf17.
Update code comments and documentation to accurately reflect that
the API documentation uses RapiDoc, not Scalar:

- api-docs/scripts/generate-openapi-articles.ts: Update JSDoc comments
- api-docs/scripts/dist/generate-openapi-articles.js: Update compiled version
- assets/js/components/api-toc.ts: Update implementation comment
- .claude/agents/ts-component-dev.md: Update component reference
- .claude/skills/hugo-template-dev/SKILL.md: Update component reference

The implementation uses RapiDoc throughout, so these comments needed
to be corrected for accuracy.
@jstirnaman jstirnaman force-pushed the claude/fix-docs-build-issue-VL3Et branch from c3e6597 to a3648a7 Compare January 2, 2026 02:06
@jstirnaman jstirnaman merged commit 1ed1773 into feat-api-uplift Jan 2, 2026
5 of 6 checks passed
github-actions bot added a commit that referenced this pull request Jan 2, 2026
jstirnaman added a commit that referenced this pull request Jan 2, 2026
* fix(api): refine .IsSection check to prevent breaking endpoint pages

The previous commit added an .IsSection check that correctly fixed
section index pages but inadvertently broke endpoint pages that Hugo
classifies as sections.

This commit refines the conditional to check for the absence of the
staticFilePath parameter, which distinguishes true section index pages
from endpoint pages that need the RapiDoc renderer:

- Section pages (no staticFilePath): Show children listing
- Endpoint pages (with staticFilePath): Use RapiDoc renderer

Fixes the regression introduced in commit 59daf17.

* chore: update Scalar references to RapiDoc in comments

Update code comments and documentation to accurately reflect that
the API documentation uses RapiDoc, not Scalar:

- api-docs/scripts/generate-openapi-articles.ts: Update JSDoc comments
- api-docs/scripts/dist/generate-openapi-articles.js: Update compiled version
- assets/js/components/api-toc.ts: Update implementation comment
- .claude/agents/ts-component-dev.md: Update component reference
- .claude/skills/hugo-template-dev/SKILL.md: Update component reference

The implementation uses RapiDoc throughout, so these comments needed
to be corrected for accuracy.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants