=== Legible — AI-Readable Content ===
Contributors: legible
Tags: ai, llm, markdown, seo, content, chatgpt, claude, perplexity
Requires at least: 5.9
Tested up to: 6.7
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Make your WordPress content readable by AI agents with clean Markdown endpoints powered by Cloudflare Workers.

== Description ==

AI systems like ChatGPT, Claude, and Perplexity struggle to read your WordPress site. Legible fixes that — instantly, with zero migration.

After a one-minute setup, Legible:

* Serves your content as clean Markdown from Cloudflare's global edge
* Generates an `llms.txt` index file so AI agents can discover your content
* Creates an AI sitemap (`ai-sitemap.json`) with structured metadata
* Exposes per-article content endpoints that LLMs can read and cite
* Notifies Legible automatically when you publish or update content

**How it works**

1. Install this plugin and get an API key from [getlegible.com](https://getlegible.com)
2. Paste the API key into the Legible settings page (Settings → Legible)
3. Your content is immediately available via Cloudflare's edge — no server load, no caching config

The Legible Worker runs on Cloudflare and handles all AI traffic. Your WordPress server only receives requests from the Legible backend to sync content.

**Why Legible?**

* **Zero performance impact**: AI requests never hit your server
* **Privacy-respecting**: You control exactly which content is exposed and under what license
* **Standards-based**: Implements `llms.txt` as defined by the community
* **Real analytics**: See which AI systems are reading your content and what they're reading

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/legible/` or install directly via WordPress Admin
2. Activate the plugin through the **Plugins** screen
3. Go to **Settings → Legible**
4. Follow the link to [getlegible.com](https://getlegible.com) to create your account and get an API key
5. Paste the API key and click **Connect**

That's it. Your content will be available at `https://yourdomain.com/llms.txt` within minutes.

== Frequently Asked Questions ==

= Does this plugin slow down my site? =

No. Content is served from Cloudflare's global edge network, not your WordPress server. AI agents will never directly access your site.

= Which content does Legible expose? =

By default, posts and pages with `publish` status. You can configure which post types to include in the settings page.

= Does it work with Gutenberg and the Classic Editor? =

Yes. The plugin handles both Gutenberg blocks and Classic Editor HTML, converting them to clean Markdown.

= Can I control what AI systems can do with my content? =

Yes. On the Legible dashboard you can set per-site AI permissions: allow/disallow training, summarisation, and citation. These are embedded in your `llms.txt` file.

= Is my content safe? =

Legible only fetches content that is already publicly accessible on your site. It acts as a structured cache, not a data broker. You can disconnect and remove all data at any time.

= How is Legible different from just having a REST API? =

WordPress's default REST API exposes your content as JSON with lots of noise. Legible converts your content to clean Markdown, generates proper index files, and serves everything from Cloudflare's edge with the right headers for AI crawlers.

== Screenshots ==

1. Legible settings page showing connection status and endpoint URLs
2. Dashboard on getlegible.com with analytics for AI traffic

== Changelog ==

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release.
