{
  "landingPage": "/",
  "preferredVersions": {
    "php": "8.2",
    "wp": "latest"
  },
  "steps": [
    {
      "step": "login"
    },
    {
      "step": "runPHP",
      "code": "<?php\nrequire_once '/wordpress/wp-load.php';\nrequire_once ABSPATH . 'wp-admin/includes/plugin.php';\nif ( file_exists( WP_PLUGIN_DIR . '/jtzls-dark-mode/jtzls-dark-mode.php' ) ) {\n    activate_plugin( 'jtzls-dark-mode/jtzls-dark-mode.php' );\n}\n\n$existing = get_page_by_path( 'dark-mode-demo', OBJECT, 'page' );\n$content = '<h2>JTZL\\'s Dark Mode Demo</h2><p>Switch your operating system to dark mode and refresh this page.</p><p>This page includes links, media, and standard WordPress blocks to show contrast behavior.</p><figure class=\"wp-block-image\"><img src=\"https://picsum.photos/id/237/1200/700\" alt=\"Demo media should keep original colors\" /></figure><p><a href=\"#\">Example link style</a></p>';\n\n$page_data = array(\n    'post_type' => 'page',\n    'post_title' => 'Dark Mode Demo',\n    'post_name' => 'dark-mode-demo',\n    'post_status' => 'publish',\n    'post_content' => $content\n);\n\nif ( $existing ) {\n    $page_data['ID'] = $existing->ID;\n    $page_id = wp_update_post( $page_data, true );\n} else {\n    $page_id = wp_insert_post( $page_data, true );\n}\n\nif ( ! is_wp_error( $page_id ) ) {\n    update_option( 'show_on_front', 'page' );\n    update_option( 'page_on_front', (int) $page_id );\n}\n\nupdate_option( 'blogname', \"JTZL's Dark Mode Demo\" );\n"
    }
  ]
}
