Esempio n. 1
0
 protected function getRefList(Project $project)
 {
     $list = [];
     foreach ($project->getSortedRefs() as $ref) {
         $list[$ref] = $project->url(null, $ref);
     }
     return $list;
 }
Esempio n. 2
0
 /**
  * Resolve the given link.
  *
  * @param  string $link
  * @return string
  */
 protected function resolveLink($link)
 {
     if (Str::startsWith('http', $link, false)) {
         return $link;
     } else {
         $path = Str::endsWith($link, '.md', false) ? Str::remove($link, '.md') : $link;
         return $this->project->getFactory()->url($this->project, $this->project->getRef(), $path);
     }
 }
Esempio n. 3
0
 /**
  * Returns an array of parent menu items
  *
  * @return array
  */
 public function getBreadcrumb()
 {
     return $this->project->getDocumentsMenu()->getBreadcrumbToHref($this->url());
 }