Skip to content

Commit bf0d420

Browse files
committed
Add license info to the docs
1 parent 9d6a43d commit bf0d420

File tree

5 files changed

+16
-0
lines changed

5 files changed

+16
-0
lines changed

doc-source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ Contents
140140
usage
141141
hooks
142142
Source
143+
license
143144

144145
.. sidebar-links::
145146
:caption: Links

doc-source/license.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
=========
2+
License
3+
=========
4+
5+
``tox-recreate-hook`` is licensed under the :choosealicense:`MIT`
6+
7+
.. license-info:: MIT
8+
9+
.. license::
10+
:py: tox-recreate-hook

doc-source/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ seed-intersphinx-mapping>=0.3.1
66
sphinx<3.4.0,>=3.0.3
77
sphinx-copybutton>=0.2.12
88
sphinx-debuginfo>=0.1.0
9+
sphinx-licenseinfo>=0.1.1
910
sphinx-notfound-page>=0.5
1011
sphinx-prompt>=1.1.0
1112
sphinx-pyproject>=0.1.0

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ extensions = [
7171
"sphinxcontrib.default_values",
7272
"sphinxcontrib.toctree_plus",
7373
"sphinx_debuginfo",
74+
"sphinx_licenseinfo",
7475
"seed_intersphinx_mapping",
7576
]
7677
sphinxemoji_style = "twemoji"

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ rst-directives =
126126
TODO
127127
envvar
128128
extras-require
129+
license
130+
license-info
131+
rst-roles = choosealicense
129132
per-file-ignores =
130133
tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002
131134
*/*.pyi: E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002

0 commit comments

Comments
 (0)