build: Install the documentation

This commit is contained in:
James Westman 2024-11-15 19:45:36 -06:00
parent a42ec3a945
commit 64569252e3
2 changed files with 5 additions and 1 deletions

View file

@ -4,8 +4,10 @@ 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',
output: meson.project_name(),
build_always_stale: true,
install: true,
install_dir: datadir / 'doc',
)
endif

View file

@ -5,6 +5,8 @@ project('blueprint-compiler',
prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
subdir('docs')
py = import('python').find_installation('python3')
subdir('docs')