From 970cf539f2642ed299c35f5df0434fc187702d13 Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 19 Jul 2021 14:07:21 +0100 Subject: Update pshinx versions in docs/reqs.txt --- doc/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/requirements.txt b/doc/requirements.txt index 98e5c06a..b0c8f18d 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,2 +1,2 @@ -sphinx<2.0 +sphinx==4.1.1 sphinx_rtd_theme -- cgit v1.2.1 From 0a812599385d424a48dde80b56b9978777664550 Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 19 Jul 2021 14:09:22 +0100 Subject: Update conf.py rmv unicode prefixes - sphinx 4+ wont accept py2 code --- doc/source/conf.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/source/conf.py b/doc/source/conf.py index 0ec64179..286058fd 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -14,7 +14,8 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +import sys +import os # If your extensions are in another directory, add it here. If the directory # is relative to the documentation root, use os.path.abspath to make it @@ -50,7 +51,7 @@ copyright = 'Copyright (C) 2008, 2009 Michael Trier and contributors, 2010-2015 # built documents. # # The short X.Y version. -with open(os.path.join(os.path.dirname(__file__),"..", "..", 'VERSION')) as fd: +with open(os.path.join(os.path.dirname(__file__), "..", "..", 'VERSION')) as fd: VERSION = fd.readline().strip() version = VERSION # The full version, including alpha/beta/rc tags. @@ -170,8 +171,8 @@ htmlhelp_basename = 'gitpythondoc' # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, document class [howto/manual]). latex_documents = [ - ('index', 'GitPython.tex', ur'GitPython Documentation', - ur'Michael Trier', 'manual'), + ('index', 'GitPython.tex', r'GitPython Documentation', + r'Michael Trier', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of -- cgit v1.2.1 From 9f906b36533f041df80e2bdf3e40a644574f20ff Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 19 Jul 2021 14:40:10 +0100 Subject: Add sphinx-autodoc-typehints --- doc/requirements.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') diff --git a/doc/requirements.txt b/doc/requirements.txt index b0c8f18d..20598a39 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,2 +1,3 @@ sphinx==4.1.1 sphinx_rtd_theme +sphinx-autodoc-typehints -- cgit v1.2.1