Skip to content

General: Organize images - #3176

Closed
ngrayluna wants to merge 5 commits into
mainfrom
organize_images
Closed

General: Organize images#3176
ngrayluna wants to merge 5 commits into
mainfrom
organize_images

Conversation

@ngrayluna

Copy link
Copy Markdown
Contributor

Description

More cleaning for the big migration.

drtangible and others added 5 commits September 2, 2026 13:04
… blocks

Visual restructuring of the generated TypeScript SDK reference, applied
in the generation script's post-processing so it survives regeneration:

- Parameters sections become Mintlify <ParamField> rows (monospace name,
  type chip, description) instead of floating headings with orphaned
  type lines. Per-parameter anchors no longer pollute the on-page TOC.
- Inline-expanded and destructured object members nest inside a bordered
  <Expandable>, restoring the parent/child hierarchy the @inline tag
  flattened. TypeDoc's dotted flattening (a.b at sibling depth) is
  rebuilt into real nesting.
- Required parameters get ParamField's `required` badge; optionality is
  unbadged, per OpenAPI-reference convention, and still visible as `?`
  in the signature.
- Function-page signature blockquotes become syntax-highlighted ```ts
  fences, enriched with parameter types from the Parameters section
  (display-compacted; over-long inline object types collapse to {…},
  with the full type preserved in the parameter body).
- Cross-reference links a type chip can't carry are kept as a "See ..."
  line; `Defined in:` metadata is de-emphasized to <sub>Source: ...</sub>.

All 94 regenerated pages verified rendering on mint dev.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Replace the <sub>Source: ...</sub> text line with the site's existing
SourceLink snippet (snippets/_includes/source-link.mdx), the compact
right-floated pill styled by `.source-link` and already used across the
Weave tutorials. The import is added once per page, only when a linked
source line exists.

Since the button floats without interrupting text flow, the
_move_source_links_after_description pass (which relocated the text
line below descriptions for reading order) is now obsolete and removed;
links stay where TypeDoc emits them and float to the top right of their
section. Source lines without a GitHub URL (members inherited from
TypeScript's lib .d.ts) keep the <sub> text treatment.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… type params

Two more conversion passes extending the ParamField work:

- Members of an anonymous object return type (one heading + property
  signature blockquote each, which Mintlify rendered as misplaced quote
  bars) become <ResponseField> rows — ParamField's sibling component for
  return payloads — with the same badge policy: always-present members
  get `required`, optional ones are unbadged. Sections with any member
  that doesn't parse cleanly are left untouched rather than
  half-converted.

- Type Parameters sections get the same row treatment: name plus
  `extends ...` constraint as the type text, or a bare name row when
  unconstrained — fixing the degenerate "### T" heading followed by a
  lone `T` chip that duplicated the name.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ngrayluna
ngrayluna requested a review from a team as a code owner September 2, 2026 20:18
@ngrayluna ngrayluna closed this Sep 2, 2026
@wandb-docs-pr-writer

Copy link
Copy Markdown
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 62%, saving 274.7 KB.

Filename Before After Improvement Visual comparison
images/app_ui/scatter-plots-1.png 135.7 KB 56.2 KB 58.5% View diff
images/app_ui/custom-charts-4.png 91.3 KB 32.5 KB 64.4% View diff
images/app_ui/parameter-importance-4.png 65.9 KB 21.3 KB 67.7% View diff
images/app_ui/custom-charts-2.png 61.0 KB 25.1 KB 58.8% View diff
images/app_ui/parameter-importance-1.png 46.2 KB 18.6 KB 59.8% View diff
images/app_ui/custom-charts-3.png 38.7 KB 13.0 KB 66.3% View diff
images/app_ui/custom-charts-1.png 4.3 KB 1.6 KB 63.1% View diff

@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Readability impact

Word-weighted Flesch-Kincaid grade change across 35 changed pages: -0.3 (easier).

Lower Flesch-Kincaid grade and higher reading ease both mean easier to read. This check is informational and never blocks a PR.

Human readability

Page FK grade before FK grade after FK Δ Reading ease Δ Direction
models/app/features/custom-charts/walkthrough.mdx 9.4 9.4 +0.0 +0.0 unchanged
models/app/features/panels/parameter-importance.mdx 13.3 13.3 +0.0 +0.0 unchanged
models/app/features/panels/scatter-plot.mdx 7.3 7.3 +0.0 +0.0 unchanged
weave/reference/typescript-sdk.mdx 53.7 57.6 +3.9 -15.2 harder
weave/reference/typescript-sdk/classes/dataset.mdx 8.5 6.4 -2.1 +16.0 easier
weave/reference/typescript-sdk/classes/evaluation.mdx 9.0 7.4 -1.6 +14.4 easier
weave/reference/typescript-sdk/classes/evaluationlogger.mdx 12.8 11.8 -1.0 +11.0 easier
weave/reference/typescript-sdk/classes/messagesprompt.mdx 7.5 11.3 +3.8 -11.4 harder
weave/reference/typescript-sdk/classes/objectref.mdx 8.7 11.2 +2.5 -2.9 harder
weave/reference/typescript-sdk/classes/scorelogger.mdx 13.1 9.8 -3.3 +24.7 easier
weave/reference/typescript-sdk/classes/stringprompt.mdx too little prose to score
weave/reference/typescript-sdk/classes/weaveadkplugin.mdx 10.5 10.0 -0.5 +5.8 easier
weave/reference/typescript-sdk/classes/weaveobject.mdx too little prose to score
weave/reference/typescript-sdk/functions/createopenaiagentstracingprocessor.mdx too little prose to score
weave/reference/typescript-sdk/functions/createotelextension.mdx 9.9 8.8 -1.1 +12.0 easier
weave/reference/typescript-sdk/functions/endconversation.mdx too little prose to score
weave/reference/typescript-sdk/functions/endllm.mdx too little prose to score
weave/reference/typescript-sdk/functions/endturn.mdx too little prose to score
weave/reference/typescript-sdk/functions/flush.mdx too little prose to score
weave/reference/typescript-sdk/functions/flushotel.mdx 9.0 9.3 +0.3 +2.3 harder
weave/reference/typescript-sdk/functions/getcurrentconversation.mdx too little prose to score
weave/reference/typescript-sdk/functions/getcurrentllm.mdx too little prose to score
weave/reference/typescript-sdk/functions/getcurrentturn.mdx too little prose to score
weave/reference/typescript-sdk/functions/init.mdx 7.6 7.5 -0.1 +3.5 easier
weave/reference/typescript-sdk/functions/instrumentopenaiagents.mdx 12.8 12.6 -0.2 +3.5 easier
weave/reference/typescript-sdk/functions/login.mdx 7.2 7.2 +0.0 +2.8 unchanged
weave/reference/typescript-sdk/functions/op.mdx 7.2 10.2 +3.0 -7.0 harder
weave/reference/typescript-sdk/functions/patchrealtimesession.mdx 8.5 7.7 -0.8 +7.1 easier
weave/reference/typescript-sdk/functions/requirecurrentcallstackentry.mdx too little prose to score
weave/reference/typescript-sdk/functions/requirecurrentchildsummary.mdx too little prose to score
weave/reference/typescript-sdk/functions/runisolated.mdx 9.7 10.7 +1.0 +0.5 harder
weave/reference/typescript-sdk/functions/startconversation.mdx too little prose to score
weave/reference/typescript-sdk/functions/startllm.mdx too little prose to score
weave/reference/typescript-sdk/functions/startsubagent.mdx too little prose to score
weave/reference/typescript-sdk/functions/starttool.mdx 6.2 5.6 -0.6 +8.0 easier
weave/reference/typescript-sdk/functions/startturn.mdx too little prose to score
weave/reference/typescript-sdk/functions/weaveaudio.mdx too little prose to score
weave/reference/typescript-sdk/functions/weaveimage.mdx too little prose to score
weave/reference/typescript-sdk/functions/withattributes.mdx 13.3 12.9 -0.4 +3.4 easier
weave/reference/typescript-sdk/functions/wrapclaudeagentsdk.mdx 11.6 10.0 -1.6 +10.1 easier
weave/reference/typescript-sdk/functions/wrapgooglegenai.mdx too little prose to score
weave/reference/typescript-sdk/functions/wrapopenai.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/callschema.mdx 20.6 16.3 -4.3 +75.2 easier
weave/reference/typescript-sdk/interfaces/callsfilter.mdx 21.7 18.0 -3.7 +81.8 easier
weave/reference/typescript-sdk/interfaces/conversation.mdx 13.6 10.0 -3.6 +34.2 easier
weave/reference/typescript-sdk/interfaces/conversationinit.mdx 12.6 11.6 -1.0 +14.0 easier
weave/reference/typescript-sdk/interfaces/customruntimeid.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/getagentsoptions.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/getagentspansoptions.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/getagentturnoptions.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/getagentturnsoptions.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/getagentversionsoptions.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/getcallsoptions.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/httpresponse.mdx 14.4 13.6 -0.8 +5.5 easier
weave/reference/typescript-sdk/interfaces/httpvalidationerror.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/llm.mdx 8.2 6.7 -1.5 +14.1 easier
weave/reference/typescript-sdk/interfaces/llminit.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/message.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/query.mdx 20.3 n/a
weave/reference/typescript-sdk/interfaces/reasoning.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/registercustomruntimeoptions.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/sortby.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/subagent.mdx 7.5 5.7 -1.8 +16.8 easier
weave/reference/typescript-sdk/interfaces/subagentinit.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/tool.mdx 7.3 6.4 -0.9 +9.3 easier
weave/reference/typescript-sdk/interfaces/toolendoptions.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/toolinit.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/turn.mdx 7.3 6.6 -0.7 +9.5 easier
weave/reference/typescript-sdk/interfaces/turninit.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/usage.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/weaveaudio.mdx too little prose to score
weave/reference/typescript-sdk/interfaces/weaveclient.mdx 9.2 10.2 +1.0 +2.3 harder
weave/reference/typescript-sdk/interfaces/weaveimage.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/agent.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/agentmessage.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/agentspan.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/agentturn.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/agentversion.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/getagentspansresult.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/getagentsresult.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/getagentturnresult.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/getagentturnsresult.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/getagentversionsresult.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/jsonobject.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/jsonvalue.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/messagepart.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/modality.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/op.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/opdecorator.mdx 20.7 20.0 -0.7 +2.7 easier
weave/reference/typescript-sdk/type-aliases/registercustomruntimeresult.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/response.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/role.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/session.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/sessioninit.mdx too little prose to score
weave/reference/typescript-sdk/type-aliases/settings.mdx 8.3 7.9 -0.4 +7.5 easier
weave/reference/typescript-sdk/variables/endsession.mdx too little prose to score
weave/reference/typescript-sdk/variables/getcurrentsession.mdx too little prose to score
weave/reference/typescript-sdk/variables/startsession.mdx 11.7 11.6 -0.1 +2.8 easier

AI agent comprehension

Rated 0-3 (higher is easier for an agent to parse and act on).

Page Before After Δ
weave/reference/typescript-sdk/classes/weaveadkplugin.mdx 2 3 +1
weave/reference/typescript-sdk/interfaces/weaveclient.mdx 3 3 +0
models/app/features/custom-charts/walkthrough.mdx 2 2 +0
weave/reference/typescript-sdk/interfaces/query.mdx 3
models/app/features/panels/scatter-plot.mdx 2 2 +0
models/app/features/panels/parameter-importance.mdx 2 2 +0
weave/reference/typescript-sdk/interfaces/llm.mdx 3 3 +0
weave/reference/typescript-sdk/interfaces/turn.mdx 3 3 +0
weave/reference/typescript-sdk/interfaces/httpresponse.mdx 3 3 +0
weave/reference/typescript-sdk/functions/instrumentopenaiagents.mdx 3 3 +0

Curated-docs baseline median FK grade by type: conceptual 10.5, procedural 8.8, reference 9.4.

From workflow run 33678528828

ngrayluna added a commit that referenced this pull request Sep 2, 2026
## Description

More cleaning for the big migration.

Replaces #3176 after rebasing onto origin/main.

---------

Co-authored-by: wandb-docs-pr-writer[bot] <281709622+wandb-docs-pr-writer[bot]@users.noreply.github.com>
@mintlify

mintlify Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
wandb 🔴 Failed Sep 2, 2026, 10:13 PM

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