Skip to content

Commit 4888b59

Browse files
committed
Add version and release info to docs
1 parent 79decae commit 4888b59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515

1616
sys.path.insert(0, os.path.abspath('..'))
1717

18+
from discord_slash import __version__
1819

1920
# -- Project information -----------------------------------------------------
2021

2122
project = 'discord-py-slash-command'
2223
copyright = '2020-2021, eunwoo1104'
2324
author = 'eunwoo1104'
24-
25+
release = __version__
26+
version = ".".join(__version__.split(".", 2)[:2])
2527

2628
# -- General configuration ---------------------------------------------------
2729

0 commit comments

Comments
 (0)