Skip to content
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

Merged
merged 1 commit into from
Jul 29, 2016

Conversation

hachreak
Copy link
Member

Signed-off-by: Leonardo Rossi leonardo.r@cern.ch

"""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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

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

@hachreak hachreak force-pushed the 95_docs branch 3 times, most recently from 247d30e to 1c48fe2 Compare July 22, 2016 13:26
@hachreak hachreak added this to the I3B-API-Docs milestone Jul 22, 2016
@hachreak hachreak changed the title WIP docs: improve documentation docs: improve documentation Jul 22, 2016
@hachreak hachreak self-assigned this Jul 22, 2016
@hachreak hachreak force-pushed the 95_docs branch 3 times, most recently from cf0c16d to 2a06ff2 Compare July 25, 2016 09:06
@hachreak
Copy link
Member Author

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
any clue where is the problem? :)

@jirikuncar
Copy link
Member

jirikuncar commented Jul 25, 2016

@hachreak you need to configure intersphinx in docs/conf.py. (as you have probably done)

intersphinx_mapping = {
'https://docs.python.org/': None,
'invenio-pidstore': ('http://pythonhosted.org/invenio-pidstore', None),
'invenio-records': ('http://pythonhosted.org/invenio-records', None),
Copy link
Member

@jirikuncar jirikuncar Jul 25, 2016

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@jirikuncar
Copy link
Member

jirikuncar commented Jul 25, 2016

@hachreak what about docs: addition of param and result sections (also in other docs related PRs to follow no-verbs-in-title-rule)?

@hachreak
Copy link
Member Author

any clue where is the problem? :)

@hachreak you need to configure intersphinx in docs/conf.py. (as you have probably done)

I configured also invenio-records-files, but still not working..

@hachreak hachreak changed the title docs: improve documentation docs: addition of param and result sections\ Jul 26, 2016
@hachreak hachreak changed the title docs: addition of param and result sections\ docs: addition of param and result sections Jul 26, 2016
"""Update index."""
"""Decorator to update index.

:param method: Function wrapped. (Default: None).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

. (Default: ``None``)
. (Default: ``'draft'``)
  1. After dot then I would not add another one after brackets.
  2. 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.
Copy link
Member

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`.

@hachreak
Copy link
Member Author

blocked by: inveniosoftware/invenio-records-rest#105

@hachreak hachreak force-pushed the 95_docs branch 4 times, most recently from 67f9aad to 2d5ee11 Compare July 28, 2016 13:46
: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',)).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Default: ``('_deposit', )``).

@hachreak hachreak force-pushed the 95_docs branch 3 times, most recently from bc7ab90 to bea0757 Compare July 29, 2016 09:46
* Improves documentation. (addresses inveniosoftware#95)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
@hachreak
Copy link
Member Author

ping @jirikuncar

@jirikuncar jirikuncar merged commit 180b50f into inveniosoftware:master Jul 29, 2016
@hachreak hachreak deleted the 95_docs branch September 27, 2016 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants