From 898889ce537e36cf3240d3d6af5cf8a399ab97ce Mon Sep 17 00:00:00 2001 From: Jason Varga Date: Tue, 20 Oct 2020 10:08:24 -0400 Subject: [PATCH] Update docs urls Closes #2659 --- SECURITY.md | 2 +- config/routes.php | 2 +- config/static_caching.php | 2 +- src/Exceptions/AssetContainerNotFoundException.php | 3 ++- src/Exceptions/CollectionNotFoundException.php | 3 ++- src/Exceptions/TaxonomyNotFoundException.php | 3 ++- src/Ignition/Solutions/EnableOAuth.php | 3 ++- src/Yaml/ParseException.php | 3 ++- 8 files changed, 13 insertions(+), 8 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index baf328cb37..64e6713734 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -9,7 +9,7 @@ While working to identify potential security vulnerabilities in Statamic, we ask - Provide a quality report with precise explanations and concrete attack scenarios. ## Scope -We are only interested in vulnerabilities that affect Statamic itself, tested against **your own local installation** of the software, running the latest version. You can install a local copy of Statamic by following these [installation instructions](https://statamic.dev/installing). Do not test against any Statamic installation that you don’t own, including [statamic.com](https:/statamic.com) or [docs.statamic.com](https://docs.statamic.com). +We are only interested in vulnerabilities that affect Statamic itself, tested against **your own local installation** of the software, running the latest version. You can install a local copy of Statamic by following these [installation instructions](https://statamic.dev/installing). Do not test against any Statamic installation that you don’t own, including [statamic.com](https:/statamic.com) or [statamic.dev](https://statamic.dev). ### Qualifying Vulnerabilities diff --git a/config/routes.php b/config/routes.php index fd246e516c..aa40a8b16b 100644 --- a/config/routes.php +++ b/config/routes.php @@ -10,7 +10,7 @@ | Statamic adds its own routes to the front-end of your site. You are | free to disable this behavior. | - | More info: https://docs.statamic.com/routing + | More info: https://statamic.dev/routing | */ diff --git a/config/static_caching.php b/config/static_caching.php index 4e7695d9e9..9dc183a00f 100644 --- a/config/static_caching.php +++ b/config/static_caching.php @@ -65,7 +65,7 @@ | flushed from the static cache. See the documentation for more details. | If a custom class is not defined, the default invalidator is used. | - | https://docs.statamic.com/static-caching + | https://statamic.dev/static-caching | */ diff --git a/src/Exceptions/AssetContainerNotFoundException.php b/src/Exceptions/AssetContainerNotFoundException.php index dd666fe2f9..586cd11255 100644 --- a/src/Exceptions/AssetContainerNotFoundException.php +++ b/src/Exceptions/AssetContainerNotFoundException.php @@ -8,6 +8,7 @@ use Facade\IgnitionContracts\ProvidesSolution; use Facade\IgnitionContracts\Solution; use Statamic\Facades\AssetContainer; +use Statamic\Statamic; class AssetContainerNotFoundException extends Exception implements ProvidesSolution { @@ -29,7 +30,7 @@ public function getSolution(): Solution return BaseSolution::create("The {$this->container} asset container was not found.") ->setSolutionDescription($description) ->setDocumentationLinks([ - 'Read the assets guide' => 'https://docs.statamic.com/assets', + 'Read the assets guide' => Statamic::docsUrl('/assets'), ]); } diff --git a/src/Exceptions/CollectionNotFoundException.php b/src/Exceptions/CollectionNotFoundException.php index e08c2e5639..e74e49e265 100644 --- a/src/Exceptions/CollectionNotFoundException.php +++ b/src/Exceptions/CollectionNotFoundException.php @@ -8,6 +8,7 @@ use Facade\IgnitionContracts\ProvidesSolution; use Facade\IgnitionContracts\Solution; use Statamic\Facades\Collection; +use Statamic\Statamic; class CollectionNotFoundException extends Exception implements ProvidesSolution { @@ -29,7 +30,7 @@ public function getSolution(): Solution return BaseSolution::create("The {$this->collection} collection was not found.") ->setSolutionDescription($description) ->setDocumentationLinks([ - 'Read the collections guide' => 'https://docs.statamic.com/collections', + 'Read the collections guide' => Statamic::docsUrl('/collections'), ]); } diff --git a/src/Exceptions/TaxonomyNotFoundException.php b/src/Exceptions/TaxonomyNotFoundException.php index 1dc3c73ac8..4685da20eb 100644 --- a/src/Exceptions/TaxonomyNotFoundException.php +++ b/src/Exceptions/TaxonomyNotFoundException.php @@ -8,6 +8,7 @@ use Facade\IgnitionContracts\ProvidesSolution; use Facade\IgnitionContracts\Solution; use Statamic\Facades\Taxonomy; +use Statamic\Statamic; class TaxonomyNotFoundException extends Exception implements ProvidesSolution { @@ -29,7 +30,7 @@ public function getSolution(): Solution return BaseSolution::create("The {$this->taxonomy} taxonomy was not found.") ->setSolutionDescription($description) ->setDocumentationLinks([ - 'Read the taxonomies guide' => 'https://docs.statamic.com/taxonomies', + 'Read the taxonomies guide' => Statamic::docsUrl('/taxonomies'), ]); } diff --git a/src/Ignition/Solutions/EnableOAuth.php b/src/Ignition/Solutions/EnableOAuth.php index 8d8ff347c4..3d4bc526a4 100644 --- a/src/Ignition/Solutions/EnableOAuth.php +++ b/src/Ignition/Solutions/EnableOAuth.php @@ -3,6 +3,7 @@ namespace Statamic\Ignition\Solutions; use Facade\IgnitionContracts\Solution; +use Statamic\Statamic; class EnableOAuth implements Solution { @@ -19,7 +20,7 @@ public function getSolutionDescription(): string public function getDocumentationLinks(): array { return [ - 'OAuth Guide' => 'https://docs.statamic.com/oauth', + 'OAuth Guide' => Statamic::docsUrl('/oauth'), ]; } } diff --git a/src/Yaml/ParseException.php b/src/Yaml/ParseException.php index 6c8ab1c0f6..caa7efd082 100644 --- a/src/Yaml/ParseException.php +++ b/src/Yaml/ParseException.php @@ -6,6 +6,7 @@ use Facade\IgnitionContracts\BaseSolution; use Facade\IgnitionContracts\ProvidesSolution; use Facade\IgnitionContracts\Solution; +use Statamic\Statamic; class ParseException extends ErrorException implements ProvidesSolution { @@ -16,7 +17,7 @@ public function getSolution(): Solution return BaseSolution::create($title) ->setSolutionDescription($desc) ->setDocumentationLinks([ - 'YAML Primer' => 'https://docs.statamic.com/yaml', + 'YAML Primer' => Statamic::docsUrl('/yaml'), ]); }