mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fix relative links in gh-pages
This commit is contained in:
@@ -175,15 +175,15 @@ var ComponentDoc = React.createClass({
|
||||
if (name === 'LayoutPropTypes') {
|
||||
name = 'Flexbox';
|
||||
link =
|
||||
<a href={slugify(name) + '.html#proptypes'}>{name}...</a>;
|
||||
<a href={'docs/' + slugify(name) + '.html#proptypes'}>{name}...</a>;
|
||||
} else if (name === 'TransformPropTypes') {
|
||||
name = 'Transforms';
|
||||
link =
|
||||
<a href={slugify(name) + '.html#proptypes'}>{name}...</a>;
|
||||
<a href={'docs/' + slugify(name) + '.html#proptypes'}>{name}...</a>;
|
||||
} else {
|
||||
name = name.replace('StylePropTypes', '');
|
||||
link =
|
||||
<a href={slugify(name) + '.html#style'}>{name}#style...</a>;
|
||||
<a href={'docs/' + slugify(name) + '.html#style'}>{name}#style...</a>;
|
||||
}
|
||||
return (
|
||||
<div className="prop" key={name}>
|
||||
|
||||
Reference in New Issue
Block a user