From 298ad57c58c3ff77aff0584b4214af2f71636132 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 15 Oct 2025 18:08:23 +0100 Subject: [PATCH 1/5] Update .gitignore --- .gitignore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index e43b0f9..6dbcbed 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,8 @@ +.idea +.vscode +/vendor +node_modules .DS_Store +.phpunit.result.cache +.phpunit.cache +composer.lock \ No newline at end of file From 7a65a4d0dfc4cad5fc40be7bcc23f183c0e3732b Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 15 Oct 2025 18:08:46 +0100 Subject: [PATCH 2/5] Remove. This addon doesn't have any tests. --- composer.json | 8 -------- 1 file changed, 8 deletions(-) diff --git a/composer.json b/composer.json index a51ad5b..ad14069 100644 --- a/composer.json +++ b/composer.json @@ -5,17 +5,9 @@ "Statamic\\Wikilinks\\": "src" } }, - "autoload-dev": { - "psr-4": { - "Statamic\\Wikilinks\\Tests\\": "tests" - } - }, "require": { "statamic/cms": "^5.0" }, - "require-dev": { - "orchestra/testbench": "^9.0" - }, "config": { "allow-plugins": { "pixelfear/composer-dist-plugin": true From 0e8125945038a45a3b83fe36f52ed13f3821f845 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 15 Oct 2025 18:10:10 +0100 Subject: [PATCH 3/5] Simplify `ServiceProvider.php` --- src/ServiceProvider.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index 8bfaabe..c1a02bd 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -7,11 +7,6 @@ class ServiceProvider extends AddonServiceProvider { - public function bootAddon() - { - // - } - protected $modifiers = [ WikilinksModifier::class, ]; From 0ff9ce21514ecc28b6f7d2cd4a3531257062f7b7 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 15 Oct 2025 18:10:23 +0100 Subject: [PATCH 4/5] Add v6 to version constraint --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ad14069..b7bf3de 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ } }, "require": { - "statamic/cms": "^5.0" + "statamic/cms": "^5.0 || ^6.0" }, "config": { "allow-plugins": { From 2dde406cde07beb33f85dee1c4839985cace8b03 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 15 Oct 2025 18:10:29 +0100 Subject: [PATCH 5/5] Works with v5 and v6 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 52675e7..f99a05d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Wikilinks ![Statamic v5](https://img.shields.io/badge/statamic-v5-blue.svg?style=flat-square) -Wikilinks is an add-on for Statamic 5.x that enables Wiki style [links] in the content of your site. +Wikilinks is an add-on for Statamic that enables Wiki style [links] in the content of your site. It provides a simple modifier that seeks out any content wrapped in [braces] and automatically links it to other entries or pages with the same title (or other field of your choosing).