Skip to content
Snippets Groups Projects
Commit 7e7cf5b4 authored by Sean Madsen's avatar Sean Madsen
Browse files

hooks migrate - adding script to produce yaml for navigation menu

parent 3d1a609f
Branches
No related tags found
No related merge requests found
#!/usr/bin/env php
<?php
include __DIR__ . '/hooks-by-category.php';
$root_dir = dirname(dirname(__DIR__));
$hooks_dir = "$root_dir/docs/hooks";
foreach ($hooks_by_category as $category => $hooks) {
echo " - $category hooks:" . PHP_EOL;
foreach ($hooks as $hook) {
echo " - $hook: hooks/$hook.md" . PHP_EOL;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment