发布

  • [OPIK-5856] [FE] refactor: centralize /v1 docs prefix + fix 8 broken docs URLs (#6456)

    frostbyte_neo 发布于 2026-04-23 15:22:48 +00:00

    • [NA] [FE] Split docs links between v1 and v2 workspaces

    v1 workspaces now point to /docs/opik/v1/... (legacy IA preserved)
    while v2 workspaces point to the new latest docs IA at root.

    • Prefix all docLink values in constants/explainers.ts with /v1
    • Create v2/constants/explainers.ts with paths mapped to the new
      latest.yml information architecture
    • Retarget v2 imports of explainers to the v2 copy (61 files)
    • Update literal buildDocsUrl paths in v1 (21 files) to include /v1
      and in v2 (25 files) to the new IA
    • Update hard-coded docs URLs in v1 (3 files) and v2 (2 files)

    All paths verified against live docs canonical links.

    Co-Authored-By: Claude Opus 4 (1M context) noreply@anthropic.com

    • [NA] [FE] Fix prettier formatting after docs link updates

    Co-Authored-By: Claude Opus 4 (1M context) noreply@anthropic.com

    • [OPIK-5856] [FE] refactor: centralize /v1 docs prefix in v1 buildDocsUrl wrapper

    Move the /v1 docs prefix from ~150 string literals into a single place
    (src/v1/lib/utils.ts). v1 files now import buildDocsUrl from @/v1/lib/utils;
    v2 files import from @/v2/lib/utils for symmetry. Pre-build Explainer docLinks
    at module-load using the version's buildDocsUrl so shared Explainer components
    stay version-agnostic (href={docLink}); docHash folds into docLink at build
    time. Moves explainers to src/v1/constants/explainers.ts and inlines the two
    description-only entries consumed from shared/plugins.

    Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com


    Co-authored-by: Jacques Verre jverre@gmail.com
    Co-authored-by: Claude Opus 4 (1M context) noreply@anthropic.com

    下载附件