From e9bc4bf450bc07ddecbedf44d825f97dab786a78 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 20 Feb 2016 16:39:39 -0800 Subject: [PATCH] rename to X-Ray --- README.md | 14 +++++++------- controllers/Main.php | 2 +- controllers/Parse.php | 2 +- lib/Formats/Mf2.php | 4 ++-- views/index.php | 33 +++++++++++++++++++++++++++++++-- views/layout.php | 9 +++++---- 6 files changed, 47 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 7ddcddc..3aa629a 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,15 @@ -Percolator -========== +XRay +==== ## Discovering Content The contents of the URL is checked in the following order: -* A supported silo URL +* A supported silo URL (coming soon) * h-entry, h-event, h-card -* OEmbed -* OGP +* OEmbed (coming soon) +* OGP (coming soon) ## API @@ -20,7 +20,7 @@ To parse a page and return structured data for the contents of the page, simply GET /parse?url=https://aaronparecki.com/2016/01/16/11/ ``` -To conditionally parse the page after first checking if it contains a link to a target URL, also include the target URL as a parameter. This is useful if using Percolator to verify an incoming webmention. +To conditionally parse the page after first checking if it contains a link to a target URL, also include the target URL as a parameter. This is useful if using XRay to verify an incoming webmention. ``` GET /parse?url=https://aaronparecki.com/2016/01/16/11/&target=http://poetica.com @@ -88,7 +88,7 @@ The author will always be set in the entry if available. The service follows the All URLs provided in the output are absolute URLs. If the source document contains a relative URL, it will be resolved first. -Replies, likes, reposts, etc. of this post will be included if they are listed on the page. +In a future version, replies, likes, reposts, etc. of this post will be included if they are listed on the page. ```json { diff --git a/controllers/Main.php b/controllers/Main.php index 2228b2d..6f78ba2 100644 --- a/controllers/Main.php +++ b/controllers/Main.php @@ -6,7 +6,7 @@ class Main { public function index(Request $request, Response $response) { $response->setContent(view('index', [ - 'title' => 'Percolator' + 'title' => 'X-Ray' ])); return $response; } diff --git a/controllers/Parse.php b/controllers/Parse.php index 44470c7..20498fe 100644 --- a/controllers/Parse.php +++ b/controllers/Parse.php @@ -2,7 +2,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Percolator\Formats; +use XRay\Formats; class Parse { diff --git a/lib/Formats/Mf2.php b/lib/Formats/Mf2.php index 34cb4ac..4d308c5 100644 --- a/lib/Formats/Mf2.php +++ b/lib/Formats/Mf2.php @@ -1,5 +1,5 @@ layout('layout', ['title' => $title]); ?> -