tailwindcss/docs/config.php

24 lines
846 B
PHP
Raw Normal View History

2017-08-02 23:41:31 -04:00
<?php
return [
'baseUrl' => '',
'production' => false,
'collections' => [],
'config' => json_decode(file_get_contents(__DIR__ . '/tailwind.json'), true),
'version' => json_decode(file_get_contents(__DIR__ . '/../package.json'), true)['version'],
2017-10-09 16:25:15 -04:00
'colors' => ['red', 'orange', 'yellow', 'green', 'teal', 'blue', 'indigo', 'purple', 'pink'],
'active' => function ($page, $path) {
$pages = collect(array_wrap($page));
return $pages->contains(function ($page) use ($path) {
return str_contains($page->getPath(), $path);
});
},
2017-11-09 10:41:03 -05:00
'anyChildrenActive' => function ($page, $children) {
return $children->contains(function ($link) use ($page) {
return $page->getPath() == '/docs/'. $link;
});
},
'navigation' => require_once('navigation.php'),
2017-08-02 23:41:31 -04:00
];