1
0
Fork 0
forked from github/pelican
pelican-theme/docs/conf.py

81 lines
2.2 KiB
Python
Raw Permalink Normal View History

import os
import sys
from pelican import __version__
2010-10-13 23:08:08 +01:00
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
sys.path.append(os.path.abspath(os.pardir))
# -- General configuration ----------------------------------------------------
2010-10-13 23:08:08 +01:00
templates_path = ['_templates']
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.ifconfig',
'sphinx.ext.extlinks']
2010-10-13 23:08:08 +01:00
source_suffix = '.rst'
master_doc = 'index'
project = 'Pelican'
copyright = '2010 present, Justin Mayer, Alexis Metaireau, and contributors'
2010-10-13 23:08:08 +01:00
exclude_patterns = ['_build']
release = __version__
2013-03-27 09:30:54 +01:00
version = '.'.join(release.split('.')[:1])
last_stable = __version__
rst_prolog = '''
.. |last_stable| replace:: :pelican-doc:`{}`
'''.format(last_stable)
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
extlinks = {
'pelican-doc': ('https://docs.getpelican.com/%s/', '')
}
2010-10-13 23:08:08 +01:00
# -- Options for HTML output --------------------------------------------------
2010-10-13 23:08:08 +01:00
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.
htmlhelp_basename = 'Pelicandoc'
2010-10-13 23:08:08 +01:00
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
def setup(app):
# overrides for wide tables in RTD theme
app.add_css_file('theme_overrides.css') # path relative to _static
# -- Options for LaTeX output -------------------------------------------------
2010-10-13 23:08:08 +01:00
latex_documents = [
('index', 'Pelican.tex', 'Pelican Documentation', 'Justin Mayer',
'manual'),
2010-10-13 23:08:08 +01:00
]
# -- Options for manual page output -------------------------------------------
2010-10-13 23:08:08 +01:00
man_pages = [
('index', 'pelican', 'pelican documentation',
['Justin Mayer'], 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
]