docs: Fix build setting

The docs need to be set to build_always_stale so you don't need to
delete the directory to rebuild them. This also means we want to disable
build_by_default.
This commit is contained in:
James Westman 2022-10-02 14:42:06 -05:00
parent c998655af6
commit 12c1c7b8d6
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
2 changed files with 4 additions and 3 deletions

View file

@ -3,9 +3,9 @@ if get_option('docs')
sphinx = find_program(['sphinx-build-3', 'sphinx-build'], required: true)
custom_target('docs',
command: [sphinx, '-b', 'html', '-c', meson.current_source_dir(), meson.current_source_dir(), '@OUTPUT@'],
output: 'en',
build_by_default: true
command: [sphinx, '-b', 'html', '-c', meson.current_source_dir(), meson.current_source_dir(), '@OUTPUT@'],
output: 'en',
build_always_stale: true,
)
endif