mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
fix all anchor links in docs
Summary: Closes https://github.com/facebook/react-native/pull/6213 Differential Revision: D2989119 Pulled By: vjeux fb-gh-sync-id: 3a069dcebbf8dec40702a7bab5268ce4a82db731 shipit-source-id: 3a069dcebbf8dec40702a7bab5268ce4a82db731
This commit is contained in:
committed by
Facebook Github Bot 5
parent
fcd468d4eb
commit
5a53d90003
@@ -16,6 +16,14 @@ var React = require('React');
|
||||
var Site = require('Site');
|
||||
|
||||
var DocsLayout = React.createClass({
|
||||
childContextTypes: {
|
||||
permalink: React.PropTypes.string
|
||||
},
|
||||
|
||||
getChildContext: function() {
|
||||
return {permalink: this.props.metadata.permalink};
|
||||
},
|
||||
|
||||
render: function() {
|
||||
var metadata = this.props.metadata;
|
||||
var content = this.props.children;
|
||||
|
||||
Reference in New Issue
Block a user