Skip to content

Commit

Permalink
docs: fix navbar style (#6217)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche authored May 6, 2020
1 parent bf22f7a commit e62fba8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const versions = require('./versions.json');


const siteConfig = {
baseUrl: '/' /* base url for your project */,
baseUrl: '/taro/' /* base url for your project */,
favicon: './img/favicon.ico',
tagline: '多端统一开发框架,支持用 React 的开发方式编写一次代码,生成能运行在微信/百度/字节跳动/支付宝/QQ小程序、快应用、H5、React Native 等平台的应用。',
title: 'Taro 文档' /* title for your website */,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"scripts": {
"start": "docusaurus start",
"build": "docusaurus build",
"build": "docusaurus build --out-dir build/taro",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy"
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import {Redirect} from '@docusaurus/router';

function Home() {
return <Redirect to="/docs/README" />;
return <Redirect to="/taro/docs/README" />;
}

export default Home
2 changes: 1 addition & 1 deletion src/theme/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function NavLink({ activeBasePath, activeRegxp, to, href, label, position, ...pr

function NavItem({ items, position, ...props }) {
if (!items) {
return <NavLink className="navbar__item navbar__link" {...props} />;
return <NavLink {...props} className={classnames(['navbar__item', 'navbar__link', props.className])} />;
}

return (
Expand Down

0 comments on commit e62fba8

Please sign in to comment.