forked from expo/expo
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
55fb193
commit a7c1cbc
Showing
3,147 changed files
with
242,686 additions
and
236,752 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
"~": "." | ||
} | ||
}], | ||
"markdown-in-js/babel", | ||
"preval" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
node_modules | ||
out/ | ||
|
||
# These are generated by mdjs | ||
pages/versions | ||
# copied in next.config.js | ||
pages/versions/latest/ |
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,12 @@ | ||
const fm = require('front-matter'); | ||
|
||
module.exports = async function(src) { | ||
const callback = this.async(); | ||
const { body, attributes } = fm(src); | ||
|
||
const code = `export const meta = ${JSON.stringify(attributes)} | ||
${body}`; | ||
|
||
return callback(null, code); | ||
}; |
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
22 changes: 9 additions & 13 deletions
22
docs/components/page-higher-order/withDocumentationElements.js
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 |
---|---|---|
@@ -1,28 +1,24 @@ | ||
import * as React from 'react'; | ||
import GithubSlugger from 'github-slugger'; | ||
import { withRouter } from 'next/router'; | ||
import { MDXProvider } from '@mdx-js/tag'; | ||
|
||
import DocumentationPage from '~/components/DocumentationPage'; | ||
import { SluggerContext } from '~/components/page-higher-order/withSlugger'; | ||
import * as components from '~/common/translate-markdown'; | ||
|
||
export default options => { | ||
return content => { | ||
export default meta => | ||
withRouter( | ||
class DocumentationPageHOC extends React.Component { | ||
static async getInitialProps(context) { | ||
return { asPath: context.asPath }; | ||
} | ||
|
||
render() { | ||
const { router } = this.props; | ||
return ( | ||
<DocumentationPage title={options.title} url={this.props.url} asPath={this.props.asPath}> | ||
<DocumentationPage title={meta.title} url={router} asPath={router.asPath}> | ||
<SluggerContext.Provider value={new GithubSlugger()}> | ||
{content} | ||
<MDXProvider components={components}>{this.props.children}</MDXProvider> | ||
</SluggerContext.Provider> | ||
</DocumentationPage> | ||
); | ||
} | ||
} | ||
|
||
return DocumentationPageHOC; | ||
}; | ||
}; | ||
|
||
); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.