feat: 更新文档

This commit is contained in:
neo 2021-04-03 15:34:10 +08:00
parent 483e30e278
commit c9fb9ca44d
2 changed files with 8 additions and 10 deletions

View File

@ -6,7 +6,6 @@ import SideMenu from 'dumi-theme-default/src/components/SideMenu';
import SlugList from 'dumi-theme-default/src/components/SlugList'; import SlugList from 'dumi-theme-default/src/components/SlugList';
import SearchBar from 'dumi-theme-default/src/components/SearchBar'; import SearchBar from 'dumi-theme-default/src/components/SearchBar';
import Notice from './Notice'; import Notice from './Notice';
import ValineComment from './ValineComment';
import './style/layout.less'; import './style/layout.less';
const Hero = hero => ( const Hero = hero => (
@ -118,7 +117,7 @@ const Layout: React.FC<IRouteComponentProps> = ({ children, location }) => {
{updatedTime} {updatedTime}
</span> </span>
</div> </div>
<ValineComment location={location} /> {/*<ValineComment location={location} />*/}
</> </>
)} )}
{(showHero || showFeatures) && meta.footer && ( {(showHero || showFeatures) && meta.footer && (

View File

@ -11,10 +11,7 @@ order: 4
删除可以通过脚本或者在文件夹中删除(mac) 删除可以通过脚本或者在文件夹中删除(mac)
```shell ```shell
// 默认 // 目录替换为真实的brew位置
rm -rf 目录
// 执行root权限
sudo rm -rf 目录 sudo rm -rf 目录
``` ```
@ -22,8 +19,10 @@ sudo rm -rf 目录
### macOS ### macOS
- x86 上安装目录: `/usr/local/Homebrew/` - Intel 上安装目录: `/usr/local/Homebrew/`
- arm 上安装目录: `/opt/homebrew` - ARM 上安装目录: `/opt/homebrew`
另外在终端可以执行`open /usr/local/Homebrew/`打开文件夹界面删除。
### Linux ### Linux
@ -70,11 +69,11 @@ Use '--' to separate paths from revisions, like this:
- bash: `/bin/bash` - bash: `/bin/bash`
- zsh: `/bin/zsh` - zsh: `/bin/zsh`
然后根据终端类型设置镜像,参考"设置镜像" 然后根据终端类型设置镜像,参考 [设置镜像](/guide/start/#part3)
## command not found: brew ## command not found: brew
一般是环境变量无效,请使用`echo $SHELL`确认终端类型,参考上节 一般是环境变量无效,请使用`echo $SHELL`确认终端类型,参考前一段落
`m1`芯片`Mac`电脑需要手动设置环境变量: `m1`芯片`Mac`电脑需要手动设置环境变量: