Skip to content

Commit 50cdacb

Browse files
committed
fix relative links in gh-pages
1 parent 21bd4fa commit 50cdacb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

website/layout/AutodocsLayout.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,15 @@ var ComponentDoc = React.createClass({
175175
if (name === 'LayoutPropTypes') {
176176
name = 'Flexbox';
177177
link =
178-
<a href={slugify(name) + '.html#proptypes'}>{name}...</a>;
178+
<a href={'docs/' + slugify(name) + '.html#proptypes'}>{name}...</a>;
179179
} else if (name === 'TransformPropTypes') {
180180
name = 'Transforms';
181181
link =
182-
<a href={slugify(name) + '.html#proptypes'}>{name}...</a>;
182+
<a href={'docs/' + slugify(name) + '.html#proptypes'}>{name}...</a>;
183183
} else {
184184
name = name.replace('StylePropTypes', '');
185185
link =
186-
<a href={slugify(name) + '.html#style'}>{name}#style...</a>;
186+
<a href={'docs/' + slugify(name) + '.html#style'}>{name}#style...</a>;
187187
}
188188
return (
189189
<div className="prop" key={name}>

0 commit comments

Comments
 (0)