Skip to content

Commit

Permalink
Merge pull request #467 from jxnblk/update-md-mdx
Browse files Browse the repository at this point in the history
Update markdown and mdx packages
  • Loading branch information
jxnblk committed Sep 1, 2018
2 parents 8b7d6c1 + 5866c4c commit 946f4c5
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 39 deletions.
4 changes: 2 additions & 2 deletions markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"mdx"
],
"peerDependencies": {
"rebass": "2.x",
"rebass": ">=2.1",
"styled-components": "3.x"
},
"devDependencies": {
Expand All @@ -25,7 +25,7 @@
"ava": "^0.25.0",
"nyc": "^12.0.2",
"react-test-renderer": "^16.4.1",
"rebass": "^2.0.0-6",
"rebass": "^2.1.0",
"remark-autolink-headings": "^5.0.0",
"remark-slug": "^5.0.0",
"styled-components": "^3.3.2"
Expand Down
3 changes: 2 additions & 1 deletion markdown/test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Generated by [AVA](https://ava.li).
> Snapshot 1
<blockquote
className="sc-chPdSV gReYnD sc-gqjmRU cbBDfA"
className="sc-chPdSV gReYnD sc-gqjmRU NYUxz"
fontWeight="bold"
/>

## renders code element
Expand Down
Binary file modified markdown/test.js.snap
Binary file not shown.
27 changes: 0 additions & 27 deletions mdx/docs/_app.js

This file was deleted.

18 changes: 14 additions & 4 deletions mdx/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
---
title: rebass/mdx
---
import { Button } from 'rebass'
import { Head } from 'mdx-go'
import { Container, Button } from 'rebass'
import RebassMDX from '../src'

export const Root = props =>
<RebassMDX>
<Container>
{props.children}
</Container>
</RebassMDX>

<Head>
<title>@rebass/mdx</title>
</Head>

# RebassMDX

Expand Down
10 changes: 5 additions & 5 deletions mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@
"main": "dist/index.js",
"scripts": {
"prepare": "babel src -d dist",
"start": "ok docs -p 8989"
"start": "mdx-go docs -p 8989"
},
"keywords": [],
"author": "Brent Jackson",
"license": "MIT",
"dependencies": {
"@mdx-js/tag": "^0.11.0",
"@mdx-js/tag": "^0.15.0",
"@rebass/markdown": "^1.0.0-1",
"react-live": "^1.10.1",
"rebass": "^2.0.0",
"rebass": "^2.1.0",
"styled-components": "^3.3.3",
"styled-system": "^2.3.2"
"styled-system": "^2.3.6"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"ok-cli": "^2.0.0-64"
"mdx-go": "^1.0.9"
}
}

0 comments on commit 946f4c5

Please sign in to comment.