Debian Codegraph @

docs/conf.py

raw
1 #!/usr/bin/env python
2 #
3 # dateparser documentation build configuration file, created by
4 # sphinx-quickstart on Tue Jul 9 22:26:36 2013.
5 #
6 # This file is execfile()d with the current directory set to its
7 # containing dir.
8 #
9 # Note that not all possible configuration values are present in this
10 # file.
11
12
13 import os
14 import sys
15
16 import dateparser
17
18 # Get the project root dir, which is the parent dir of this
19 cwd = os.getcwd()
20 project_root = os.path.dirname(cwd)
21
22 # Insert the project root dir as the first element in the PYTHONPATH.
23 # This lets us ensure that the source package is imported, and that its
24 # version is used.
25 sys.path.insert(0, project_root)
26
27 # -- General configuration ---------------------------------------------
28
29 # Add any Sphinx extension module names here, as strings. They can be
30 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
31 extensions = [
32 "sphinx.ext.autodoc",
33 "sphinx.ext.viewcode",
34 "sphinx.ext.intersphinx",
35 "sphinx_rtd_theme",
36 ]
37
38 # Add any paths that contain templates here, relative to this directory.
39 templates_path = ["_templates"]
40
41 # The suffix of source filenames.
42 source_suffix = ".rst"
43
44 # The master toctree document.
45 master_doc = "index"
46
47 # General information about the project.
48 project = "DateParser"
49 copyright = "2014, Scrapinghub"
50
51 # The version info for the project you're documenting, acts as replacement
52 # for |version| and |release|, also used in various other places throughout
53 # the built documents.
54 #
55 # The short X.Y version.
56 version = dateparser.__version__
57 # The full version, including alpha/beta/rc tags.
58 release = dateparser.__version__
59
60 # List of patterns, relative to source directory, that match files and
61 # directories to ignore when looking for source files.
62 exclude_patterns = ["_build"]
63
64 # The name of the Pygments (syntax highlighting) style to use.
65 pygments_style = "sphinx"
66
67
68 # -- Options for HTML output -------------------------------------------
69
70 # The theme to use for HTML and HTML Help pages. See the documentation for
71 # a list of builtin themes.
72 html_theme = "sphinx_rtd_theme"
73
74 # Add any paths that contain custom static files (such as style sheets)
75 # here, relative to this directory. They are copied after the builtin
76 # static files, so a file named "default.css" will overwrite the builtin
77 # "default.css".
78 html_static_path = []
79
80 # Output file base name for HTML help builder.
81 htmlhelp_basename = "dateparserdoc"
82
83
84 # -- Options for LaTeX output ------------------------------------------
85
86 latex_elements = {}
87
88 # Grouping the document tree into LaTeX files. List of tuples
89 # (source start file, target name, title, author, documentclass
90 # [howto/manual]).
91 latex_documents = [
92 ("index", "dateparser.tex", "DateParser Documentation", "Scrapinghub", "manual"),
93 ]
94
95
96 # -- Options for manual page output ------------------------------------
97
98 # One entry per manual page. List of tuples
99 # (source start file, name, description, authors, manual section).
100 man_pages = [("index", "dateparser", "DateParser Documentation", ["Scrapinghub"], 1)]
101
102
103 # -- Options for Texinfo output ----------------------------------------
104
105 # Grouping the document tree into Texinfo files. List of tuples
106 # (source start file, target name, title, author,
107 # dir menu entry, description, category)
108 texinfo_documents = [
109 (
110 "index",
111 "dateparser",
112 "DateParser Documentation",
113 "Scrapinghub",
114 "dateparser",
115 "One line description of project.",
116 "Miscellaneous",
117 ),
118 ]
119
120 # sphinx.ext.intersphinx confs
121 intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
122
123
124 html_theme_options = {
125 "logo_only": True,
126 "collapse_navigation": True,
127 "sticky_navigation": True,
128 "navigation_depth": 4,
129 "includehidden": True,
130 "titles_only": False,
131 }
132
133 html_logo = "../artwork/dateparser-logo.png"