2010-10-13 23:08:08 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2013-01-11 02:57:43 +01:00
|
|
|
from __future__ import unicode_literals
|
2010-10-13 23:08:08 +01:00
|
|
|
import sys, os
|
|
|
|
|
|
2014-03-31 14:28:46 +05:30
|
|
|
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
|
|
|
|
|
2013-03-11 08:25:47 -04:00
|
|
|
sys.path.append(os.path.abspath(os.pardir))
|
2012-03-15 00:23:07 +00:00
|
|
|
|
2013-03-27 09:30:54 +01:00
|
|
|
from pelican import __version__
|
2012-03-16 14:27:26 +00:00
|
|
|
|
2010-10-13 23:08:08 +01:00
|
|
|
# -- General configuration -----------------------------------------------------
|
|
|
|
|
templates_path = ['_templates']
|
2013-03-27 09:16:19 +01:00
|
|
|
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.ifconfig', 'sphinx.ext.extlinks']
|
2010-10-13 23:08:08 +01:00
|
|
|
source_suffix = '.rst'
|
|
|
|
|
master_doc = 'index'
|
2013-01-11 02:57:43 +01:00
|
|
|
project = 'Pelican'
|
2014-03-30 11:59:32 -07:00
|
|
|
copyright = '2014, Alexis Metaireau and contributors'
|
2010-10-13 23:08:08 +01:00
|
|
|
exclude_patterns = ['_build']
|
2013-03-27 09:16:19 +01:00
|
|
|
release = __version__
|
2013-03-27 09:30:54 +01:00
|
|
|
version = '.'.join(release.split('.')[:1])
|
2014-03-30 11:59:32 -07:00
|
|
|
last_stable = '3.3.0'
|
2013-03-27 09:16:19 +01:00
|
|
|
rst_prolog = '''
|
|
|
|
|
.. |last_stable| replace:: :pelican-doc:`{0}`
|
|
|
|
|
'''.format(last_stable)
|
|
|
|
|
|
2014-03-31 14:28:46 +05:30
|
|
|
# The name of the Pygments (syntax highlighting) style to use.
|
|
|
|
|
pygments_style = 'sphinx'
|
|
|
|
|
|
2013-03-27 09:16:19 +01:00
|
|
|
extlinks = {
|
|
|
|
|
'pelican-doc': ('http://docs.getpelican.com/%s/', '')
|
|
|
|
|
}
|
2010-10-13 23:08:08 +01:00
|
|
|
|
|
|
|
|
# -- Options for HTML output ---------------------------------------------------
|
|
|
|
|
|
2014-03-31 14:28:46 +05:30
|
|
|
html_theme = 'default'
|
|
|
|
|
if not on_rtd:
|
|
|
|
|
try:
|
|
|
|
|
import sphinx_rtd_theme
|
|
|
|
|
html_theme = 'sphinx_rtd_theme'
|
|
|
|
|
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
|
|
|
|
except ImportError:
|
|
|
|
|
pass
|
2010-10-13 23:08:08 +01:00
|
|
|
|
|
|
|
|
html_static_path = ['_static']
|
|
|
|
|
|
|
|
|
|
# Output file base name for HTML help builder.
|
2011-06-13 14:23:07 +02:00
|
|
|
htmlhelp_basename = 'Pelicandoc'
|
2010-10-13 23:08:08 +01:00
|
|
|
|
2014-03-31 14:28:46 +05:30
|
|
|
html_use_smartypants = True
|
|
|
|
|
|
|
|
|
|
# If false, no module index is generated.
|
|
|
|
|
html_use_modindex = False
|
|
|
|
|
|
|
|
|
|
# If false, no index is generated.
|
|
|
|
|
html_use_index = False
|
|
|
|
|
|
|
|
|
|
# If true, links to the reST sources are added to the pages.
|
|
|
|
|
html_show_sourcelink = False
|
|
|
|
|
|
2010-10-13 23:08:08 +01:00
|
|
|
# -- Options for LaTeX output --------------------------------------------------
|
|
|
|
|
latex_documents = [
|
2014-03-31 14:28:46 +05:30
|
|
|
('index', 'Pelican.tex', 'Pelican Documentation',
|
2013-01-11 02:57:43 +01:00
|
|
|
'Alexis Métaireau', 'manual'),
|
2010-10-13 23:08:08 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# -- Options for manual page output --------------------------------------------
|
|
|
|
|
man_pages = [
|
2013-01-11 02:57:43 +01:00
|
|
|
('index', 'pelican', 'pelican documentation',
|
|
|
|
|
['Alexis Métaireau'], 1),
|
|
|
|
|
('pelican-themes', 'pelican-themes', 'A theme manager for Pelican',
|
|
|
|
|
['Mickaël Raybaud'], 1),
|
|
|
|
|
('themes', 'pelican-theming', 'How to create themes for Pelican',
|
|
|
|
|
['The Pelican contributors'], 1)
|
2010-10-13 23:08:08 +01:00
|
|
|
]
|