summaryrefslogtreecommitdiff
path: root/source/conf.py
blob: 96ccd7d502ef6a9b8b891a8a02532d6a0079ff62 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = "Valhalla's craft patterns"
copyright = '2023, Elena “of Valhalla”'
author = 'Elena “of Valhalla”'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = [
    'sphinxcontrib.inkscapeconverter',
    'sphinxcontrib.bibtex',
]

templates_path = ['_templates']
exclude_patterns = []



# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'alabaster'
html_static_path = ['_static']

# -- Options for latex output -------------------------------------------------

latex_engine = 'xelatex'
latex_show_urls = 'footnote'
latex_toplevel_sectioning = 'part'

latex_elements = {
    'papersize': 'a5paper',
    'fontpkg': r'''
    \setmainfont{Gentium}
    \setsansfont{Gentium}
    \setmonofont{FreeMono}[Scale=0.8]
    ''',
    'sphinxsetup': r'''
    TitleColor={named}{black},
    InnerLinkColor={named}{gray},
    OuterLinkColor={named}{gray},
    hmargin={2cm,2cm},
    vmargin={2.5cm,2.5cm},
    ''',
    'fncychap': r'\usepackage[Rejne]{fncychap}',
    }

# Options for extensions

bibtex_bibfiles = [
    "bibliography/misc.bib",
]