Skip to content

Commit 0fd58c5

Browse files
committed
Small doc fixes
1 parent 55ef997 commit 0fd58c5

File tree

6 files changed

+21
-22
lines changed

6 files changed

+21
-22
lines changed

CONTRIBUTING.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ Checklist
3535

3636
Once you're done with your work, please follow the steps below:
3737

38-
- Run `black .` to format your code.
39-
- Run `pytest` to test your code.
40-
- Run `make -C docs html` to verify that the docs still work.
41-
- Run `make -C docs spelling` to check your spelling in docstrings.
38+
- Run ``black .`` to format your code.
39+
- Run ``pytest`` to test your code.
40+
- Run ``make -C docs html``, and view the generated docs, to verify that the docs still work.
41+
- Run ``make -C docs spelling`` to check your spelling in docstrings.
4242
- Create a pull request, and point it to ``master`` `here <https://github.com/carpedm20/fbchat/pulls/new>`__.

README.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
``fbchat`` - Facebook Messenger for Python
22
==========================================
33

4-
.. image:: https://badgen.net/pypi/license/fbchat
5-
:target: https://github.com/carpedm20/fbchat/tree/master/LICENSE
6-
:alt: License: BSD 3-Clause
4+
.. image:: https://badgen.net/pypi/v/fbchat
5+
:target: https://pypi.python.org/pypi/fbchat
6+
:alt: Project version
77

88
.. image:: https://badgen.net/badge/python/3.5,3.6,3.7,3.8,pypy?list=|
99
:target: https://pypi.python.org/pypi/fbchat
1010
:alt: Supported python versions: 3.5, 3.6, 3.7, 3.8 and pypy
1111

12-
.. image:: https://badgen.net/pypi/v/fbchat
13-
:target: https://pypi.python.org/pypi/fbchat
14-
:alt: Project version
12+
.. image:: https://badgen.net/pypi/license/fbchat
13+
:target: https://github.com/carpedm20/fbchat/tree/master/LICENSE
14+
:alt: License: BSD 3-Clause
1515

1616
.. image:: https://readthedocs.org/projects/fbchat/badge/?version=stable
1717
:target: https://fbchat.readthedocs.io
@@ -26,7 +26,7 @@
2626
:alt: Code style
2727

2828
A powerful and efficient library to interact with
29-
`Facebook\'s Messenger <https://www.facebook.com/messages/>`__, using just your email and password.
29+
`Facebook's Messenger <https://www.facebook.com/messages/>`__, using just your email and password.
3030

3131
This is *not* an official API, Facebook has that `over here <https://developers.facebook.com/docs/messenger-platform>`__ for chat bots. This library differs by using a normal Facebook account instead.
3232

@@ -36,15 +36,15 @@ This is *not* an official API, Facebook has that `over here <https://developers.
3636
- Fetching all messages, threads and images in threads.
3737
- Searching for messages and threads.
3838
- Creating groups, setting the group emoji, changing nicknames, creating polls, etc.
39-
- Listening for, an reacting to events in real-time.
40-
- Type hints, and a modern codebase (e.g. only Python 3.5 and upwards).
39+
- Listening for, an reacting to messages and other events in real-time.
40+
- Type hints, and it has a modern codebase (e.g. only Python 3.5 and upwards).
4141
- ``async``/``await`` (COMING).
4242

4343
Essentially, everything you need to make an amazing Facebook bot!
4444

4545

46-
Version warning:
47-
----------------
46+
Version Warning
47+
---------------
4848
``v2`` is currently being developed at the ``master`` branch and it's highly unstable. If you want to view the old ``v1``, go `here <https://github.com/carpedm20/fbchat/tree/v1>`__.
4949

5050
Additionally, you can view the project's progress `here <https://github.com/carpedm20/fbchat/projects/2>`__.
@@ -86,7 +86,7 @@ You can also install directly from source, provided you have ``pip>=19.0``:
8686
.. inclusion-marker-installation-end
8787
8888
89-
Example usage
89+
Example Usage
9090
-------------
9191

9292
.. code-block::

docs/api/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.. module:: fbchat
2-
.. _api:
32

43
.. Note: we're using () to hide the __init__ method where relevant
54

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162

163163
# -- Options for autodoc extension ---------------------------------------
164164

165-
autoclass_content = "both"
165+
autoclass_content = "class"
166166
autodoc_member_order = "bysource"
167167
autodoc_default_options = {"members": True}
168168

docs/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The new version broke my application
66

77
``fbchat`` follows `Scemantic Versioning <https://semver.org/>`__ quite rigorously!
88

9-
That means that breaking changes can *only* occur in major versions (e.g. `v1.9.6` -> `v2.0.0`).
9+
That means that breaking changes can *only* occur in major versions (e.g. ``v1.9.6`` -> ``v2.0.0``).
1010

1111
If you find that something breaks, and you didn't update to a new major version, then it is a bug, and we would be grateful if you reported it!
1212

fbchat/_thread.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def send_text(
110110
reply_to_id: Optional message to reply to
111111
112112
Returns:
113-
:ref:`Message ID <intro_message_ids>` of the sent message
113+
The sent message
114114
"""
115115
data = self._to_send_data()
116116
data["action_type"] = "ma-type:user-generated-message"
@@ -139,7 +139,7 @@ def send_emoji(self, emoji: str, size: "_message.EmojiSize") -> str:
139139
size: The size of the emoji
140140
141141
Returns:
142-
:ref:`Message ID <intro_message_ids>` of the sent message
142+
The sent message
143143
"""
144144
data = self._to_send_data()
145145
data["action_type"] = "ma-type:user-generated-message"
@@ -154,7 +154,7 @@ def send_sticker(self, sticker_id: str) -> str:
154154
sticker_id: ID of the sticker to send
155155
156156
Returns:
157-
:ref:`Message ID <intro_message_ids>` of the sent message
157+
The sent message
158158
"""
159159
data = self._to_send_data()
160160
data["action_type"] = "ma-type:user-generated-message"

0 commit comments

Comments
 (0)