python-sphinxcontrib-httpdo.../0002-httpdomain-Add-missing-call-to-add_domain.patch
2017-07-24 11:47:00 +10:00

26 lines
735 B
Diff

From 482c93aa46b79d0d0d2d0386c71288ec5e666a0b Mon Sep 17 00:00:00 2001
From: Dave Shawley <daveshawley@gmail.com>
Date: Tue, 27 Jun 2017 08:01:21 -0400
Subject: [PATCH 2/4] httpdomain: Add missing call to add_domain.
---
httpdomain/sphinxcontrib/httpdomain.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/httpdomain/sphinxcontrib/httpdomain.py b/httpdomain/sphinxcontrib/httpdomain.py
index 9812671..6a25e2e 100644
--- a/httpdomain/sphinxcontrib/httpdomain.py
+++ b/httpdomain/sphinxcontrib/httpdomain.py
@@ -763,6 +763,8 @@ def setup(app):
if HTTPDomain.name in app.domains:
return
+ app.add_domain(HTTPDomain)
+
try:
get_lexer_by_name('http')
except ClassNotFound:
--
2.9.4