conf.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # -*- coding: utf-8 -*-
  2. import datetime
  3. import sys
  4. import os
  5. # Make sure we can import the package
  6. sys.path.insert(
  7. 0,
  8. os.path.join(
  9. os.path.dirname(__file__),
  10. os.path.pardir,
  11. 'lib'))
  12. os.environ['PYSTRAY_BACKEND'] = 'dummy'
  13. import pystray as package
  14. import pystray._info as INFO
  15. # Add any Sphinx extension module names here, as strings. They can be
  16. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  17. # ones.
  18. extensions = [
  19. 'sphinx.ext.autodoc',
  20. 'sphinx.ext.viewcode']
  21. # Add any paths that contain templates here, relative to this directory.
  22. templates_path = ['_templates']
  23. # The suffix of source filenames.
  24. source_suffix = '.rst'
  25. # The master toctree document.
  26. master_doc = 'index'
  27. # General information about the project.
  28. project = package.__package__
  29. original_year = 2016
  30. current_year = datetime.date.today().year
  31. if original_year == current_year:
  32. copyright = u'%d, %s' % (
  33. current_year,
  34. INFO.__author__)
  35. else:
  36. copyright = u'%d-%d, %s' % (
  37. original_year,
  38. current_year,
  39. INFO.__author__)
  40. # The version info for the project you're documenting, acts as replacement for
  41. # |version| and |release|, also used in various other places throughout the
  42. # built documents.
  43. # The short X.Y version.
  44. version = '.'.join(str(v) for v in INFO.__version__)
  45. # The full version, including alpha/beta/rc tags.
  46. release = version
  47. # The name of the Pygments (syntax highlighting) style to use.
  48. pygments_style = 'sphinx'
  49. # The theme to use for HTML and HTML Help pages. See the documentation for
  50. # a list of builtin themes.
  51. html_theme = 'alabaster'
  52. # Output file base name for HTML help builder.
  53. htmlhelp_basename = '%sdoc' % package.__package__
  54. # One entry per manual page. List of tuples
  55. # (source start file, name, description, authors, manual section).
  56. man_pages = [
  57. (
  58. 'index',
  59. package.__package__,
  60. u'%s Documentation' % package.__package__,
  61. [package._info.__author__],
  62. 1)]