From bc344301a6786c3c850ac084abae0bd02ad0bedc Mon Sep 17 00:00:00 2001 From: Yannoff <20049273+yannoff@users.noreply.github.com> Date: Tue, 17 Feb 2026 17:02:42 +0100 Subject: [PATCH] [doc/builder] Clean tree before generating pages --- build-api-reference | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-api-reference b/build-api-reference index 687d4e4..e2cdba2 100755 --- a/build-api-reference +++ b/build-api-reference @@ -14,6 +14,9 @@ DOC_ROOT=${1:-doc/api} +# Remove all documentation pages +rm -rf ${DOC_ROOT}/* + # Build classes documentation env PHP_VERSION=7.2 phpdoc gen:pages --docs-root ${DOC_ROOT} --template class.md.twig --namespace Yannoff\\Component\\Console --exclude Yannoff\\Component\\Console\\Tests\\Command\\HelloCommand --exclude Yannoff\\Component\\Console\\Internal\\Version