OLD | NEW |
(Empty) | |
| 1 # -*- coding: utf-8 -*- |
| 2 # |
| 3 # oauth2client documentation build configuration file, created by |
| 4 # sphinx-quickstart on Wed Dec 17 23:13:19 2014. |
| 5 # |
| 6 |
| 7 import sys |
| 8 import os |
| 9 |
| 10 # -- General configuration ------------------------------------------------ |
| 11 |
| 12 extensions = [ |
| 13 'sphinx.ext.autodoc', |
| 14 'sphinx.ext.coverage', |
| 15 'sphinx.ext.napoleon', |
| 16 'sphinx.ext.viewcode', |
| 17 ] |
| 18 templates_path = ['_templates'] |
| 19 source_suffix = '.rst' |
| 20 master_doc = 'index' |
| 21 |
| 22 # General information about the project. |
| 23 project = u'oauth2client' |
| 24 copyright = u'2014, Google, Inc' |
| 25 |
| 26 # Version info |
| 27 import oauth2client |
| 28 version = oauth2client.__version__ |
| 29 release = oauth2client.__version__ |
| 30 |
| 31 exclude_patterns = ['_build'] |
| 32 |
| 33 # In order to load django before 1.7, we need to create a faux |
| 34 # settings module and load it. |
| 35 import django |
| 36 if django.VERSION[1] < 7: |
| 37 sys.path.insert(0, '.') |
| 38 os.environ['DJANGO_SETTINGS_MODULE'] = 'django_settings' |
| 39 |
| 40 # -- Options for HTML output ---------------------------------------------- |
| 41 |
| 42 # We want to set the RTD theme, but not if we're on RTD. |
| 43 if os.environ.get('READTHEDOCS', '') != 'True': |
| 44 import sphinx_rtd_theme |
| 45 html_theme = 'sphinx_rtd_theme' |
| 46 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 47 |
| 48 html_static_path = ['_static'] |
| 49 html_logo = '_static/google_logo.png' |
| 50 htmlhelp_basename = 'oauth2clientdoc' |
| 51 |
| 52 # -- Options for LaTeX output --------------------------------------------- |
| 53 |
| 54 latex_elements = {} |
| 55 latex_documents = [ |
| 56 ('index', 'oauth2client.tex', u'oauth2client Documentation', |
| 57 u'Google, Inc.', 'manual'), |
| 58 ] |
| 59 |
| 60 # -- Options for manual page output --------------------------------------- |
| 61 |
| 62 man_pages = [ |
| 63 ('index', 'oauth2client', u'oauth2client Documentation', |
| 64 [u'Google, Inc.'], 1) |
| 65 ] |
| 66 |
| 67 # -- Options for Texinfo output ------------------------------------------- |
| 68 |
| 69 texinfo_documents = [ |
| 70 ('index', 'oauth2client', u'oauth2client Documentation', |
| 71 u'Google, Inc.', 'oauth2client', 'One line description of project.', |
| 72 'Miscellaneous'), |
| 73 ] |
OLD | NEW |