Skip to content

Commit

Permalink
Update docs urls
Browse files Browse the repository at this point in the history
Closes #2659
  • Loading branch information
jasonvarga committed Oct 20, 2020
1 parent fda9718 commit 898889c
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion SECURITY.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion config/routes.php
Expand Up @@ -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
|
*/

Expand Down
2 changes: 1 addition & 1 deletion config/static_caching.php
Expand Up @@ -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
|
*/

Expand Down
3 changes: 2 additions & 1 deletion src/Exceptions/AssetContainerNotFoundException.php
Expand Up @@ -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
{
Expand All @@ -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'),
]);
}

Expand Down
3 changes: 2 additions & 1 deletion src/Exceptions/CollectionNotFoundException.php
Expand Up @@ -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
{
Expand All @@ -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'),
]);
}

Expand Down
3 changes: 2 additions & 1 deletion src/Exceptions/TaxonomyNotFoundException.php
Expand Up @@ -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
{
Expand All @@ -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'),
]);
}

Expand Down
3 changes: 2 additions & 1 deletion src/Ignition/Solutions/EnableOAuth.php
Expand Up @@ -3,6 +3,7 @@
namespace Statamic\Ignition\Solutions;

use Facade\IgnitionContracts\Solution;
use Statamic\Statamic;

class EnableOAuth implements Solution
{
Expand All @@ -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'),
];
}
}
3 changes: 2 additions & 1 deletion src/Yaml/ParseException.php
Expand Up @@ -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
{
Expand All @@ -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'),
]);
}

Expand Down

0 comments on commit 898889c

Please sign in to comment.