File: conf.py

package info (click to toggle)
lexicon 3.21.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 72,688 kB
  • sloc: python: 20,075; sh: 94; makefile: 7
file content (32 lines) | stat: -rw-r--r-- 637 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
from os.path import abspath, dirname, join

import tomllib

import sys
from pathlib import Path

sys.path.insert(0, str(Path('..', 'src').resolve()))

with open(join(dirname(dirname(abspath(__file__))), "pyproject.toml"), "rb") as file_h:
    metadata = tomllib.load(file_h)["project"]

master_doc = 'index'
project = "DNS-Lexicon"
version = release = metadata["version"]

extensions = [
    "sphinx_mdinclude",
    "sphinx.ext.autodoc",
]

html_theme = "piccolo_theme"
html_theme_options = {
    "source_url": 'https://github.com/dns-lexicon/dns-lexicon/'
}

html_static_path = [
    "_static",
]
html_css_files = [
    "custom.css",
]