1 From 8f2b5fe74d34ba8bb20a362a4daa6cc5a99a2010 Mon Sep 17 00:00:00 2001
2 From: Jelle van der Waa <jelle@vdwaa.nl>
3 Date: Fri, 29 May 2020 23:19:16 +0200
4 Subject: [PATCH] Don't install sphinx cache files
6 When building documentation sphinx creates cached files in the .doctrees
7 directory and aren't required for viewing documentation only for
8 building. As added benefit this makes fmt reprodcubile as the cached
9 files are different when the build environment is varied.
11 doc/CMakeLists.txt | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
14 diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
15 index f3dae606e..108aa71e8 100644
16 --- a/doc/CMakeLists.txt
17 +++ b/doc/CMakeLists.txt
18 @@ -9,4 +9,5 @@ add_custom_target(doc
19 SOURCES api.rst syntax.rst usage.rst build.py conf.py _templates/layout.html)
21 install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/
22 - DESTINATION share/doc/fmt OPTIONAL)
23 + DESTINATION share/doc/fmt OPTIONAL
24 + PATTERN ".doctrees" EXCLUDE)