Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d4879ac

Browse filesBrowse files
committed
Enable local doc building without git installation
1 parent 0fec7f1 commit d4879ac
Copy full SHA for d4879ac

File tree

Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed

‎doc/conf.py

Copy file name to clipboardExpand all lines: doc/conf.py
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,6 @@ def _check_deps():
141141
master_doc = 'contents'
142142

143143
# General substitutions.
144-
from subprocess import check_output
145-
SHA = check_output(['git', 'describe', '--dirty']).decode('utf-8').strip()
146-
147-
html_context = {'sha': SHA}
148-
149144
project = 'Matplotlib'
150145
copyright = ('2002 - 2012 John Hunter, Darren Dale, Eric Firing, '
151146
'Michael Droettboom and the Matplotlib development '
@@ -158,6 +153,7 @@ def _check_deps():
158153
# The short X.Y version.
159154

160155
version = matplotlib.__version__
156+
html_context = {'sha': version}
161157
# The full version, including alpha/beta/rc tags.
162158
release = version
163159

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.