Debian Codegraph @

cloud_sptheme/ext/relbar_toc.py

raw symbols SCIP
1 """
2 cloud_sptheme.ext.relbar_toc -- adds TOC entry (and other links) to relbar.
3 NOTE: this has been renamed to 'relbar_links'. this module is left as a legacy alias.
4 """
5 #=========================================================
6 # imports
7 #=========================================================
8 # core
9 from __future__ import absolute_import, division, print_function
10 import warnings
11 # pkg
12 from . import relbar_links
13 # local
14 __all__ = [
15 "setup"
16 ]
17
18 #=========================================================
19 # sphinx entrypoint
20 #=========================================================
21 def setup(app):
22 """
23 setup extension for sphinx run
24 """
25 # TODO: decide when to remove this, and promote to "DeprecationWarning"
26 warnings.warn("'cloud_sptheme.ext.relbar_toc' is deprecated, "
27 "use 'cloud_sptheme.ext.relbar_links' instead",
28 PendingDeprecationWarning)
29 return relbar_links.setup(app)
30
31 #=========================================================
32 # eof
33 #=========================================================