doc: don't ship the .doctree files with the documentation
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 25 Jun 2020 23:27:47 +0000 (09:27 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 25 Jun 2020 23:28:50 +0000 (09:28 +1000)
They're build artifacts and not needed for the actual documentation. Tell
sphinx-build to generate those files in a custom directory that's not part
of the documentation.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
doc/user/meson.build

index c5dc32a4d143a675b7e4e6a90e7825bdd570df55..733e1b90b10b2bcead56c4e0e21948ae47d0ffc7 100644 (file)
@@ -194,5 +194,6 @@ custom_target('sphinx',
              input : [ sphinx_conf_py, git_version_page ] + src_sphinx + dst_404s,
              output : [ sphinx_output_dir ],
              command : [ sphinx, '-q', '-b', 'html',
+                         '-d', join_paths(meson.current_build_dir(), 'doctrees'),
                          meson.current_build_dir(), sphinx_output_dir],
              build_by_default : true)