From 79b2ded6f215cc09dad26088e4196d692e20b2cf Mon Sep 17 00:00:00 2001 From: David Lechner Date: Wed, 20 Feb 2019 18:49:05 -0600 Subject: [PATCH] doc: fix dobule copyright in generated html docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the html docs already include the copyright symbol and the word "Copyright", so we ended up with "© Copyright Copyright © 2018-2019 The Pybricks MicroPython Authors. " drop it from the _COPYRIGHT setting and add it back into the disclaimer in the latex generated doc --- source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/conf.py b/source/conf.py index 4873ecc..581cb6e 100644 --- a/source/conf.py +++ b/source/conf.py @@ -31,7 +31,7 @@ ON_RTD = os.environ.get('READTHEDOCS', None) == 'True' _LOGO_SMALL = os.environ.get('PYBRICKS_LOGO_SMALL', 'images/pybricks-logo-small.png') _LOGO_LARGE = os.environ.get('PYBRICKS_LOGO_LARGE', 'images/pybricks-logo-large.png') _TITLE = os.environ.get('PYBRICKS_TITLE', 'Pybricks Modules and Examples') -_COPYRIGHT = os.environ.get('PYBRICKS_COPYRIGHT', 'Copyright © 2018-2019 The Pybricks MicroPython Authors') +_COPYRIGHT = os.environ.get('PYBRICKS_COPYRIGHT', '2018-2019 The Pybricks MicroPython Authors') _DISCLAIMER = 'LEGO, the LEGO logo, MINDSTORMS and the MINDSTORMS EV3 logo are trademarks and/or copyrights of the LEGO Group.' @@ -202,7 +202,7 @@ latex_elements = { } \makeatother ''' % { - 'disclaimer': ' '.join((_DISCLAIMER, _COPYRIGHT)), + 'disclaimer': ' '.join((_DISCLAIMER, '©', copyright)), 'logo': os.path.basename(_LOGO_SMALL), },