17from datetime
import date
18import sphinx_rtd_theme
20if sys.version_info < (3, 10):
21 from pkg_resources
import get_distribution
23 from importlib.metadata
import distribution
as get_distribution
27version = get_distribution(
"km3net_testdata").version
28short_version =
".".join(version.split(
".")[:2])
29project =
"km3net_testdata {}".format(short_version)
30copyright =
"{0}, Tamas Gal".format(date.today().year)
40 "sphinx.ext.autosummary",
41 "sphinx.ext.viewcode",
44 "sphinx_gallery.gen_gallery",
48templates_path = [
"_templates"]
53exclude_patterns = [
"_build",
"Thumbs.db",
".DS_Store",
"version.py"]
56autoapi_type =
"python"
57autoapi_dirs = [
"../km3net_testdata"]
58autoapi_ignore = [
"*version.py*"]
59autoapi_add_toctree_entry =
True
62sphinx_gallery_conf = {
63 "backreferences_dir":
"modules/generated",
64 "default_thumb_file":
"_static/default_gallery_thumbnail.png",
65 "examples_dirs":
"../examples",
66 "gallery_dirs":
"auto_examples",
75html_theme =
"sphinx_rtd_theme"
76html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
81html_static_path = [
"_static"]
82html_title =
"km3net_testdata {}".format(version)