Skip to content

Commit 29fde00

Browse files
committed
No need to specify py Sphinx domain, it is default.
1 parent 46cf89c commit 29fde00

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

doc/api/network.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Network
22
=======
33

4-
.. py:currentmodule:: github2.client
4+
.. currentmodule:: github2.client
55

66
.. automethod:: Github.get_network_meta
77

doc/api/object.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Object
22
======
33

4-
.. py:currentmodule:: github2.client
4+
.. currentmodule:: github2.client
55

66
.. automethod:: Github.get_all_blobs
77

doc/api/organizations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Organizations
22
=============
33

4-
.. py:currentmodule:: github2.organizations
4+
.. currentmodule:: github2.organizations
55

66
.. autoclass:: Organization(type)
77

doc/api/teams.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Teams
22
=====
33

4-
.. py:currentmodule:: github2.teams
4+
.. currentmodule:: github2.teams
55

66
.. autoclass:: Team(type)
77

doc/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Read the description of the ``python-github2`` project::
2323
>>> repo = github.repos.show("ask/python-github2")
2424
>>> repo.description
2525

26-
We can take advantage of Python's :py:func:`dir` to explore the package a
26+
We can take advantage of Python's :func:`dir` to explore the package a
2727
little more::
2828

2929
>>> filter(lambda s: not s.startswith("_"), dir(github.users))

github2/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def doc_generator(docstring, attributes):
129129
docstring = docstring or ""
130130

131131
def bullet(title, text):
132-
return """.. py:attribute:: %s\n\n %s\n""" % (title, text)
132+
return """.. attribute:: %s\n\n %s\n""" % (title, text)
133133

134134
b = "\n".join([bullet(attr_name, attr.help)
135135
for attr_name, attr in attributes.items()])

github2/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, username=None, api_token=None, url_prefix=None,
5353
cache=None, proxy_host=None, proxy_port=None):
5454
"""Make an API request.
5555
56-
:see: :py:class:`github2.client.Github`
56+
:see: :class:`github2.client.Github`
5757
"""
5858
self.username = username
5959
self.api_token = api_token

0 commit comments

Comments
 (0)