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-7.1.2-alpha.0.zip
共135个文件
md:51个
js:50个
json:10个
需积分: 0 1 下载量 146 浏览量
2024-08-31
13:47:46
上传
评论
收藏 437KB ZIP 举报
温馨提示
Redux 的官方 React 绑定。高性能且灵活。 Official React bindings for Redux. Performant and flexible.
资源推荐
资源详情
资源评论
收起资源包目录
react-redux-7.1.2-alpha.0.zip (135个子文件)
_redirects 504B
CNAME 19B
custom.css 5KB
404.css 693B
codeblock.css 534B
.eslintignore 16B
.eslintrc 695B
.eslintrc 82B
.eslintrc 49B
.gitignore 175B
favicon.ico 4KB
connect.spec.js 91KB
connectAdvanced.js 17KB
batch-integration.js 14KB
useSelector.spec.js 12KB
Provider.spec.js 10KB
dynamic-reducers.spec.js 6KB
server-rendering.spec.js 6KB
connectAdvanced.spec.js 5KB
index.js 5KB
useSelector.js 4KB
selectorFactory.js 4KB
versions.js 3KB
siteConfig.js 3KB
connect.js 3KB
Footer.js 3KB
hooks.spec.js 3KB
wrapMapToProps.js 3KB
Subscription.js 2KB
shallowEqual.spec.js 2KB
codeblock.js 2KB
useDispatch.spec.js 2KB
mergeProps.js 1KB
useDispatch.js 1KB
rollup.config.js 1KB
Provider.js 1KB
useStore.js 1KB
404.js 1KB
useIsomorphicLayoutEffect.js 940B
mapDispatchToProps.js 891B
useReduxContext.js 823B
wrapActionCreators.spec.js 809B
verifySubselectors.js 800B
index.js 793B
isPlainObject.spec.js 755B
alternate-renderers.js 697B
shallowEqual.js 694B
jest.config.js 686B
warning.js 636B
sidebarScroll.js 594B
useReduxContext.spec.js 589B
.babelrc.js 497B
mapStateToProps.js 490B
isPlainObject.js 486B
batch.js 358B
verifyPlainObject.js 306B
useIsomorphicLayoutEffect.native.js 173B
wrapActionCreators.js 173B
reactBatchedUpdates.native.js 133B
Context.js 120B
reactBatchedUpdates.js 94B
package-lock.json 465KB
package-lock.json 321KB
package.json 3KB
version-7.1-sidebars.json 670B
version-7.0-sidebars.json 627B
version-6.x-sidebars.json 608B
version-5.x-sidebars.json 578B
sidebars.json 502B
package.json 336B
versions.json 39B
api.md 21KB
connect.md 21KB
connect.md 21KB
connect.md 21KB
connect.md 21KB
hooks.md 18KB
basic-tutorial.md 18KB
basic-tutorial.md 18KB
basic-tutorial.md 17KB
hooks.md 17KB
connect-dispatching-actions-with-mapDispatchToProps.md 15KB
connect-dispatching-actions-with-mapDispatchToProps.md 15KB
connect-dispatching-actions-with-mapDispatchToProps.md 15KB
connect.md 14KB
connect-extracting-data-with-mapStateToProps.md 13KB
connect-extracting-data-with-mapStateToProps.md 13KB
connect-extracting-data-with-mapStateToProps.md 13KB
why-use-react-redux.md 7KB
why-use-react-redux.md 7KB
why-use-react-redux.md 7KB
why-use-react-redux.md 7KB
accessing-store.md 6KB
accessing-store.md 6KB
accessing-store.md 6KB
troubleshooting.md 5KB
connect-advanced.md 5KB
connect-advanced.md 4KB
connect-advanced.md 4KB
troubleshooting.md 4KB
共 135 条
- 1
- 2
资源评论
a3737337
- 粉丝: 0
- 资源: 2869
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功