Skip to content

Commit

Permalink
Merge pull request #542 from hydephp/develop
Browse files Browse the repository at this point in the history
Merge pull request #48 from hydephp/Skip-test-if-the-_docs-directory-is-empty
  • Loading branch information
caendesilva authored Jun 16, 2022
2 parents 32e00f9 + 8c6f074 commit 777e208
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Services/ValidationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public function check_documentation_site_has_an_index_page(Result $result): Resu
return $result->skip('The documentation page feature is disabled in config');
}

if (count(CollectionService::getDocumentationPageList()) === 0) {
return $result->skip('There are no documentation pages');
}

if (file_exists('_docs/index.md')) {
return $result->pass('Your documentation site has an index page');
}
Expand Down

0 comments on commit 777e208

Please sign in to comment.