Skip to content

Commit

Permalink
Merge pull request #1 from HuolalaTech/docs
Browse files Browse the repository at this point in the history
doc: setup docsite
  • Loading branch information
wqcstrong committed Jun 6, 2023
2 parents 47ba891 + 54c548b commit 7927124
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title><ReactJsonView /></title>
</head>

<body>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@
},
"scripts": {
"dev": "vite --mode doc",
"build:doc": "vite build --mode doc",
"build:pkg": "vite build --mode pkg",
"prebuild:doc": "yarn run build:pkg",
"build:doc": "vite build --mode doc",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default defineConfig(({ mode }) => {
}
return {
plugins: [react()],
base: '/react-json-view',
build: {
outDir: 'docs-dist'
}
Expand Down

0 comments on commit 7927124

Please sign in to comment.