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 = new PHUIListItemView(); $item->setName(pht('%s Help', $application->getName())); $item->addClass('core-menu-item'); $item->setIcon('help'); $item->setHref($application->getHelpURI()); $items[] = $item; } return $items; } }