Skip to content

Commit

Permalink
Update API docs for v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed May 25, 2017
1 parent 746846c commit 1ac66bc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
34 changes: 29 additions & 5 deletions docs/api/gitlab.rst
Expand Up @@ -11,18 +11,34 @@ Module contents
:exclude-members: Hook, UserProject, Group, Issue, Team, User,
all_projects, owned_projects, search_projects

gitlab.exceptions module
gitlab.base
-----------

.. automodule:: gitlab.base
:members:
:undoc-members:
:show-inheritance:

gitlab.v3.objects module
------------------------

.. automodule:: gitlab.exceptions
.. automodule:: gitlab.v3.objects
:members:
:undoc-members:
:show-inheritance:
:exclude-members: Branch, Commit, Content, Event, File, Hook, Issue, Key,
Label, Member, MergeRequest, Milestone, Note, Snippet,
Tag, canGet, canList, canUpdate, canCreate, canDelete,
requiredUrlAttrs, requiredListAttrs, optionalListAttrs,
optionalGetAttrs, requiredGetAttrs, requiredDeleteAttrs,
requiredCreateAttrs, optionalCreateAttrs,
requiredUpdateAttrs, optionalUpdateAttrs, getRequiresId,
shortPrintAttr, idAttr

gitlab.objects module
---------------------
gitlab.v4.objects module
------------------------

.. automodule:: gitlab.objects
.. automodule:: gitlab.v4.objects
:members:
:undoc-members:
:show-inheritance:
Expand All @@ -34,3 +50,11 @@ gitlab.objects module
requiredCreateAttrs, optionalCreateAttrs,
requiredUpdateAttrs, optionalUpdateAttrs, getRequiresId,
shortPrintAttr, idAttr

gitlab.exceptions module
------------------------

.. automodule:: gitlab.exceptions
:members:
:undoc-members:
:show-inheritance:
4 changes: 4 additions & 0 deletions docs/ext/docstrings.py
@@ -1,3 +1,4 @@
import inspect
import itertools
import os

Expand All @@ -9,7 +10,10 @@


def classref(value, short=True):
if not inspect.isclass(value):
return ':class:%s' % value
tilde = '~' if short else ''
string = '%s.%s' % (value.__module__, value.__name__)
return ':class:`%sgitlab.objects.%s`' % (tilde, value.__name__)


Expand Down

0 comments on commit 1ac66bc

Please sign in to comment.