Skip to content

Commit 7a3136e

Browse files
pks-tgitster
authored andcommitted
meson: install static files for HTML documentation
Now that we generate man pages, articles and user manual with Meson the only thing that is still missing in an installation of HTML documents is a couple of static files. Wire these up to finalize Meson's support for generating HTML documentation. Diffing an installation that uses our Makefile with an installation that uses Meson only surfaces a couple of discepancies now: - Meson doesn't install "everyday.html" and "git-remote-helpers.html". These files are marked as obsolete and don't contain any useful information anymore: they simply point to their modern equivalents. - Meson doesn't install "*.txt" files when asking for HTML docs. I'm not sure why our Makefiles do this in the first place, and it does seem like the resulting installation is fully functional even without those files. Other than that, both layout and file contents are the exact same. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bcf7ede commit 7a3136e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Documentation/meson.build

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,27 @@ foreach manpage, category : manpages
384384
endforeach
385385

386386
if get_option('docs').contains('html')
387+
configure_file(
388+
input: 'docinfo-html.in',
389+
output: 'docinfo.html',
390+
copy: true,
391+
install: true,
392+
install_dir: get_option('datadir') / 'doc/git-doc',
393+
)
394+
395+
configure_file(
396+
input: 'docbook-xsl.css',
397+
output: 'docbook-xsl.css',
398+
copy: true,
399+
install: true,
400+
install_dir: get_option('datadir') / 'doc/git-doc',
401+
)
402+
403+
install_symlink('index.html',
404+
install_dir: get_option('datadir') / 'doc/git-doc',
405+
pointing_to: 'git.html',
406+
)
407+
387408
xsltproc = find_program('xsltproc')
388409

389410
user_manual_xml = custom_target(

0 commit comments

Comments
 (0)