浏览代码

Remove `links`

Shalvah 5 月之前
父节点
当前提交
8cba63e6e4
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      src/Writing/HtmlWriter.php

+ 0 - 6
src/Writing/HtmlWriter.php

@@ -108,16 +108,11 @@ class HtmlWriter
 
     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";
         }
 
@@ -142,7 +137,6 @@ class HtmlWriter
             '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>']),
         ];
     }