Skip to content

Commit 3a57235

Browse files
committedApr 14, 2025·
Update the build script to mention that it does not support Windows
1 parent 8c3c7ee commit 3a57235

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)
Please sign in to comment.