couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [49/50] git commit: updated refs/heads/1781-reorganize-and-improve-docs to 360107b
Date Wed, 21 Aug 2013 16:38:16 GMT
Some markup fixes.


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

Branch: refs/heads/1781-reorganize-and-improve-docs
Commit: 32919feaaa6e73c41a1ea1a2469ae68459af57b9
Parents: 890f132
Author: Alexander Shorin <kxepal@apache.org>
Authored: Sun Aug 18 10:24:35 2013 +0400
Committer: Alexander Shorin <kxepal@apache.org>
Committed: Wed Aug 21 20:29:41 2013 +0400

----------------------------------------------------------------------
 share/doc/src/api/document/attachments.rst | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/32919fea/share/doc/src/api/document/attachments.rst
----------------------------------------------------------------------
diff --git a/share/doc/src/api/document/attachments.rst b/share/doc/src/api/document/attachments.rst
index b3bb538..3f3e8d4 100644
--- a/share/doc/src/api/document/attachments.rst
+++ b/share/doc/src/api/document/attachments.rst
@@ -71,7 +71,7 @@
 
 .. http:get:: /{db}/{docid}/{attname}
 
-  Returns the file attachment  associated with the document.
+  Returns the file attachment associated with the document.
   The raw data of the associated attachment is returned (just as if you were
   accessing a static file. The returned :http:header:`Content-Type`
   will be the same as the content type set when the document attachment
@@ -264,8 +264,8 @@ streams alike. This is available for all attachments inside CouchDB.
 This is just a real quick run through how this looks under the hood.
 Usually, you will have larger binary files to serve from CouchDB, like
 MP3s and videos, but to make things a little more obvious, I use a text
-file here (Note that I use the ``application/octet-stream`` Content-Type
-instead of ``text/plain``).
+file here (Note that I use the :mimetype:`application/octet-stream`
+:http:header`Content-Type` instead of :mimetype:`text/plain`).
 
 .. code-block:: bash
 
@@ -304,7 +304,7 @@ But say we only want the first 13 bytes:
     My hovercraft
 
 HTTP supports many ways to specify single and even multiple byte
-ranges. Read all about it in `RFC 2616`_.
+ranges. Read all about it in :rfc:`2616#section-14.27`.
 
 .. note::
    Databases that have been created with CouchDB 1.0.2 or earlier will
@@ -312,5 +312,3 @@ ranges. Read all about it in `RFC 2616`_.
    algorithm. If you plan to make heavy use of this feature, make sure
    to compact your database with CouchDB |version| to take advantage of a
    better algorithm to find byte ranges.
-
-.. _RFC 2616: http://tools.ietf.org/html/rfc2616#section-14.27


Mime
View raw message