Skip to content

[AutoDocs] Update Platform Docs#3626

Merged
matthewhelmke merged 4 commits into
mainfrom
create-pull-request/patch
Jul 23, 2026
Merged

[AutoDocs] Update Platform Docs#3626
matthewhelmke merged 4 commits into
mainfrom
create-pull-request/patch

Conversation

@octo-sts-2

@octo-sts-2 octo-sts-2 Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Platform docs autocommit

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@octo-sts-2
octo-sts-2 Bot requested a review from a team as a code owner July 23, 2026 00:39
@octo-sts-2 octo-sts-2 Bot added automated documentation Improvements or additions to documentation platform labels Jul 23, 2026
@netlify

netlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploy Preview for ornate-narwhal-088216 ready!

Name Link
🔨 Latest commit 9e6627d
🔍 Latest deploy log https://app.netlify.com/projects/ornate-narwhal-088216/deploys/6a620a1a0bc54400084d5086
😎 Deploy Preview https://deploy-preview-3626--ornate-narwhal-088216.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

matthewhelmke added a commit that referenced this pull request Jul 23, 2026
## Problem

The AutoDocs PR [#3626](#3626)
failed the required `pre-commit` check — a job that has always passed.
The failing hook is `end-of-file-fixer`, on four files:

```
static/api.json
static/api-v1.json
static/api-v2alpha1.json
static/api-v2beta1.json
```

These are OpenAPI specs that `.github/actions/integrate-platform-docs`
syncs verbatim from cloud storage (`gsutil ... enforce-openapi/api*.json
static/`), and the generator emits them **without a trailing newline**.
They've always lacked one; prior AutoDocs runs simply didn't change
them, so they stayed out of the pre-commit diff. This run updated the
spec, pulling them into the changed-file set, and `end-of-file-fixer`
rewrote them — failing the check on content the docs team can't hand-fix
(the next sync clobbers any newline we add).

## Fix

Exclude `static/api*.json` from `trailing-whitespace` and
`end-of-file-fixer`, mirroring the existing `chainctl-docs` exclusion —
same rationale: generated, synced verbatim, fixes don't survive the next
sync. Each `exclude` becomes a verbose (`(?x)`) regex covering both
paths.

## Verification

- Regex tested against the four files plus near-misses
(`static/apidocs/x.json`, `static/api.json.bak`) — matches only the
intended specs, no over-match.
- `pre-commit run end-of-file-fixer --files static/api*.json README.md`
now passes (the specs are skipped; normal files still checked).
- Config-only change; `check-yaml` and the full local hook suite pass.

Once this merges, the next AutoDocs run (or a rebase of #3626 onto
updated `main`) will pass the check.

---
Created in collaboration with Claude Code running Opus 4.8 on
2026-07-23.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@matthewhelmke

Copy link
Copy Markdown
Collaborator

Updating this branch to include the changes from #3628

@matthewhelmke
matthewhelmke merged commit e420008 into main Jul 23, 2026
12 checks passed
@matthewhelmke
matthewhelmke deleted the create-pull-request/patch branch July 23, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated documentation Improvements or additions to documentation platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants