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-8.0.0-beta.2.zip
共192个文件
md:81个
ts:34个
tsx:15个
需积分: 0 1 下载量 90 浏览量
2024-08-31
13:48:39
上传
评论
收藏 1.26MB ZIP 举报
温馨提示
Redux 的官方 React 绑定。高性能且灵活。 Official React bindings for Redux. Performant and flexible.
资源推荐
资源详情
资源评论
收起资源包目录
react-redux-8.0.0-beta.2.zip (192个子文件)
_redirects 1KB
yarn-berry.cjs 1.57MB
plugin-workspace-tools.cjs 49KB
plugin-compat.cjs 306B
CNAME 19B
custom.css 5KB
styles.module.css 1KB
404.css 715B
codeblock.css 534B
.DS_Store 6KB
.eslintignore 16B
.eslintrc 1KB
.eslintrc 82B
.eslintrc 49B
.gitignore 353B
.gitignore 274B
favicon.ico 4KB
index.js 6KB
docusaurus.config.js 5KB
codeblock.js 2KB
NotFound.js 2KB
rollup.config.js 1KB
jest.config.js 1KB
monokaiTheme.js 1KB
sidebars.js 1KB
.babelrc.js 1KB
sidebarScroll.js 594B
api-extractor.dt-types.json 14KB
api-extractor.json 14KB
package.json 4KB
version-7.2-sidebars.json 711B
version-7.1-sidebars.json 711B
version-7.0-sidebars.json 627B
package.json 612B
tsconfig.json 611B
version-6.x-sidebars.json 608B
version-5.x-sidebars.json 582B
tsconfig.test.json 416B
tsconfig.json 112B
ci.json 109B
yarn.lock 435KB
yarn.lock 390KB
connect.md 22KB
api.md 21KB
connect.md 21KB
connect.md 21KB
connect.md 21KB
connect.md 21KB
hooks.md 21KB
hooks.md 20KB
hooks.md 19KB
connect.md 18KB
basic-tutorial.md 18KB
basic-tutorial.md 17KB
basic-tutorial.md 17KB
basic-tutorial.md 17KB
basic-tutorial.md 17KB
react-redux.dt-types.api.md 16KB
react-redux.api.md 16KB
connect-dispatching-actions-with-mapDispatchToProps.md 15KB
connect-dispatching-actions-with-mapDispatchToProps.md 15KB
connect-dispatching-actions-with-mapDispatchToProps.md 15KB
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 14KB
connect-extracting-data-with-mapStateToProps.md 13KB
connect-extracting-data-with-mapStateToProps.md 13KB
connect-extracting-data-with-mapStateToProps.md 13KB
connect-extracting-data-with-mapStateToProps.md 13KB
connect-extracting-data-with-mapStateToProps.md 13KB
usage-with-typescript.md 10KB
quick-start.md 9KB
static-types.md 8KB
static-types.md 8KB
typescript.md 7KB
why-use-react-redux.md 7KB
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 7KB
accessing-store.md 6KB
accessing-store.md 6KB
accessing-store.md 6KB
accessing-store.md 6KB
why-use-react-redux.md 6KB
troubleshooting.md 5KB
getting-started.md 5KB
connect-advanced.md 5KB
connect-advanced.md 5KB
connect-advanced.md 4KB
connect-advanced.md 4KB
connect-advanced.md 4KB
connect-advanced.md 4KB
troubleshooting.md 4KB
troubleshooting.md 4KB
troubleshooting.md 4KB
troubleshooting.md 4KB
共 192 条
- 1
- 2
资源评论
a3737337
- 粉丝: 0
- 资源: 2869
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (仅限 Vue 2)将 Vue 组件包装为 Web 组件,自定义元素 .zip
- 非常漂亮的颜色选择器.zip
- 集成axios.zip
- 集成 vuex 的原生 websocket.zip
- 针对 Google Places API 的 Vue.js 自动建议组件 .zip
- 通过动画跨路线共享组件.zip
- 适用于您的 Vue.js 项目的便捷 Moment.js 过滤器 .zip
- 适用于 Vue.js 的轻量级所见即所得 HTML 编辑器.zip
- 适用于 Vue.js 2.0 的表格(带有树形网格)组件 (其样式扩展了@iview).zip
- 适用于 Vue.js 2-3 的移动端图片文件输入组件,具有图像预览、拖放、EXIF 方向等功能.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功