diff --git a/docs/config.php b/docs/config.php index e029f736b..e58b54842 100644 --- a/docs/config.php +++ b/docs/config.php @@ -5,6 +5,7 @@ return [ 'production' => false, 'collections' => [], 'config' => json_decode(file_get_contents(__DIR__ . '/tailwind.json'), true), + 'version' => json_decode(file_get_contents(__DIR__ . '/../package.json'), true)['version'], 'colors' => ['red', 'orange', 'yellow', 'green', 'teal', 'blue', 'indigo', 'purple', 'pink'], 'active' => function ($page, $path) { $pages = collect(array_wrap($page)); @@ -12,5 +13,5 @@ return [ return $pages->contains(function ($page) use ($path) { return str_contains($page->getPath(), $path); }); - } + }, ]; diff --git a/docs/source/index.blade.php b/docs/source/index.blade.php index 2fb19e87e..87f33864d 100644 --- a/docs/source/index.blade.php +++ b/docs/source/index.blade.php @@ -7,7 +7,8 @@