Skip to content

Commit 1c0bf60

Browse files
committed
Add warning banner mentioning that we are in Beta
1 parent 637972d commit 1c0bf60

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ sphinx-hoverxref
55

66
``sphinx-hoverxref`` is a Sphinx_ extension to add tooltips on the cross references of the documentation with the content of the linked section.
77

8+
.. warning::
9+
10+
This extension is currently in Beta state.
11+
This means that there may be some things not well supported or unexpected behavior.
12+
If you find any issue, please `report it in the issue tracker <https://github.com/readthedocs/sphinx-hoverxref/issues>`_.
13+
814

915
Example
1016
-------

docs/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
'sphinx-prompt',
4646
'autoapi.extension',
4747
'hoverxref.extension',
48+
'versionwarning.extension',
4849
]
4950

5051
# Used when building the documentation from the terminal and using a local Read
@@ -69,6 +70,14 @@
6970
hoverxref_sphinxtabs = True
7071
hoverxref_mathjax = True
7172

73+
versionwarning_messages = {
74+
'latest': 'This extension is currently in Beta state. '
75+
'This means that there may be some things not well supported or unexpected behavior. '
76+
'If you find any issue, please <a href="https://github.com/readthedocs/sphinx-hoverxref/issues">report it in the issue tracker</a>.'
77+
}
78+
versionwarning_banner_title = 'We are in Beta!'
79+
versionwarning_body_selector = 'div[itemprop="articleBody"]'
80+
7281
autosectionlabel_prefix_document = True
7382

7483
autoapi_dirs = ['../hoverxref']

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ sphinx-autoapi==1.1.0
33
sphinx-rtd-theme==0.4.3
44
sphinx-tabs==1.1.11
55
sphinx-prompt==1.1.0
6+
sphinx-version-warning==1.1.2

0 commit comments

Comments
 (0)