From a5022da882fda49e29603a7ad2046b26e88c7a5c Mon Sep 17 00:00:00 2001 From: Alex Krolick Date: Tue, 20 Mar 2018 18:15:23 -0700 Subject: [PATCH] Add in-page TOC Also reduce spacing between ul/li tags --- content/docs/context.md | 10 ++++++++++ src/theme.js | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/content/docs/context.md b/content/docs/context.md index 47c0f19ab..8fcb2256f 100644 --- a/content/docs/context.md +++ b/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` diff --git a/src/theme.js b/src/theme.js index 9da7e3e47..5fba925d7 100644 --- a/src/theme.js +++ b/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, }, },