Skip to content

Commit

Permalink
Remove links
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Jan 18, 2025
1 parent 16c7f66 commit 8cba63e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Writing/HtmlWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,11 @@ protected function transformMarkdownFileToHTML(string $markdownFilePath): string

public function getMetadata(): array
{
// todo remove 'links' in future
$links = []; // Left for backwards compat

// NB:These paths are wrong for laravel type but will be set correctly by the Writer class
if ($this->config->get('postman.enabled', true)) {
$links[] = "<a href=\"{$this->assetPathPrefix}collection.json\">".u::trans("scribe::links.postman")."</a>";
$postmanCollectionUrl = "{$this->assetPathPrefix}collection.json";
}
if ($this->config->get('openapi.enabled', false)) {
$links[] = "<a href=\"{$this->assetPathPrefix}openapi.yaml\">".u::trans("scribe::links.openapi")."</a>";
$openApiSpecUrl = "{$this->assetPathPrefix}openapi.yaml";
}

Expand All @@ -142,7 +137,6 @@ public function getMetadata(): array
'try_it_out' => $this->config->get('try_it_out'),
"postman_collection_url" => $postmanCollectionUrl ?? null,
"openapi_spec_url" => $openApiSpecUrl ?? null,
'links' => array_merge($links, ['<a href="http://github.com/knuckleswtf/scribe">Documentation powered by Scribe ✍</a>']),
];
}

Expand Down

0 comments on commit 8cba63e

Please sign in to comment.