mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
build: Install the documentation
This commit is contained in:
parent
a42ec3a945
commit
64569252e3
2 changed files with 5 additions and 1 deletions
|
@ -4,8 +4,10 @@ sphinx = find_program(['sphinx-build-3', 'sphinx-build'], required: true)
|
||||||
|
|
||||||
custom_target('docs',
|
custom_target('docs',
|
||||||
command: [sphinx, '-b', 'html', '-c', meson.current_source_dir(), meson.current_source_dir(), '@OUTPUT@'],
|
command: [sphinx, '-b', 'html', '-c', meson.current_source_dir(), meson.current_source_dir(), '@OUTPUT@'],
|
||||||
output: 'en',
|
output: meson.project_name(),
|
||||||
build_always_stale: true,
|
build_always_stale: true,
|
||||||
|
install: true,
|
||||||
|
install_dir: datadir / 'doc',
|
||||||
)
|
)
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -5,6 +5,8 @@ project('blueprint-compiler',
|
||||||
prefix = get_option('prefix')
|
prefix = get_option('prefix')
|
||||||
datadir = join_paths(prefix, get_option('datadir'))
|
datadir = join_paths(prefix, get_option('datadir'))
|
||||||
|
|
||||||
|
subdir('docs')
|
||||||
|
|
||||||
py = import('python').find_installation('python3')
|
py = import('python').find_installation('python3')
|
||||||
|
|
||||||
subdir('docs')
|
subdir('docs')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue