=== GlobeSign Content Markdown Mirror ===
Contributors: GlobeSign
Tags: llms.txt, markdown, ai seo, geo, crawler
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Makes your WordPress site AI-friendly: generates llms.txt and clean, structured Markdown mirrors of every page and post.

== Description ==

GS Content Mirror generates:

* **`/llms.txt`** — a directory of your site's content in the llms.txt format, linking to every included page/post with a short excerpt.
* **`/llms-full.txt`** (optional) — the same, but with full content inlined in one file.
* **`/index.md`** — a Markdown mirror of your homepage.
* **`/{slug}.md/`** — a Markdown mirror of every included post/page, with real headings, lists, links, bold/italic and tables preserved (not flattened plain text).
* **A Markdown sitemap** at `/gscmm-sitemap.xml` listing every mirror URL.
* A `<link rel="alternate" type="text/markdown">` tag on every live page pointing to its own mirror, so crawlers can discover it directly.
* A `Sitemap:` line automatically added to `robots.txt`.
* A warning in the settings screen if your `robots.txt` currently blocks known AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended, CCBot, etc).

Everything is served virtually (via rewrite rules), so no file-system write access is required and it works on any host.

= How content is extracted =

Rather than dumping raw post content, the plugin fetches the fully-rendered live page and extracts only the main article container (configurable via CSS selectors in Settings), so page-builder chrome — headers, footers, sidebars, calculators, forms, related-post widgets — is automatically excluded from the mirrors.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install the zip via Plugins → Add New → Upload.
2. Activate the plugin.
3. Go to Settings → LLM Content Mirror to choose which post types to include and review the content selectors.
4. Click "Regenerate All" on the Tools tab to build the initial mirrors.

== Frequently Asked Questions ==

= Does this write files to disk? =
No. Everything is served dynamically through WordPress rewrite rules, so it works even on hosts with a read-only filesystem.

= Will this slow my site down? =
No — mirrors are only generated when you save/publish content (via a loopback request) and the output is cached. Regular visitors browsing your normal pages are unaffected.

== Changelog ==

= 1.0.0 =
* Initial release.
