-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
1,499 additions
and
2,488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import { css } from '@emotion/core'; | ||
|
||
import Container from './container'; | ||
import Markdown from './markdown'; | ||
import MetaInfo from './meta-info'; | ||
import Page from './page'; | ||
|
||
export default function BlogPostTemplate({ title, author, date, body, html }) { | ||
return ( | ||
<Container size="sm"> | ||
<Page as="article"> | ||
<h1 | ||
css={css` | ||
margin-bottom: 0; | ||
`} | ||
> | ||
{title} | ||
</h1> | ||
<MetaInfo> | ||
by {author} on {date} | ||
</MetaInfo> | ||
<Markdown body={body} html={html} /> | ||
</Page> | ||
</Container> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import React from 'react'; | ||
|
||
import Container from './container'; | ||
import SidebarLayout from './sidebar-layout'; | ||
import EditLink from './edit-link'; | ||
import Widgets from './widgets'; | ||
import Markdown from './markdown'; | ||
import DocsNav from './docs-nav'; | ||
|
||
function DocsSidebar({ docsNav, location }) { | ||
return ( | ||
<aside> | ||
<DocsNav items={docsNav} location={location} /> | ||
</aside> | ||
); | ||
} | ||
|
||
export default function DocsTemplate({ | ||
title, | ||
filename, | ||
body, | ||
html, | ||
showWidgets, | ||
widgets, | ||
showSidebar, | ||
docsNav, | ||
location, | ||
group, | ||
}) { | ||
return ( | ||
<Container size="md"> | ||
<SidebarLayout sidebar={showSidebar && <DocsSidebar docsNav={docsNav} location={location} />}> | ||
<article data-docs-content> | ||
{filename && <EditLink collection={`docs_${group}`} filename={filename} />} | ||
<h1>{title}</h1> | ||
<Markdown body={body} html={html} /> | ||
{showWidgets && <Widgets widgets={widgets} location={location} />} | ||
</article> | ||
</SidebarLayout> | ||
</Container> | ||
); | ||
} |
Oops, something went wrong.