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 %}