From aaaafbb5b8ab04b6f1c6e8a7f1c1df2044984470 Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Fri, 3 Jul 2020 11:24:43 -0500 Subject: [PATCH] Fix pdf-doc build by skiping the sample file Tempest pdf doc build includes the sample config file which is large in size and end up with error 'Dimension too large' - https://zuul.opendev.org/t/openstack/build/84d73ec987d04c05acc54b231d33067e/log/sphinx-build-pdf.log#1874 Its happening while adding new config option in https://review.opendev.org/#/c/686073/ which means we are at the edge of pdf build limit. We should not include the sample config file as part of pdf build. Change-Id: I59383505989705d35d86b19b5c1aaafebd2bd307 Closes-Bug: #1886212 --- doc/source/sampleconf.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/source/sampleconf.rst b/doc/source/sampleconf.rst index c2901400de..45164a3140 100644 --- a/doc/source/sampleconf.rst +++ b/doc/source/sampleconf.rst @@ -10,4 +10,6 @@ Tempest with the version of this documentation. The sample configuration can also be viewed in `file form <_static/tempest.conf.sample>`_. -.. literalinclude:: _static/tempest.conf.sample +.. only:: html + + .. literalinclude:: _static/tempest.conf.sample