Skip to content

Refresh generated API view docs assets#5419

Merged
tig merged 5 commits into
developfrom
tig/publish-docs-generation-pr
May 26, 2026
Merged

Refresh generated API view docs assets#5419
tig merged 5 commits into
developfrom
tig/publish-docs-generation-pr

Conversation

@tig
Copy link
Copy Markdown
Member

@tig tig commented May 26, 2026

Summary

  • regenerate docfx/docs/views.md and docfx/images/views from current metadata/view demos
  • update API docs workflow to run metadata before build and conditionally regenerate view docs/GIFs only when relevant view docs sources change, with a manual override input
  • add/fix API GIF coverage for generic Prompt<TView,TResult> and LinearRange<T>, improve ScrollBar and SpinnerView demos, and remove stale generated assets including the stray develop artifact

Validation

Note: branch workflow deploy is skipped by design; deploy remains gated to push on develop.

tig and others added 5 commits May 26, 2026 11:24
Regenerate docfx view docs and GIF assets from metadata, update the API docs workflow to install tuirec and rebuild views docs before docfx build, and remove the stray artifacts GIF.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move the Pages environment onto a deploy-only job so workflow_dispatch runs on feature branches can exercise the docs build without attempting a protected Pages deployment.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Allow OutputView and the views-doc generator to record selected views at larger terminal dimensions, then regenerate the file dialog GIFs at 120x30 so the dialogs are not constrained by the default 80x20 capture.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Update the docs recording runner to let file dialog views fill the recording frame and skip the baseline frame, then regenerate the file dialog GIFs with a tight 94x23 capture.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Regenerate view docs assets and make API docs publish skip view GIF regeneration unless relevant view docs sources changed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e5b391679f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +170 to 172
if ((Test-Path $gifFile)) {
$global:LASTEXITCODE = 0
$gifSize = (Get-Item $gifFile).Length
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve tuirec failure when GIF recording exits non-zero

When tuirec record fails but an old GIF already exists at the same path, this branch still treats the run as success because it only checks Test-Path and then forcibly sets $LASTEXITCODE = 0. In that case the script can silently keep stale images and the docs workflow reports success even though the new capture failed. This was previously guarded by an exit-code check, so the regression masks real recording failures in CI and local regeneration.

Useful? React with 👍 / 👎.

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.

1 participant