Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Binary file added public/favicon.ico
Binary file not shown.
8 changes: 8 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/fileselector-lockup-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions public/fileselector-lockup.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 10 additions & 3 deletions vocs.config.ts
Original file line number Diff line number Diff line change
@@ -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/`.
Expand All @@ -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.",
Expand Down