Skip to content

Commit

Permalink
Change docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
ductinhkx97 committed Sep 21, 2024
1 parent 592e713 commit 82c0207
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/pages/_theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createTheme, defaultSideNavs } from 'vite-pages-theme-doc';

import Component404 from './404';

export default createTheme({
const theme = createTheme({
logo: <div style={{ fontSize: '20px' }}>Dnd Tree Sortable</div>,
topNavs: [
{
Expand Down Expand Up @@ -38,3 +38,5 @@ export default createTheme({
});
},
});

export default theme;
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 82c0207

Please sign in to comment.