File: conf.py

package info (click to toggle)
python-xlrd 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,876 kB
  • sloc: python: 7,540; makefile: 118; sh: 7
file content (29 lines) | stat: -rw-r--r-- 723 bytes parent folder | download
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
import datetime
import os

from xlrd.info import __VERSION__

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

intersphinx_mapping = {'http://docs.python.org': None}
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
source_suffix = '.rst'
master_doc = 'index'
project = u'xlrd'
copyright = (
    '2005-2019 Stephen John Machin, Lingfo Pty Ltd. '
    '2019-%s Chris Withers'
) % datetime.datetime.now().year
version = release = __VERSION__
exclude_patterns = ['_build']
pygments_style = 'sphinx'

if on_rtd:
    html_theme = 'default'
else:
    html_theme = 'classic'

htmlhelp_basename = project+'doc'
intersphinx_mapping = {'python': ('http://docs.python.org', None)}

autodoc_member_order = 'bysource'