chrisjsewell / ipypublish
1 3
IPUB_META_ROUTE = "ipub.pandoc"
2

3 3
ATTRIBUTE_CITE_CLASS = "attribute-Cite"
4 3
RAWSPAN_CLASS = "raw-span-content"
5 3
RAWDIV_CLASS = "raw-div-content"
6 3
CONVERTED_CITE_CLASS = "converted-Cite"
7 3
CONVERTED_DIRECTIVE_CLASS = "converted-rst-dir"
8 3
CONVERTED_OTHER_CLASS = "converted-Other"
9

10
# NB: it appears '-' and '^' are already used by sphinx
11 3
PREFIX_MAP = (
12
    ("", (("classes", ()), ("attributes", (("latex", "cite"), ("rst", "cite"))))),
13
    ("+", (("classes", ()), ("attributes", (("latex", "cref"), ("rst", "numref"))))),
14
    ("!", (("classes", ()), ("attributes", (("latex", "ref"), ("rst", "ref"))))),
15
    ("=", (("classes", ()), ("attributes", (("latex", "eqref"), ("rst", "eq"))))),
16
    (
17
        "?",
18
        (
19
            ("classes", ("capital",)),
20
            ("attributes", (("latex", "Cref"), ("rst", "numref"))),
21
        ),
22
    ),
23
    ("&", (("classes", ()), ("attributes", (("latex", "gls"), ("rst", "gls"))))),
24
    (
25
        "%",
26
        (
27
            ("classes", ("capital",)),
28
            ("attributes", (("latex", "Gls"), ("rst", "glsc"))),
29
        ),
30
    ),
31
)
32

33 3
PREFIX_MAP_LATEX_R = (
34
    ("cref", "+"),
35
    ("Cref", "?"),
36
    ("ref", "!"),
37
    ("eqref", "="),
38
    ("cite", ""),
39
    ("gls", "&"),
40
    ("Gls", "%"),
41
)
42 3
PREFIX_MAP_RST_R = (
43
    ("numref", "+"),
44
    ("ref", "!"),
45
    ("eq", "="),
46
    ("cite", ""),
47
    ("gls", "&"),
48
    ("glsc", "%"),
49
)
50

51 3
CITE_HTML_NAMES = (("Math", "eqn."), ("Image", "fig."), ("Table", "tbl."))
52

53 3
RST_KNOWN_ROLES = (
54
    "py:attr",
55
    "py:meth",
56
    "py:class",
57
    "py:func",
58
    "py:mod",
59
    "attr",
60
    "meth",
61
    "class",
62
    "func",
63
    "mod",
64
    "download",
65
    "doc",
66
    "file",
67
    "program",
68
)

Read our documentation on viewing source code .

Loading