summaryrefslogtreecommitdiffstats
path: root/man/meson.build
diff options
context:
space:
mode:
authorAbderrahim Kitouni <abderrahim.kitouni@codethink.co.uk>2023-10-03 21:00:19 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-10-09 12:16:20 +0200
commit3c1f396f694069a71699ecc9a53806d531a25748 (patch)
treec7c3d2a69c553b8a763883551dd2aadafbbec554 /man/meson.build
parentMerge pull request #29495 from yuwata/network-manager-state-file (diff)
downloadsystemd-3c1f396f694069a71699ecc9a53806d531a25748.tar.xz
systemd-3c1f396f694069a71699ecc9a53806d531a25748.zip
man: support multiple versions of the documentation on the website
This changes the doc-sync meson target from a simple rsync command to a script that: * puts the documentation in a subdirectory according to the version * injects a bit of javascript to add a drop-down to switch between versions * updates an index.json file with the newly uploaded version * keeps the latest/ directory up to date with the latest version * supports a --no-latest switch to be used when uploading older versions
Diffstat (limited to 'man/meson.build')
-rw-r--r--man/meson.build9
1 files changed, 3 insertions, 6 deletions
diff --git a/man/meson.build b/man/meson.build
index e6798b7d4e..e4f2905d60 100644
--- a/man/meson.build
+++ b/man/meson.build
@@ -190,12 +190,9 @@ if rsync.found()
run_target(
'doc-sync',
depends : man_pages + html_pages,
- command : [rsync, '-rlv',
- '--delete-excluded',
- '--include=man',
- '--include=*.html',
- '--exclude=*',
- '--omit-dir-times',
+ command : [sync_docs_py,
+ '--version',
+ '@0@'.format(meson.project_version()),
meson.current_build_dir(),
get_option('www-target')])
endif