diff --git a/code/action.php b/code/action.php index 52ebbe6..f6a1d3d 100644 --- a/code/action.php +++ b/code/action.php @@ -12,6 +12,8 @@ It generates: */ $robots = json_decode(file_get_contents('robots.json'), 1); +var_dump($robots); + $robots_txt = null; $robots_table = '| Name | Operator | Respects `robots.txt` | Data use | Visit regularity | Description |'."\n"; @@ -24,5 +26,8 @@ foreach($robots as $robot => $details) { $robots_txt .= 'Disallow: /'; +var_dump($robots_txt); +var_dump($robots_table); + file_put_contents('robots.txt', $robots_txt); file_put_contents('table-of-bot-metrics.md', $robots_table);