diff --git a/src/Generators/HTML.php b/src/Generators/HTML.php index 0fce7c99ae..f81cdf5471 100644 --- a/src/Generators/HTML.php +++ b/src/Generators/HTML.php @@ -152,6 +152,11 @@ protected function printHeader() */ protected function printToc() { + // Only show a TOC when there are two or more docs to display. + if (count($this->docFiles) < 2) { + return; + } + echo '
Documentation contains one standard block and no code comparison.