1# -*- coding: utf-8 -*-
2#
3# Mobly documentation build configuration file, created by
4# sphinx-quickstart on Wed Feb 22 11:40:14 2017.
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# autogenerated file.
11#
12# All configuration values have a default; values that are commented out
13# serve to show the default.
14
15# If extensions (or modules to document with autodoc) are in another directory,
16# add these directories to sys.path here. If the directory is relative to the
17# documentation root, use os.path.abspath to make it absolute, like shown here.
18#
19import os
20import sys
21
22sys.path.insert(0, os.path.abspath(os.path.pardir))
23
24# -- General configuration ------------------------------------------------
25
26# If your documentation needs a minimal Sphinx version, state it here.
27#
28# needs_sphinx = '1.0'
29
30# Add any Sphinx extension module names here, as strings. They can be
31# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
32# ones.
33extensions = [
34    'sphinx.ext.autodoc',
35    'sphinx.ext.napoleon',
36    'sphinx.ext.todo',
37    'sphinx.ext.viewcode',
38]
39
40# Add any paths that contain templates here, relative to this directory.
41templates_path = ['_templates']
42
43# Setting up parsers for MD support
44from recommonmark.parser import CommonMarkParser
45
46source_parsers = {
47    '.md': CommonMarkParser,
48}
49
50# The suffix(es) of source filenames.
51# You can specify multiple suffix as a list of string:
52#
53source_suffix = ['.rst', '.md']
54# source_suffix = '.rst'
55
56# The master toctree document.
57master_doc = 'index'
58
59# General information about the project.
60project = 'Mobly'
61copyright = 'Copyright 2016 Google Inc.'
62author = 'Ang Li'
63
64# The version info for the project you're documenting, acts as replacement for
65# |version| and |release|, also used in various other places throughout the
66# built documents.
67#
68# The short X.Y version.
69version = ''
70# The full version, including alpha/beta/rc tags.
71release = ''
72
73# The language for content autogenerated by Sphinx. Refer to documentation
74# for a list of supported languages.
75#
76# This is also used if you do content translation via gettext catalogs.
77# Usually you set "language" from the command line for these cases.
78language = 'en'
79
80# List of patterns, relative to source directory, that match files and
81# directories to ignore when looking for source files.
82# This patterns also effect to html_static_path and html_extra_path
83exclude_patterns = [
84    '_build',
85    'Thumbs.db',
86    '.DS_Store',
87    'tutorial.md',
88    'instrumentation_tutorial.md',
89    'android_device_service.md',
90]
91
92# The name of the Pygments (syntax highlighting) style to use.
93pygments_style = 'sphinx'
94
95# If true, `todo` and `todoList` produce output, else they produce nothing.
96todo_include_todos = True
97
98# -- Options for HTML output ----------------------------------------------
99
100# The theme to use for HTML and HTML Help pages.  See the documentation for
101# a list of builtin themes.
102#
103html_theme = 'alabaster'
104
105# Theme options are theme-specific and customize the look and feel of a theme
106# further.  For a list of options available for each theme, see the
107# documentation.
108#
109# html_theme_options = {}
110
111# Add any paths that contain custom static files (such as style sheets) here,
112# relative to this directory. They are copied after the builtin static files,
113# so a file named "default.css" will overwrite the builtin "default.css".
114html_static_path = []
115
116# -- Options for HTMLHelp output ------------------------------------------
117
118# Output file base name for HTML help builder.
119htmlhelp_basename = 'Moblydoc'
120
121# -- Options for LaTeX output ---------------------------------------------
122
123latex_elements = {
124    # The paper size ('letterpaper' or 'a4paper').
125    #
126    # 'papersize': 'letterpaper',
127    # The font size ('10pt', '11pt' or '12pt').
128    #
129    # 'pointsize': '10pt',
130    # Additional stuff for the LaTeX preamble.
131    #
132    # 'preamble': '',
133    # Latex figure (float) alignment
134    #
135    # 'figure_align': 'htbp',
136}
137
138# Grouping the document tree into LaTeX files. List of tuples
139# (source start file, target name, title,
140#  author, documentclass [howto, manual, or own class]).
141latex_documents = [
142    (master_doc, 'Mobly.tex', 'Mobly Documentation', 'Ang Li', 'manual'),
143]
144
145# -- Options for manual page output ---------------------------------------
146
147# One entry per manual page. List of tuples
148# (source start file, name, description, authors, manual section).
149man_pages = [(master_doc, 'mobly', 'Mobly Documentation', [author], 1)]
150
151# -- Options for Texinfo output -------------------------------------------
152
153# Grouping the document tree into Texinfo files. List of tuples
154# (source start file, target name, title, author,
155#  dir menu entry, description, category)
156texinfo_documents = [
157    (
158        master_doc,
159        'Mobly',
160        'Mobly Documentation',
161        author,
162        'Mobly',
163        (
164            'Mobly is a Python-based test framework that specializes in'
165            ' supporting tests that require multiple devices, complex'
166            ' environments, or custom hardware setups.'
167        ),
168        'Miscellaneous',
169    ),
170]
171
172# -- Options for Epub output ----------------------------------------------
173
174# Bibliographic Dublin Core info.
175epub_title = project
176epub_author = author
177epub_publisher = author
178epub_copyright = copyright
179
180# The unique identifier of the text. This can be a ISBN number
181# or the project homepage.
182#
183# epub_identifier = ''
184
185# A unique identification for the text.
186#
187# epub_uid = ''
188
189# A list of files that should not be packed into the epub file.
190epub_exclude_files = ['search.html']
191