Skip to content

Commit

Permalink
patch conf.py for non-ascii in documentation
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ptudor committed Dec 14, 2017
1 parent e379ebe commit 20fb9e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 20fb9e4

Please sign in to comment.