public static function handleDocsRequest(Sencha_App $App) { static::_requireAppAccountLevel($App->getName(), 'docs'); static::_forceTrailingSlash(); $filePath = static::getPath(); if (empty($filePath[0])) { $filePath[0] = 'index.html'; } array_unshift($filePath, 'sencha-docs', $App->getName()); if ($fileNode = Site::resolvePath($filePath)) { $fileNode->outputAsResponse(); } else { return static::throwNotFoundError('Docs asset not found'); } }