Skip to content

Commit

Permalink
Merge pull request #119 from richardcrng/docs-formatting
Browse files Browse the repository at this point in the history
Docs formatting
  • Loading branch information
richardcrng authored Nov 7, 2019
2 parents bd9d9b3 + 043f5f0 commit ba3117b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
2 changes: 2 additions & 0 deletions docs/examples/basicExample.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ sidebar_label: Basic example
# Basic example: 30 second demo

**Situation**: I want to be able to increment two different counters in Redux state, `counterOne` and `counterTwo`.

**Complication**: I want to do this as quickly, painlessly and intuitively as possible.

**Question**: Do I really have to define reducers, action types and creators to do this?

Answer: no! Just provide Redux-Leaves with your state shape, i.e. the two counters, and it'll do the rest for you!
Expand Down
2 changes: 2 additions & 0 deletions docs/examples/intermediateExample.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ sidebar_label: Intermediate example
# Intermediate example: custom logic

**Situation**: I want to define a general type of reducer logic that can be reused on any arbitrary slice of state.

**Complication**: I want to do this as quickly, painlessly and intuitively as possible.

**Question**: Do I really have to create sub-reducers with the same underlying logic?

Answer: no! Just provide Redux-Leaves once with your custom reducer logic, and you can automatically use it at any leaf of your state tree.
Expand Down
32 changes: 16 additions & 16 deletions website/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,52 +22,52 @@
"type": "subcategory",
"label": "any",
"ids": [
"create/apply",
"create/clear",
"create/reset",
"create/update"
"defaults/apply",
"defaults/clear",
"defaults/reset",
"defaults/update"
]
},
{
"type": "subcategory",
"label": "array",
"ids": [
"create/concat",
"create/drop",
"create/filter",
"create/push"
"defaults/concat",
"defaults/drop",
"defaults/filter",
"defaults/push"
]
},
{
"type": "subcategory",
"label": "boolean",
"ids": [
"create/off",
"create/on",
"create/toggle"
"defaults/off",
"defaults/on",
"defaults/toggle"
]
},
{
"type": "subcategory",
"label": "number",
"ids": [
"create/increment"
"defaults/increment"
]
},
{
"type": "subcategory",
"label": "object",
"ids": [
"create/assign",
"create/path",
"create/set"
"defaults/assign",
"defaults/path",
"defaults/set"
]
},
{
"type": "subcategory",
"label": "string",
"ids": [
"create/concat"
"defaults/concat"
]
}
]
Expand Down

0 comments on commit ba3117b

Please sign in to comment.