-
Notifications
You must be signed in to change notification settings - Fork 47
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 #98
Conversation
"""Check that deposit has a defined status (default: draft). | ||
|
||
:param method: Function executed if record has a defined status. | ||
:params status: Defined status to check. |
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.
I'd use param
instead of params
.
http://www.sphinx-doc.org/en/stable/domains.html#info-field-lists
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.
ups.. you are right... I'll change all XD
247d30e
to
1c48fe2
Compare
cf0c16d
to
2a06ff2
Compare
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 244, in main
app.build(opts.force_all, filenames)
File "/usr/local/lib/python2.7/site-packages/sphinx/application.py", line 297, in build
self.builder.build_update()
File "/usr/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 251, in build_update
'out of date' % len(to_build))
File "/usr/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 322, in build
self.write(docnames, list(updated_docnames), method)
File "/usr/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 360, in write
self._write_serial(sorted(docnames), warnings)
File "/usr/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 370, in _write_serial
self.warn(*warning, **kwargs)
File "/usr/local/lib/python2.7/site-packages/sphinx/application.py", line 360, in warn
raise SphinxWarning(warntext)
SphinxWarning: :1: WARNING: py:class reference target not found: Record @jirikuncar |
@hachreak you need to configure intersphinx in |
intersphinx_mapping = { | ||
'https://docs.python.org/': None, | ||
'invenio-pidstore': ('http://pythonhosted.org/invenio-pidstore', None), | ||
'invenio-records': ('http://pythonhosted.org/invenio-records', 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.
You probably also need invenio-records-files
.
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.
done
@hachreak what about |
I configured also |
"""Update index.""" | ||
"""Decorator to update index. | ||
|
||
:param method: Function wrapped. (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.
. (Default: ``None``)
. (Default: ``'draft'``)
- After dot then I would not add another one after brackets.
- Inside param description (before last dot).
Initialize the CLI and all UI endpoints. | ||
Connect all signals if `DEPOSIT_REGISTER_SIGNALS` is True. | ||
|
||
:param app: The Flask application. |
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.
What about?
An instance of :class:`~flask.app.Flask`.
67ee421
to
ca1dca9
Compare
blocked by: inveniosoftware/invenio-records-rest#105 |
67f9aad
to
2d5ee11
Compare
:param method: Function to execute. (Default: ``None``) | ||
:param result: If `True` returns the result of method execution, | ||
otherwise `self`. (Default: ``True``) | ||
:param fields: List of fields to preserve (default: ('_deposit',)). |
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: ``('_deposit', )``).
bc7ab90
to
bea0757
Compare
* Improves documentation. (addresses inveniosoftware#95) Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
ping @jirikuncar |
Signed-off-by: Leonardo Rossi leonardo.r@cern.ch