From 82c0207f3e3a1fe1c0507bfff81796c20e96bc91 Mon Sep 17 00:00:00 2001 From: Tinh Le Duc Date: Sat, 21 Sep 2024 18:40:35 +0700 Subject: [PATCH] Change docs build --- docs/pages/_theme.tsx | 4 +++- eslint.config.js | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/pages/_theme.tsx b/docs/pages/_theme.tsx index 4ac1680..69f1e6c 100644 --- a/docs/pages/_theme.tsx +++ b/docs/pages/_theme.tsx @@ -2,7 +2,7 @@ import { createTheme, defaultSideNavs } from 'vite-pages-theme-doc'; import Component404 from './404'; -export default createTheme({ +const theme = createTheme({ logo:
Dnd Tree Sortable
, topNavs: [ { @@ -38,3 +38,5 @@ export default createTheme({ }); }, }); + +export default theme; diff --git a/eslint.config.js b/eslint.config.js index 9e46ca5..8a8ff9d 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -5,7 +5,7 @@ import reactRefresh from 'eslint-plugin-react-refresh'; import tseslint from 'typescript-eslint'; export default tseslint.config( - { ignores: ['dist'] }, + { ignores: ['dist', 'docs'] }, { extends: [js.configs.recommended, ...tseslint.configs.recommended], files: ['**/*.{ts,tsx}'], diff --git a/package.json b/package.json index 60215a6..dc56861 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "build": "tsc --p ./tsconfig.lib.json && vite build", "lint": "eslint .", "dev": "vite serve docs", - "build-docs": "rimraf docs/dist && vite build docs && serve -s docs/dist", + "build-docs": "rimraf docs/dist && vite build docs", "ssr-docs": "rimraf docs/dist && vite-pages ssr docs && serve docs/dist", "format": "prettier . --write", "prepare": "husky"