website/server/extractDocs.js
// Determines whether a component should have a link to a runnable example
Determines whether a component should have a link to a runnable example
Determines whether a component should have a link to a runnable example
function isRunnable(componentName, componentPlatform) {
  let exPath = '../Examples/UIExplorer/' + componentName + 'Example.js';
  if (!fs.existsSync(exPath)) {
    exPath = '../Examples/UIExplorer/' + componentName + 'Example.' + componentPlatform + '.js';
    if (!fs.existsSync(exPath)) {
      return false;
    }
  }
  return true;
}
function isRunnable ( componentName , componentPlatform ) { let exPath = '../Examples/UIExplorer/' + componentName + 'Example.js' ; if ( ! fs . existsSync ( exPath ) ) { exPath = '../Examples/UIExplorer/' + componentName + 'Example.' + componentPlatform + '.js' ; if ( ! fs . existsSync ( exPath ) ) { return false ; } } return true ; }
Determines whether a component should have a link to a runnable example
Determines whether a component should have a link to a runnable example