{
	"$schema": "https://playground.wordpress.net/blueprint-schema.json",
	"meta": {
		"title": "Static Site Exporter demo",
		"description": "A small sample blog to export with Tools > Export to Jekyll. WordPress.org adds the step that installs the plugin itself; script/playground mounts your local copy instead.",
		"author": "benbalter"
	},
	"landingPage": "/wp-admin/tools.php",
	"preferredVersions": {
		"php": "8.3",
		"wp": "latest"
	},
	"features": {
		"networking": true
	},
	"login": true,
	"steps": [
		{
			"step": "setSiteOptions",
			"options": {
				"blogname": "Field Notes",
				"blogdescription": "A sample blog to export to Markdown",
				"permalink_structure": "/%year%/%monthnum%/%postname%/"
			}
		},
		{
			"step": "runPHP",
			"code": "<?php\nrequire '/wordpress/wp-load.php';\n\n// Replace the default post, sample page, and Privacy Policy draft with\n// content that shows off the export.\nforeach ( array( 1, 2, 3 ) as $default_id ) {\n\twp_delete_post( $default_id, true );\n}\n\n$news   = wp_insert_term( 'News', 'category' );\n$guides = wp_insert_term( 'Guides', 'category' );\n\n$posts = array(\n\tarray(\n\t\t'post_title'    => 'Moving this blog to a static site',\n\t\t'post_date'     => '2026-10-02 09:00:00',\n\t\t'post_category' => array( $news['term_id'] ),\n\t\t'tags_input'    => array( 'jekyll', 'migration' ),\n\t\t'post_excerpt'  => 'Why these posts are about to become Markdown files.',\n\t\t'post_content'  => '<p>This blog is moving to a <strong>static site</strong>. Every post becomes a Markdown file with YAML front matter, so it can live in Git next to the code.</p><h2>What changes</h2><ul><li>Pages load faster</li><li>There is no database to patch</li><li>Old links keep working</li></ul>',\n\t),\n\tarray(\n\t\t'post_title'    => 'Exporting only one category',\n\t\t'post_date'     => '2026-10-15 14:30:00',\n\t\t'post_category' => array( $guides['term_id'] ),\n\t\t'tags_input'    => array( 'wp-cli' ),\n\t\t'post_content'  => '<p>With WP-CLI, you can export a single section of a site:</p><pre><code>wp jekyll-export --category=guides --output=guides.zip</code></pre><p>Add <code>--post_status=publish</code> to leave out drafts.</p>',\n\t),\n\tarray(\n\t\t'post_title'    => 'Hello, Markdown',\n\t\t'post_date'     => '2026-11-05 08:00:00',\n\t\t'post_category' => array( $news['term_id'] ),\n\t\t'tags_input'    => array( 'markdown' ),\n\t\t'post_content'  => '<blockquote><p>Write once, publish anywhere.</p></blockquote><p>Links like <a href=\"https://www.markdownguide.org/\">this one</a>, <em>emphasis</em>, and tables all convert to Markdown.</p><table><thead><tr><th>WordPress</th><th>Markdown</th></tr></thead><tbody><tr><td>&lt;strong&gt;</td><td>**bold**</td></tr></tbody></table>',\n\t),\n);\n\nforeach ( $posts as $post ) {\n\twp_insert_post( array_merge( array( 'post_status' => 'publish', 'post_author' => 1 ), $post ) );\n}\n\nwp_insert_post(\n\tarray(\n\t\t'post_title'   => 'Ideas for next month',\n\t\t'post_status'  => 'draft',\n\t\t'post_author'  => 1,\n\t\t'post_content' => '<p>Drafts are exported too, into <code>_drafts/</code>.</p>',\n\t)\n);\n\nwp_insert_post(\n\tarray(\n\t\t'post_type'    => 'page',\n\t\t'post_title'   => 'About',\n\t\t'post_name'    => 'about',\n\t\t'post_status'  => 'publish',\n\t\t'post_author'  => 1,\n\t\t'post_content' => '<p>Field Notes is a sample site for trying Static Site Exporter. Choose <strong>Tools &gt; Export to Jekyll</strong> to download it as Markdown.</p>',\n\t)\n);\n"
		}
	]
}
