Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions generator/src/Commands/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ protected function execute(
$fileCreator->generateRectorFile($res->methods, "$genDir/rector-migrate.php");
}

// always reset docs to master, even if the most-recently-supported-version
// in $versions is pinned to a specific commit - this is so that at the end
// of a `generate` run, we don't have docs stuck in the past
$this->checkout(DocPage::referenceDir(), "master");

foreach (\array_keys($modules) as $moduleName) {
$fileCreator->generateVersionSplitters($moduleName, FileCreator::getSafeRootDir() . "/generated/", \array_keys($versions));
$fileCreator->createExceptionFile((string) $moduleName);
Expand Down
Loading