aboutsummaryrefslogtreecommitdiffstats
path: root/docs/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/docs/conf.py b/docs/conf.py
index e1cbc497..d7793b79 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -5,7 +5,7 @@ import subprocess
import sys
sys.path.insert(0, os.path.abspath('..'))
-import netlib.version
+from mitmproxy import version
extensions = [
@@ -47,9 +47,9 @@ author = u'The mitmproxy project'
# built documents.
#
# The short X.Y version.
-version = netlib.version.VERSION
+version = version.VERSION
# The full version, including alpha/beta/rc tags.
-release = netlib.version.VERSION
+release = version.VERSION
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@@ -231,10 +231,7 @@ def linkcode_resolve(domain, info):
_, line = inspect.getsourcelines(obj)
except (TypeError, IOError):
return None
- if spath.rfind("netlib") > -1:
- off = spath.rfind("netlib")
- mpath = spath[off:]
- elif spath.rfind("mitmproxy") > -1:
+ if spath.rfind("mitmproxy") > -1:
off = spath.rfind("mitmproxy")
mpath = spath[off:]
else: