Skip to content

Commit

Permalink
fix(docs): base url 404
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed Feb 7, 2021
1 parent 0afc47d commit 4fcc8bd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .umirc.js
Expand Up @@ -4,8 +4,9 @@ export default defineConfig({
mode: 'site',
title: '\b',
base: '/',
publicPath: process.env.NODE_ENV === 'production' ? '/echarts-for-react/' : '/',
exportStatic: {},
publicPath: process.env.NODE_ENV === 'production' ? '/echarts-for-react/' : '/',
base: process.env.NODE_ENV === 'production' ? '/echarts-for-react/' : '/',
logo: 'https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/zh/images/logo.png?_v_=20200710_1',
styles: [
'.__dumi-default-navbar-logo:not([data-plaintext]) { padding-left: 200px!important; }',
Expand All @@ -14,6 +15,7 @@ export default defineConfig({
],
navs: [
null,
{ title: 'G2Plot', path: 'https://github.com/antvis/G2Plot' },
{ title: '在线文档', path: 'https://github.com/hustcc/echarts-for-react' },
{ title: 'GitHub', path: 'https://github.com/hustcc/echarts-for-react' },
],
Expand Down
4 changes: 3 additions & 1 deletion docs/index.md
Expand Up @@ -5,8 +5,10 @@ hero:
title: ECharts for React
desc: 全网最好用的 ECharts 的 React 组件封装
actions:
- text: 查看在线 DEMO
- text: 在线实例
link: /examples/dynamic
- text: 开源地址
link: https://github.com/hustcc/echarts-for-react
footer: Open-source MIT Licensed | Copyright © 2021-present
---

Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -11,10 +11,10 @@
"src"
],
"scripts": {
"docs:dev": "dumi dev",
"docs:build": "dumi build",
"docs:dev": "NODE_ENV=development dumi dev",
"docs:build": "NODE_ENV=production dumi build",
"docs:deploy": "rimraf dist && npm run docs:build && gh-pages -d dist",
"start": "webpack-dev-server --watch",
"start": "npm run docs:dev",
"lint": "eslint src __tests__ && prettier src __tests__ --check",
"fix": "eslint src __tests__ --fix && prettier src __tests__ --write",
"clean": "rimraf lib esm dist",
Expand Down

0 comments on commit 4fcc8bd

Please sign in to comment.