From 20fb9e49a18ffa8805680928dc4926e5e1ffc50d Mon Sep 17 00:00:00 2001 From: Patrick Tudor Date: Thu, 14 Dec 2017 01:09:44 -0800 Subject: [PATCH] patch conf.py for non-ascii in documentation Prevents this error with make html: sphinx-build -b html -d _build/doctrees . _build/html Running Sphinx v1.6.5 making output directory... WARNING: the config value 'copyright' is set to a string with non-ASCII characters; this can lead to Unicode errors occurring. Please use Unicode strings, e.g. u'Content'. WARNING: the config value 'author' is set to a string with non-ASCII characters; this can lead to Unicode errors occurring. Please use Unicode strings, e.g. u'Content'. loading pickled environment... not yet created Configuration error: Invalid latex_documents.author found (might contain non-ASCII chars. Please use u"..." notation instead): ('index', 'LGRToolsetweb-application.tex', 'LGR Toolset web-application Documentation', 'Viag\xc3\xa9nie and Wil Tan', 'manual') make: *** [html] Error 1 --- doc/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index c57c49f6..69f33a01 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -47,8 +47,8 @@ # General information about the project. project = 'LGR Toolset Web Application' -copyright = '2016, Viagénie and Wil Tan' -author = 'Viagénie and Wil Tan' +copyright = u'2016, Viagénie and Wil Tan' +author = u'Viagénie and Wil Tan' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -226,7 +226,7 @@ # author, documentclass [howto, manual, or own class]). latex_documents = [ (master_doc, 'LGRToolsetweb-application.tex', 'LGR Toolset web-application Documentation', - 'Viagénie and Wil Tan', 'manual'), + u'Viagénie and Wil Tan', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of