File: utils.py

package info (click to toggle)
sphinx-hoverxref 1.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,296 kB
  • sloc: javascript: 2,538; python: 912; makefile: 16
file content (43 lines) | stat: -rw-r--r-- 940 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import os


srcdir = os.path.join(
    os.path.dirname(os.path.abspath(__file__)),
    'examples',
    'default',
)

# srcdir with ``autosectionlabel_prefix_document = True`` config
prefixdocumentsrcdir = os.path.join(
    os.path.dirname(os.path.abspath(__file__)),
    'examples',
    'prefixdocument',
)

# srcdir with ``Sphinx.add_object_type`` call
customobjectsrcdir = os.path.join(
    os.path.dirname(os.path.abspath(__file__)),
    'examples',
    'custom-object',
)

# srcdir with ``:py:class:`` call
pythondomainsrcdir = os.path.join(
    os.path.dirname(os.path.abspath(__file__)),
    'examples',
    'python-domain',
)

# srcdir with ``:cite:`` call
bibtexdomainsrcdir = os.path.join(
    os.path.dirname(os.path.abspath(__file__)),
    'examples',
    'bibtex-domain',
)

# srcdir with intersphinx configured
intersphinxsrc = os.path.join(
    os.path.dirname(os.path.abspath(__file__)),
    'examples',
    'intersphinx',
)