Browse Source

Add in-page TOC

Also reduce spacing between ul/li tags
main
Alex Krolick 7 years ago
parent
commit
a5022da882
  1. 10
      content/docs/context.md
  2. 3
      src/theme.js

10
content/docs/context.md

@ -6,6 +6,16 @@ permalink: docs/context.html
Context provides a way to pass data through the component tree without having to pass props down manually at every level.
- [API](#api)
- [React.createContext](#reactcreatecontext)
- [Provider](#provider)
- [Consumer](#consumer)
- [Examples](#examples)
- [Static Context](#static-context)
- [Dynamic Context](#dynamic-context)
- [Motivation](#motivation)
- [Legacy API](#legacy-api)
## API
### `React.createContext`

3
src/theme.js

@ -336,7 +336,7 @@ const sharedStyles = {
},
'& li': {
marginTop: 20,
marginTop: 10,
},
'& li.button-newapp': {
@ -345,6 +345,7 @@ const sharedStyles = {
'& ol, & ul': {
marginLeft: 20,
marginTop: 10,
},
},

Loading…
Cancel
Save