array( '' => 'DivinerLegacyController', 'query/((?[^/]+)/)?' => 'DivinerAtomListController', ), '/docs/(?P[^/]+)/' => 'DivinerJumpController', '/book/'. '(?P[^/]+)/'. '(?P[^/]+)/'. '(?:(?P[^/]+)/)?'. '(?P[^/]+)/'. '(?:(?P\d+)/)?' => 'DivinerAtomController', ); } public function getApplicationGroup() { return self::GROUP_COMMUNICATION; } public function buildMainMenuItems( PhabricatorUser $user, PhabricatorController $controller = null) { $items = array(); $application = null; if ($controller) { $application = $controller->getCurrentApplication(); } if ($application && $application->getHelpURI()) { $item = new PhabricatorMenuItemView(); $item->setName(pht('%s Help', $application->getName())); $item->setIcon('help'); $item->setHref($application->getHelpURI()); $items[] = $item; } return $items; } }