array( '' => 'DivinerLegacyController', 'query/((?[^/]+)/)?' => 'DivinerAtomListController', 'find/' => 'DivinerFindController', ), '/docs/(?P[^/]+)/' => 'DivinerJumpController', '/book/(?P[^/]+)/' => 'DivinerBookController', '/book/'. '(?P[^/]+)/'. '(?P[^/]+)/'. '(?:(?P[^/]+)/)?'. '(?P[^/]+)/'. '(?:(?P\d+)/)?' => 'DivinerAtomController', ); } public function getApplicationGroup() { return self::GROUP_COMMUNICATION; } public function getRemarkupRules() { return array( new DivinerRemarkupRuleSymbol(), ); } public function buildMainMenuItems( PhabricatorUser $user, PhabricatorController $controller = null) { $items = array(); $application = null; if ($controller) { $application = $controller->getCurrentApplication(); } if ($application && $application->getHelpURI()) { $item = id(new PHUIListItemView()) ->setName(pht('%s Help', $application->getName())) ->addClass('core-menu-item') ->setIcon('info-sm') ->setOrder(200) ->setHref($application->getHelpURI()); $items[] = $item; } return $items; } }