doc: fix dobule copyright in generated html docs

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
This commit is contained in:
David Lechner
2019-02-20 18:50:51 -06:00
parent 1bca2706af
commit 79b2ded6f2
+2 -2
View File
@@ -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),
},