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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
# -*- coding: utf-8 -*-
import datetime
import sys
import os
# Make sure we can import the package
sys.path.insert(
0,
os.path.join(
os.path.dirname(__file__),
os.path.pardir,
'lib'))
os.environ['PYSTRAY_BACKEND'] = 'dummy'
import pystray as package
import pystray._info as INFO
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = package.__package__
original_year = 2016
current_year = datetime.date.today().year
if original_year == current_year:
copyright = u'%d, %s' % (
current_year,
INFO.__author__)
else:
copyright = u'%d-%d, %s' % (
original_year,
current_year,
INFO.__author__)
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
# The short X.Y version.
version = '.'.join(str(v) for v in INFO.__version__)
# The full version, including alpha/beta/rc tags.
release = version
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'alabaster'
# Output file base name for HTML help builder.
htmlhelp_basename = '%sdoc' % package.__package__
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(
'index',
package.__package__,
u'%s Documentation' % package.__package__,
[package._info.__author__],
1)]
|