-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: addition of param and result sections #33
Conversation
a17fe11
to
54a9611
Compare
@@ -49,7 +49,7 @@ | |||
|
|||
extras_require = { | |||
'docs': [ | |||
'Sphinx>=1.4.2', | |||
'Sphinx==1.4.4', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep it >=1.4.4
and remove :undoc-members:
that cause problems with autodoc module (anyway we should not have any undocumented functions/attributes).
3d1e4a4
to
99ebeaf
Compare
|
||
Example of bulk indexing: | ||
|
||
.. code-block:: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hachreak if we present python examples in the docstrings they should be runnable via doctests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the tests are passing, it means that it's fine? Or I need to do something more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well the point is that the docstring is not tested so if something changes we will have outdated example.
:param exchange: ``kombu.Exchange`` instance for message queue. | ||
:param queue: ``kombu.Queue`` instance for message queue. | ||
:param routing_key: Routing key for message queue. | ||
:param version_type: Elasticsearch version type. Defaults to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Default: ``external_gte``)
cc7ce56
to
bcef1a6
Compare
If it fails, return the default values. | ||
|
||
:param record: The record object. | ||
:returns: Tuple (index, doc_type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing .
@@ -223,6 +258,8 @@ def _bulk_op(self, record_id_iterator, op_type, index=None, doc_type=None): | |||
:param record_id_iterator: Iterator that yields record UUIDs. | |||
:param op_type: Indexing operation (one of ``index``, ``create``, | |||
``delete`` or ``update``). | |||
:param index: The Elasticsearch index (Default: ``None``). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you move the dot before (Default ...)
?
f17c083
to
82ecec3
Compare
ping @jirikuncar |
|
||
r"""Minimal Flask application example for development. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too many empty lines?
@hachreak we can merge the docs improvements. Can you move the example app to separate PR so we have time to check it well? Thanks |
* Improves documentation. (addresses inveniosoftware#31) Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
ping @jirikuncar |
Signed-off-by: Leonardo Rossi leonardo.r@cern.ch