You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2016/07/30 00:33:42 UTC

[3/5] documentation commit: updated refs/heads/master to 59edec5

COUCHDB-3068 Use local http lexer because Sphinx doesn't like COPY


Project: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/commit/dd591924
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/tree/dd591924
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-documentation/diff/dd591924

Branch: refs/heads/master
Commit: dd5919241d42e4686783d861e959357ae7de3258
Parents: ddc221f
Author: katsel <ka...@users.noreply.github.com>
Authored: Mon Jul 25 11:11:36 2016 +0200
Committer: katsel <ka...@users.noreply.github.com>
Committed: Fri Jul 29 14:23:26 2016 +0200

----------------------------------------------------------------------
 ext/httpdomain.py           | 5 +----
 src/api/document/common.rst | 6 +++---
 2 files changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/dd591924/ext/httpdomain.py
----------------------------------------------------------------------
diff --git a/ext/httpdomain.py b/ext/httpdomain.py
index 5571054..18b960e 100644
--- a/ext/httpdomain.py
+++ b/ext/httpdomain.py
@@ -650,7 +650,4 @@ class HTTPLexer(RegexLexer):
 
 def setup(app):
     app.add_domain(HTTPDomain)
-    try:
-        get_lexer_by_name('http')
-    except ClassNotFound:
-        app.add_lexer('http', HTTPLexer())
+    app.add_lexer('http', HTTPLexer())

http://git-wip-us.apache.org/repos/asf/couchdb-documentation/blob/dd591924/src/api/document/common.rst
----------------------------------------------------------------------
diff --git a/src/api/document/common.rst b/src/api/document/common.rst
index 035d10c..021c557 100644
--- a/src/api/document/common.rst
+++ b/src/api/document/common.rst
@@ -359,7 +359,7 @@
 
     **Request**:
 
-    .. code-block:: none
+    .. code-block:: http
 
         COPY /recipes/SpaghettiWithMeatballs HTTP/1.1
         Accept: application/json
@@ -1131,7 +1131,7 @@ or :header:`If-Match`:
 
 **Request**:
 
-.. code-block:: none
+.. code-block:: http
 
     COPY /recipes/SpaghettiWithMeatballs HTTP/1.1
     Accept: application/json
@@ -1167,7 +1167,7 @@ for the target document by appending the ``rev`` parameter to the
 
 **Request**:
 
-.. code-block:: none
+.. code-block:: http
 
     COPY /recipes/SpaghettiWithMeatballs?rev=8-6f5ad8db0f34af24a6e0984cd1a6cfb9 HTTP/1.1
     Accept: application/json