=== General LLMS.txt Generator ===
Contributors: souravpan
Tags: llms.txt, ai, seo, markdown, generator
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generate a configurable /llms.txt file and optional clean Markdown endpoints for WordPress websites.

== Description ==

General LLMS.txt Generator helps WordPress sites publish an AI-readable llms.txt file at the site root.

The plugin is built for general use across different websites. It can include posts, pages and public custom post types, group posts by category, add Start Here links, include optional policy/contact links, and expose clean Markdown versions of public pages at index.html.md endpoints.

The plugin does not send site content to an external API and does not add public footer credits or backlinks.

== Features ==

* Publishes /llms.txt automatically.
* Optional Markdown endpoints, such as /example-post/index.html.md.
* Settings page under Settings > LLMS.txt Generator.
* Configurable site title, summary and detailed context.
* Configurable post types.
* Configurable links per section.
* Configurable excluded category slugs.
* Editable Start Here and Optional link sections.
* Optional generated-output caching.
* Daily regeneration option.
* Cache purge hooks for common WordPress caching plugins.
* Custom per-post llms.txt description meta box.
* Uninstall cleanup for plugin options and generated cache.

== Installation ==

1. Upload the general-llms-txt-generator folder to /wp-content/plugins/.
2. Activate General LLMS.txt Generator from the WordPress Plugins screen.
3. Go to Settings > LLMS.txt Generator.
4. Configure your site summary, post types, links and feature options.
5. Visit https://example.com/llms.txt to confirm the output loads.

== How to Verify the Plugin ==

After activation, open Settings > LLMS.txt Generator. The settings page shows verification URLs for your own website.

To check the generated llms.txt file, visit:

https://example.com/llms.txt

To check the homepage Markdown endpoint, visit:

https://example.com/index.html.md

To check a post or page Markdown endpoint, open any public post or page URL and add index.html.md after the trailing slash:

https://example.com/example-post/index.html.md

The /llms.txt URL should load as plain text. A working Markdown URL should load clean Markdown content with the page title, canonical URL, author or updated date when available, and the page body.

== Cache Compatibility ==

The plugin clears its internal transient cache when configured content changes. It also attempts to purge common caching plugins when available, including LiteSpeed Cache, WP Rocket, W3 Total Cache, WP Super Cache and SiteGround Optimizer.

Other caching plugins can hook into:

general_llms_txt_cache_purged

== Privacy ==

This plugin does not collect analytics, track visitors or send generated llms.txt content to a third-party service. All generation happens inside WordPress using public site content and the settings saved by the site administrator.

== Frequently Asked Questions ==

= Can I use this on any WordPress website? =

Yes. The plugin is general and can be configured for blogs, business sites, documentation sites, ecommerce stores, learning sites and other WordPress projects.

= Does it create a physical llms.txt file? =

No. It serves /llms.txt through WordPress rewrite rules. This avoids manual file updates when content changes.

= Do I need Markdown endpoints? =

No. You can disable index.html.md endpoints in the settings if you only want /llms.txt.

= How do I access Markdown files for posts and pages? =

Open a public post or page URL and append index.html.md after the trailing slash. For example, https://example.com/my-post/index.html.md.

= Should caching be enabled? =

For most live websites, yes. Enable caching to reduce server work. The plugin clears its cache when relevant content changes.

== Changelog ==

= 1.0.0 =
* Initial general release.
