Skip to content

Commit

Permalink
Don't include :class: in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny2github committed Aug 30, 2021
1 parent 27d8ed1 commit 31ddad6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ Example Usage
Notes
~~~~~

* :class:`~discord.ext.slash.Context` emulates
:class:`discord.ext.commands.Context`, but only to a certain extent.
* ``discord.ext.slash.Context`` emulates
``discord.ext.commands.Context``, but only to a certain extent.
Notably, ``ctx.message`` does not exist, because slash commands can be run
completely without the involvement of messages. However, channel and author
information is still available.
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from re import match, S
from re import match, S, sub
import os
from setuptools import setup

Expand All @@ -9,6 +9,7 @@
longdesc = match('^([\'"])\\1{2}(.*?)\\1{3}', contents, S).group(2)
version = match(r'[\s\S]*__version__[^\'"]+[\'"]([^\'"]+)[\'"]', contents).group(1)
del contents
longdesc = sub(':class:`~?([^`]+)`', r'``\1``', longdesc)

with open(os.path.join(os.path.dirname(__file__),
'README.rst'), 'w') as f2:
Expand Down

0 comments on commit 31ddad6

Please sign in to comment.