This website was created with [Docusaurus](https://docusaurus.io/).
# What's In This Document
* [Get Started in 5 Minutes](#get-started-in-5-minutes)
* [Directory Structure](#directory-structure)
* [Editing Content](#editing-content)
* [Adding Content](#adding-content)
* [Full Documentation](#full-documentation)
# Get Started in 5 Minutes
1. Make sure all the dependencies for the website are installed:
```sh
# Install dependencies
$ yarn
```
2. Run your dev server:
```sh
# Start the site
$ yarn start
```
## Directory Structure
Your project file structure should look something like this
```
my-docusaurus/
docs/
doc-1.md
doc-2.md
doc-3.md
website/
blog/
2016-3-11-oldest-post.md
2017-10-24-newest-post.md
core/
node_modules/
pages/
static/
css/
img/
package.json
sidebar.json
siteConfig.js
```
# Editing Content
## Editing an existing docs page
Edit docs by navigating to `docs/` and editing the corresponding document:
`docs/doc-to-be-edited.md`
```markdown
---
id: page-needs-edit
title: This Doc Needs To Be Edited
---
Edit me...
```
For more information about docs, click [here](https://docusaurus.io/docs/en/navigation)
## Editing an existing blog post
Edit blog posts by navigating to `website/blog` and editing the corresponding post:
`website/blog/post-to-be-edited.md`
```markdown
---
id: post-needs-edit
title: This Blog Post Needs To Be Edited
---
Edit me...
```
For more information about blog posts, click [here](https://docusaurus.io/docs/en/adding-blog)
# Adding Content
## Adding a new docs page to an existing sidebar
1. Create the doc as a new markdown file in `/docs`, example `docs/newly-created-doc.md`:
```md
---
id: newly-created-doc
title: This Doc Needs To Be Edited
---
My new content here..
```
1. Refer to that doc's ID in an existing sidebar in `website/sidebar.json`:
```javascript
// Add newly-created-doc to the Getting Started category of docs
{
"docs": {
"Getting Started": [
"quick-start",
"newly-created-doc" // new doc here
],
...
},
...
}
```
For more information about adding new docs, click [here](https://docusaurus.io/docs/en/navigation)
## Adding a new blog post
1. Make sure there is a header link to your blog in `website/siteConfig.js`:
`website/siteConfig.js`
```javascript
headerLinks: [
...
{ blog: true, label: 'Blog' },
...
]
```
2. Create the blog post with the format `YYYY-MM-DD-My-Blog-Post-Title.md` in `website/blog`:
`website/blog/2018-05-21-New-Blog-Post.md`
```markdown
---
author: Frank Li
authorURL: https://twitter.com/foobarbaz
authorFBID: 503283835
title: New Blog Post
---
Lorem Ipsum...
```
For more information about blog posts, click [here](https://docusaurus.io/docs/en/adding-blog)
## Adding items to your site's top navigation bar
1. Add links to docs, custom pages or external links by editing the headerLinks field of `website/siteConfig.js`:
`website/siteConfig.js`
```javascript
{
headerLinks: [
...
/* you can add docs */
{ doc: 'my-examples', label: 'Examples' },
/* you can add custom pages */
{ page: 'help', label: 'Help' },
/* you can add external links */
{ href: 'https://github.com/facebook/Docusaurus', label: 'GitHub' },
...
],
...
}
```
For more information about the navigation bar, click [here](https://docusaurus.io/docs/en/navigation)
## Adding custom pages
1. Docusaurus uses React components to build pages. The components are saved as .js files in `website/pages/en`:
1. If you want your page to show up in your navigation header, you will need to update `website/siteConfig.js` to add to the `headerLinks` element:
`website/siteConfig.js`
```javascript
{
headerLinks: [
...
{ page: 'my-new-custom-page', label: 'My New Custom Page' },
...
],
...
}
```
For more information about custom pages, click [here](https://docusaurus.io/docs/en/custom-pages).
# Full Documentation
Full documentation can be found on the [website](https://docusaurus.io/).
没有合适的资源?快使用搜索试试~ 我知道了~
react-redux-6.0.0-beta.1.zip
共73个文件
js:29个
json:18个
md:14个
需积分: 0 2 下载量 12 浏览量
更新于2024-08-31
收藏 188KB ZIP 举报
Redux 的官方 React 绑定。高性能且灵活。
Official React bindings for Redux. Performant and flexible.
收起资源包目录
react-redux-6.0.0-beta.1.zip (73个子文件)
.eslintrc 627B
website
pages
en
index.js 3KB
sidebars.json 365B
package.json 336B
core
Footer.js 2KB
static
img
favicon
favicon.ico 4KB
redux.svg 1KB
css
custom.css 402B
README.md 4KB
siteConfig.js 2KB
LICENSE.md 1KB
codecov.yml 15B
.travis.yml 165B
.prettierrc 43B
docs-build
index.html 132KB
src
connect
wrapMapToProps.js 3KB
connect.js 3KB
mapDispatchToProps.js 891B
mergeProps.js 1KB
mapStateToProps.js 490B
verifySubselectors.js 777B
selectorFactory.js 4KB
utils
isPlainObject.js 406B
warning.js 636B
shallowEqual.js 694B
verifyPlainObject.js 306B
wrapActionCreators.js 173B
components
Context.js 120B
Provider.js 2KB
connectAdvanced.js 8KB
index.js 267B
CONTRIBUTING.md 4KB
CHANGELOG.md 107B
CNAME 19B
docs
troubleshooting.md 4KB
api
Provider.md 2KB
api.md 21KB
using-react-redux
connect-extracting-data-with-mapStateToProps.md 13KB
connect-dispatching-actions-with-mapDispatchToProps.md 15KB
README.md 711B
introduction
basic-tutorial.md 18KB
quick-start.md 1KB
package.json 3KB
rollup.config.js 1KB
package-lock.json 373KB
CODE_OF_CONDUCT.md 1KB
test
.eslintrc 36B
install-test-deps.js 3KB
run-tests.js 769B
utils
isPlainObject.spec.js 696B
wrapActionCreators.spec.js 809B
shallowEqual.spec.js 2KB
components
Provider.spec.js 8KB
connect.spec.js 68KB
babel-transformer.jest.js 178B
react
16.2
package.json 222B
package-lock.json 17KB
16.4
package.json 222B
package-lock.json 17KB
15
package.json 222B
package-lock.json 17KB
16.3
package.json 257B
package-lock.json 17KB
16.6
package.json 222B
package-lock.json 16KB
16.5
package.json 222B
package-lock.json 16KB
0.14
package.json 228B
package-lock.json 25KB
.gitignore 308B
.eslintignore 16B
README.md 2KB
.babelrc.js 497B
共 73 条
- 1
资源推荐
资源预览
资源评论
2019-09-03 上传
101 浏览量
195 浏览量
159 浏览量
134 浏览量
201 浏览量
2019-08-15 上传
118 浏览量
2023-11-01 上传
2024-08-31 上传
157 浏览量
5星 · 资源好评率100%
138 浏览量
2024-08-31 上传
2024-08-31 上传
107 浏览量
160 浏览量
2024-08-31 上传
133 浏览量
195 浏览量
135 浏览量
5星 · 资源好评率100%
5星 · 资源好评率100%
106 浏览量
资源评论
a3737337
- 粉丝: 0
- 资源: 2869
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功