Skip to content

Commit cc561e8

Browse files
committed
always have cache disabled
1 parent 5439a0c commit cc561e8

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

_docs_build/build.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
(new Application('Symfony Docs Builder', '1.0'))
2424
->register('build-docs')
2525
->addOption('generate-fjson-files', null, InputOption::VALUE_NONE, 'Use this option to generate docs both in HTML and JSON formats')
26-
->addOption('disable-cache', null, InputOption::VALUE_NONE, 'Use this option to force a full regeneration of all doc contents')
2726
->setCode(function (InputInterface $input, OutputInterface $output) {
2827
$io = new SymfonyStyle($input, $output);
2928
$io->text('Building all Symfony Docs...');
@@ -36,6 +35,7 @@
3635
->setImagesDir(__DIR__.'/output/_images')
3736
->setImagesPublicPrefix('_images')
3837
->setTheme('rtd')
38+
->diableBuildCache()
3939
;
4040

4141
$buildConfig->setExcludedPaths(['.github/', '_build/']);
@@ -44,14 +44,7 @@
4444
$buildConfig->disableJsonFileGeneration();
4545
}
4646

47-
if ($isCacheDisabled = $input->getOption('disable-cache')) {
48-
$buildConfig->disableBuildCache();
49-
}
50-
51-
$io->comment(sprintf('cache: %s / output file type(s): %s', $isCacheDisabled ? 'disabled' : 'enabled', $generateJsonFiles ? 'HTML and JSON' : 'HTML'));
52-
if (!$isCacheDisabled) {
53-
$io->comment('Tip: add the --disable-cache option to this command to force the re-build of all docs.');
54-
}
47+
$io->comment(sprintf('cache: disabled / output file type(s): %s', $generateJsonFiles ? 'HTML and JSON' : 'HTML'));
5548

5649
$result = (new DocBuilder())->build($buildConfig);
5750

0 commit comments

Comments
 (0)