Skip to content

Commit

Permalink
Support .ios.js examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeux committed Mar 31, 2015
1 parent 1e2d571 commit 427d902
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/server/extractDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ function getNameFromPath(filepath) {
function getExample(componentName) {
var path = '../Examples/UIExplorer/' + componentName + 'Example.js';
if (!fs.existsSync(path)) {
return;
path = '../Examples/UIExplorer/' + componentName + 'Example.ios.js';
if (!fs.existsSync(path)) {
return;
}
}
return {
path: path.replace(/^\.\.\//, ''),
Expand Down

0 comments on commit 427d902

Please sign in to comment.