Random changes in the website

This commit is contained in:
Christopher Chedeau 2015-03-19 13:55:42 -07:00
parent c656cd9f24
commit e2e123c2ab
3 changed files with 12 additions and 6 deletions

View File

@ -34,9 +34,16 @@ var ComponentDoc = React.createClass({
}
if (type.name === 'custom') {
if (type.raw === 'EdgeInsetsPropType') {
return '{top: number, left: number, bottom: number, right: number}';
}
return type.raw;
}
if (type.name === 'func') {
return 'function';
}
return type.name;
},
@ -135,9 +142,9 @@ var APIDoc = React.createClass({
{method.modifiers.length && <span className="propType">
{method.modifiers.join(' ') + ' '}
</span>}
{method.name}(
{method.name}
<span className="propType">
{method.params
({method.params
.map((param) => {
var res = param.name;
if (param.typehint) {
@ -145,9 +152,8 @@ var APIDoc = React.createClass({
}
return res;
})
.join(', ')}
.join(', ')})
</span>
)
</Header>
{method.docblock && <Marked>
{this.removeCommentsFromDocblock(method.docblock)}

View File

@ -38,14 +38,13 @@ function componentsToMarkdown(type, json, filepath, i) {
var components = [
'../Libraries/Components/ActivityIndicatorIOS/ActivityIndicatorIOS.ios.js',
'../Libraries/Components/DatePicker/DatePickerIOS.ios.js',
'../Libraries/Text/ExpandingText.js',
'../Libraries/Image/Image.ios.js',
'../Libraries/Components/ListView/ListView.js',
'../Libraries/Components/MapView/MapView.js',
'../Libraries/Components/Navigation/NavigatorIOS.ios.js',
'../Libraries/Picker/PickerIOS.ios.js',
'../Libraries/Components/ScrollView/ScrollView.js',
'../Libraries/Components/Slider/Slider.js',
'../Libraries/Components/SliderIOS/SliderIOS.js',
'../Libraries/Components/SwitchIOS/SwitchIOS.ios.js',
'../Libraries/Components/TabBarIOS/TabBarIOS.ios.js',
'../Libraries/Text/Text.js',

View File

@ -906,6 +906,7 @@ div[data-twttr-id] iframe {
.propTitle {
font-weight: bold;
font-size: 16px;
}
.prop {