From dcbd83a117590e0e62252cbac3f7bef171b6c20b Mon Sep 17 00:00:00 2001 From: mathuo Date: Mon, 20 Jul 2026 21:20:34 +0000 Subject: [PATCH] Move README-referenced static assets to root-level static/ dir 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 Claude-Session: https://claude.ai/code/session_01XSp5iRUMcxwEoS2MeDL5rx --- README.md | 6 +++--- packages/dockview-angular/README.md | 6 +++--- packages/dockview-core/README.md | 4 ++-- packages/dockview-enterprise/README.md | 4 ++-- packages/dockview-react/README.md | 6 +++--- packages/dockview-vue/README.md | 6 +++--- packages/dockview/README.md | 6 +++--- packages/docs/docusaurus.config.js | 4 ++++ {packages/docs/static => static}/img/demo-hero.webp | Bin .../static => static}/img/dockview-lockup-dark.svg | 0 .../static => static}/img/dockview-lockup-light.svg | 0 11 files changed, 23 insertions(+), 19 deletions(-) rename {packages/docs/static => static}/img/demo-hero.webp (100%) rename {packages/docs/static => static}/img/dockview-lockup-dark.svg (100%) rename {packages/docs/static => static}/img/dockview-lockup-light.svg (100%) diff --git a/README.md b/README.md index ea4c46540..a4fc678af 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@
- - Dockview + + Dockview

docking engine for the web

@@ -20,7 +20,7 @@ --- -![A Dockview layout showing docked, tabbed and split panels in a trading workbench](packages/docs/static/img/demo-hero.webp) +![A Dockview layout showing docked, tabbed and split panels in a trading workbench](static/img/demo-hero.webp) Please see the website: https://dockview.dev diff --git a/packages/dockview-angular/README.md b/packages/dockview-angular/README.md index 732c8a928..0b84406b4 100644 --- a/packages/dockview-angular/README.md +++ b/packages/dockview-angular/README.md @@ -1,8 +1,8 @@
- - Dockview + + Dockview

dockview-angular

@@ -20,7 +20,7 @@ --- -![A Dockview layout showing docked, tabbed and split panels in a trading workbench](https://github.com/mathuo/dockview/blob/HEAD/packages/docs/static/img/demo-hero.webp?raw=true) +![A Dockview layout showing docked, tabbed and split panels in a trading workbench](https://github.com/mathuo/dockview/blob/HEAD/static/img/demo-hero.webp?raw=true) Please see the website: https://dockview.dev diff --git a/packages/dockview-core/README.md b/packages/dockview-core/README.md index 52b38470f..84b550a60 100644 --- a/packages/dockview-core/README.md +++ b/packages/dockview-core/README.md @@ -1,8 +1,8 @@
- - Dockview + + Dockview

dockview-core

diff --git a/packages/dockview-enterprise/README.md b/packages/dockview-enterprise/README.md index d0181dee2..cc324363d 100644 --- a/packages/dockview-enterprise/README.md +++ b/packages/dockview-enterprise/README.md @@ -1,8 +1,8 @@
- - Dockview + + Dockview

dockview-enterprise

diff --git a/packages/dockview-react/README.md b/packages/dockview-react/README.md index 74b93574c..75b45a8b6 100644 --- a/packages/dockview-react/README.md +++ b/packages/dockview-react/README.md @@ -1,8 +1,8 @@
- - Dockview + + Dockview

dockview-react

@@ -20,7 +20,7 @@ --- -![A Dockview layout showing docked, tabbed and split panels in a trading workbench](https://github.com/mathuo/dockview/blob/HEAD/packages/docs/static/img/demo-hero.webp?raw=true) +![A Dockview layout showing docked, tabbed and split panels in a trading workbench](https://github.com/mathuo/dockview/blob/HEAD/static/img/demo-hero.webp?raw=true) Please see the website: https://dockview.dev diff --git a/packages/dockview-vue/README.md b/packages/dockview-vue/README.md index 1180146b8..fef75453f 100644 --- a/packages/dockview-vue/README.md +++ b/packages/dockview-vue/README.md @@ -1,8 +1,8 @@
- - Dockview + + Dockview

dockview-vue

@@ -20,7 +20,7 @@ --- -![A Dockview layout showing docked, tabbed and split panels in a trading workbench](https://github.com/mathuo/dockview/blob/HEAD/packages/docs/static/img/demo-hero.webp?raw=true) +![A Dockview layout showing docked, tabbed and split panels in a trading workbench](https://github.com/mathuo/dockview/blob/HEAD/static/img/demo-hero.webp?raw=true) Please see the website: https://dockview.dev diff --git a/packages/dockview/README.md b/packages/dockview/README.md index 1e7b67f81..b5d387ba4 100644 --- a/packages/dockview/README.md +++ b/packages/dockview/README.md @@ -1,8 +1,8 @@
- - Dockview + + Dockview

dockview

@@ -20,7 +20,7 @@ --- -![A Dockview layout showing docked, tabbed and split panels in a trading workbench](https://github.com/mathuo/dockview/blob/HEAD/packages/docs/static/img/demo-hero.webp?raw=true) +![A Dockview layout showing docked, tabbed and split panels in a trading workbench](https://github.com/mathuo/dockview/blob/HEAD/static/img/demo-hero.webp?raw=true) Please see the website: https://dockview.dev diff --git a/packages/docs/docusaurus.config.js b/packages/docs/docusaurus.config.js index 680ebebc4..e5efa9f19 100644 --- a/packages/docs/docusaurus.config.js +++ b/packages/docs/docusaurus.config.js @@ -51,6 +51,10 @@ const config = { defaultLocale: 'en', locales: ['en'], }, + // Serve both the docs-local `static` directory and the repository root + // `static` directory. Shared assets referenced from package READMEs live in + // the root `static/` so their links stay resilient to docs restructuring. + staticDirectories: ['static', path.resolve(__dirname, '../../static')], stylesheets: [ { href: 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200', diff --git a/packages/docs/static/img/demo-hero.webp b/static/img/demo-hero.webp similarity index 100% rename from packages/docs/static/img/demo-hero.webp rename to static/img/demo-hero.webp diff --git a/packages/docs/static/img/dockview-lockup-dark.svg b/static/img/dockview-lockup-dark.svg similarity index 100% rename from packages/docs/static/img/dockview-lockup-dark.svg rename to static/img/dockview-lockup-dark.svg diff --git a/packages/docs/static/img/dockview-lockup-light.svg b/static/img/dockview-lockup-light.svg similarity index 100% rename from packages/docs/static/img/dockview-lockup-light.svg rename to static/img/dockview-lockup-light.svg