Skip to content

Commit 4b9fb5c

Browse files
committed
minor #20881 Update the build script to mention that it does not support Windows (javiereguiluz)
This PR was merged into the 6.4 branch. Discussion ---------- Update the build script to mention that it does not support Windows Fixes #20848. Commits ------- 3a57235 Update the build script to mention that it does not support Windows
2 parents 540df9b + 3a57235 commit 4b9fb5c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

_build/build.php

+7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
->addOption('generate-fjson-files', null, InputOption::VALUE_NONE, 'Use this option to generate docs both in HTML and JSON formats')
1616
->addOption('disable-cache', null, InputOption::VALUE_NONE, 'Use this option to force a full regeneration of all doc contents')
1717
->setCode(function(InputInterface $input, OutputInterface $output) {
18+
// the doc building app doesn't work on Windows
19+
if ('\\' === DIRECTORY_SEPARATOR) {
20+
$output->writeln('<error>ERROR: The application that builds Symfony Docs does not support Windows. You can try using a Linux distribution via WSL (Windows Subsystem for Linux).</error>');
21+
22+
return 1;
23+
}
24+
1825
$io = new SymfonyStyle($input, $output);
1926
$io->text('Building all Symfony Docs...');
2027

0 commit comments

Comments
 (0)