Template for docs pages
Summary: - Dynamic loading of documentation pages - code highlighting for markdown files - editing playground from sidebar Reviewed By: emilsjolander Differential Revision: D6964951 fbshipit-source-id: 1c7f36afa8d23215471d5b9a9c01bd2241c2008e
This commit is contained in:
committed by
Facebook Github Bot
parent
e43bb9da19
commit
951a429ac5
@@ -13,11 +13,16 @@
|
||||
import React from 'react';
|
||||
import Page from '../components/Page';
|
||||
import Padded from '../components/Padded';
|
||||
import {Icon} from 'antd';
|
||||
import Link from 'gatsby-link';
|
||||
|
||||
export default ({pathContext}) => {
|
||||
return (
|
||||
<Page>
|
||||
<Page withSpacing>
|
||||
<Padded>
|
||||
<Link to="/docs">
|
||||
<Icon type="left-circle-o" /> back to overview
|
||||
</Link>
|
||||
<div dangerouslySetInnerHTML={{__html: pathContext.html}} />
|
||||
</Padded>
|
||||
</Page>
|
||||
|
Reference in New Issue
Block a user