diff --git a/README.md b/README.md index 0fa873d..79576c5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![file-selector logo](https://raw.githubusercontent.com/react-dropzone/.github/main/brand/assets/logo.png) + # file-selector > A small package for converting a [DragEvent](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent) or [file input](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file) to a list of File objects. diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..f4f50b0 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..d8e3644 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,8 @@ + + dropzone + + + + + + diff --git a/public/fileselector-lockup-dark.svg b/public/fileselector-lockup-dark.svg new file mode 100644 index 0000000..0d58584 --- /dev/null +++ b/public/fileselector-lockup-dark.svg @@ -0,0 +1,11 @@ + + file-selector + + + + + + + + + diff --git a/public/fileselector-lockup.svg b/public/fileselector-lockup.svg new file mode 100644 index 0000000..e9863f3 --- /dev/null +++ b/public/fileselector-lockup.svg @@ -0,0 +1,11 @@ + + file-selector + + + + + + + + + diff --git a/vocs.config.ts b/vocs.config.ts index 4eaf37d..164af06 100644 --- a/vocs.config.ts +++ b/vocs.config.ts @@ -1,5 +1,10 @@ import {defineConfig} from "vocs/config"; +// Project Pages are served from https://react-dropzone.github.io/file-selector/, +// so every asset/route must carry this prefix. Drop it (here and on the +// icon/logo URLs below) if a custom domain is used. +const basePath = "/file-selector"; + export default defineConfig({ // Keep Vite's root at the repo root (default) but move Vocs' sources under // `docs/` so they don't collide with the library's own `src/` and `dist/`. @@ -8,9 +13,11 @@ export default defineConfig({ outDir: "site", // GitHub Pages is static hosting — emit fully pre-rendered HTML for every route. renderStrategy: "full-static", - // Project Pages are served from https://react-dropzone.github.io/file-selector/, - // so every asset/route must be prefixed. Drop this if a custom domain is used. - basePath: "/file-selector", + basePath, + // Favicon + header logo. Vocs uses these URLs verbatim (no basePath prefix), + // so include it explicitly. Assets live in /public, synced from react-dropzone/.github. + iconUrl: `${basePath}/favicon.svg`, + logoUrl: {light: `${basePath}/fileselector-lockup.svg`, dark: `${basePath}/fileselector-lockup-dark.svg`}, title: "file-selector", titleTemplate: "%s · file-selector", description: "Convert a DragEvent or file input into a flat list of File objects.",