From 4309cf70d7bc28bfefa0514d24eabde7aeb617f2 Mon Sep 17 00:00:00 2001 From: John Bakker Date: Fri, 16 Jul 2021 12:21:07 +0200 Subject: [PATCH] Adds the description in the collection to the index page --- Command/GenerateCommand.php | 1 + templates/index.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Command/GenerateCommand.php b/Command/GenerateCommand.php index 523c199..463973f 100755 --- a/Command/GenerateCommand.php +++ b/Command/GenerateCommand.php @@ -69,6 +69,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $meta = [ 'projectName' => $collection->data()->info->name, + 'projectDescription' => $collection->data()->info->description, 'highlightTheme' => $highlightTheme ]; diff --git a/templates/index.html b/templates/index.html index 86e9392..22b9678 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,7 +16,7 @@ {{ include('sidebar.html', {current_folder: request.folder, current_request: current_request} ) }}

{{meta.projectName}} API Documentation

- + {% if meta.projectDescription is defined %}

{{meta.projectDescription | markdown}}{% endif %}