Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 31ddad6

Browse files
committed
Don't include :class: in README
1 parent 27d8ed1 commit 31ddad6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ Example Usage
4141
Notes
4242
~~~~~
4343

44-
* :class:`~discord.ext.slash.Context` emulates
45-
:class:`discord.ext.commands.Context`, but only to a certain extent.
44+
* ``discord.ext.slash.Context`` emulates
45+
``discord.ext.commands.Context``, but only to a certain extent.
4646
Notably, ``ctx.message`` does not exist, because slash commands can be run
4747
completely without the involvement of messages. However, channel and author
4848
information is still available.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from re import match, S
1+
from re import match, S, sub
22
import os
33
from setuptools import setup
44

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

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

0 commit comments

Comments
 (0)