Skip to content

Move README-referenced static assets to a root-level static/ dir#1497

Merged
mathuo merged 1 commit into
v8-branchfrom
claude/static-resources-readme-links-2nvkzt
Jul 20, 2026
Merged

Move README-referenced static assets to a root-level static/ dir#1497
mathuo merged 1 commit into
v8-branchfrom
claude/static-resources-readme-links-2nvkzt

Conversation

@mathuo

@mathuo mathuo commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Description

The published package READMEs embed brand and demo images via GitHub raw links that pointed deep into packages/docs/static/img/. That path is fragile: it lives inside the internal docs package and breaks if the docs site is restructured.

This moves the assets that READMEs actually reference into a root-level static/img/ directory and repoints every link there, so the README image links no longer depend on the docs package's internal layout.

  • Moved (via git mv, history preserved): dockview-lockup-dark.svg, dockview-lockup-light.svg, demo-hero.webpstatic/img/.
  • Updated links in dockview, dockview-core, dockview-react, dockview-vue, dockview-angular, and dockview-enterprise READMEs (GitHub raw URLs), plus the root README.md (relative paths).
  • Added staticDirectories: ['static', '../../static'] to packages/docs/docusaurus.config.js so the docs site keeps serving demo-hero.webp at /img/demo-hero.webp unchanged. The two lockups are README-only; only demo-hero.webp is consumed by the docs site (src/pages/index.tsx).

Type of change

  • Documentation
  • Build / CI / tooling

Affected packages

  • dockview-core
  • dockview (vanilla JS)
  • dockview-react
  • dockview-vue
  • dockview-angular
  • docs

(Also touches dockview-enterprise, which is not listed in the template.)

How to test

  • Package READMEs: confirm the lockup and hero images render on GitHub (the raw links now resolve to blob/HEAD/static/img/...), and the root README.md images resolve via the new relative paths.
  • Docs site: yarn build (or start) in packages/docs and confirm the homepage hero (/img/demo-hero.webp) still loads. staticDirectories now merges the docs-local static/ with the repo root static/; only the three moved files live at the root, so there are no filename collisions.

Checklist

  • yarn lint:fix passes
  • yarn format passes
  • npm run gen has been run and generated files are up to date
  • yarn test passes
  • I have added or updated tests where applicable
  • Breaking changes are documented

Note: docs are deliberately excluded from Prettier per packages/docs/AGENTS.md; no generated files or tests are affected by this change.

🤖 Generated with Claude Code


Generated by Claude Code

The published package READMEs (dockview, dockview-core, dockview-react,
dockview-vue, dockview-angular, dockview-enterprise) embed brand and demo
images via GitHub raw links that pointed deep into packages/docs/static/img/.
That path is fragile: it lives inside the internal docs package and breaks if
the docs site is restructured.

Move the referenced assets (dockview-lockup-dark.svg, dockview-lockup-light.svg,
demo-hero.webp) to a root-level static/img/ directory and update every README
link (package READMEs use GitHub raw URLs, the root README uses relative paths)
to point there. Docusaurus is configured with staticDirectories to also serve
the root static/ dir, so the docs site continues to resolve /img/demo-hero.webp
unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XSp5iRUMcxwEoS2MeDL5rx
@mathuo
mathuo merged commit e40420c into v8-branch Jul 20, 2026
6 checks passed
@sonarqubecloud

Copy link
Copy Markdown

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