2022-08-01 12:40:26 +02:00
|
|
|
|
import datetime
|
2016-10-19 11:21:42 -06:00
|
|
|
|
import os
|
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
from pelican import __version__
|
2010-10-13 23:08:08 +01:00
|
|
|
|
|
2013-03-11 08:25:47 -04:00
|
|
|
|
sys.path.append(os.path.abspath(os.pardir))
|
2012-03-15 00:23:07 +00:00
|
|
|
|
|
2016-10-19 11:21:42 -06:00
|
|
|
|
# -- General configuration ----------------------------------------------------
|
2010-10-13 23:08:08 +01:00
|
|
|
|
templates_path = ['_templates']
|
2016-10-19 11:21:42 -06: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'
|
2022-08-01 12:40:26 +02:00
|
|
|
|
year = datetime.datetime.now().date().year
|
|
|
|
|
|
copyright = f'2010–{year}'
|
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])
|
2019-07-03 23:31:38 +02:00
|
|
|
|
last_stable = __version__
|
2013-03-27 09:16:19 +01:00
|
|
|
|
rst_prolog = '''
|
2020-04-26 09:55:08 +02:00
|
|
|
|
.. |last_stable| replace:: :pelican-doc:`{}`
|
2013-03-27 09:16:19 +01:00
|
|
|
|
'''.format(last_stable)
|
|
|
|
|
|
|
|
|
|
|
|
extlinks = {
|
2022-08-01 12:36:54 +02:00
|
|
|
|
'pelican-doc': ('https://docs.getpelican.com/%s/', '%s')
|
2013-03-27 09:16:19 +01:00
|
|
|
|
}
|
2010-10-13 23:08:08 +01:00
|
|
|
|
|
2016-10-19 11:21:42 -06:00
|
|
|
|
# -- Options for HTML output --------------------------------------------------
|
2010-10-13 23:08:08 +01:00
|
|
|
|
|
2022-01-04 18:34:35 +01:00
|
|
|
|
html_theme = 'furo'
|
|
|
|
|
|
html_title = f'<strong>{project}</strong> <i>{release}</i>'
|
2010-10-13 23:08:08 +01:00
|
|
|
|
html_static_path = ['_static']
|
2022-01-04 18:34:35 +01:00
|
|
|
|
html_theme_options = {
|
|
|
|
|
|
'light_logo': 'pelican-logo.svg',
|
|
|
|
|
|
'dark_logo': 'pelican-logo.svg',
|
|
|
|
|
|
'navigation_with_keys': True,
|
|
|
|
|
|
}
|
2010-10-13 23:08:08 +01:00
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
2014-04-28 20:37:49 +02:00
|
|
|
|
|
|
|
|
|
|
def setup(app):
|
|
|
|
|
|
# overrides for wide tables in RTD theme
|
2020-04-26 00:59:54 +03:00
|
|
|
|
app.add_css_file('theme_overrides.css') # path relative to _static
|
2014-04-28 20:37:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
2016-10-19 11:21:42 -06:00
|
|
|
|
# -- Options for LaTeX output -------------------------------------------------
|
2010-10-13 23:08:08 +01:00
|
|
|
|
latex_documents = [
|
2020-04-12 06:07:37 +02:00
|
|
|
|
('index', 'Pelican.tex', 'Pelican Documentation', 'Justin Mayer',
|
2016-10-19 11:21:42 -06:00
|
|
|
|
'manual'),
|
2010-10-13 23:08:08 +01:00
|
|
|
|
]
|
|
|
|
|
|
|
2016-10-19 11:21:42 -06:00
|
|
|
|
# -- Options for manual page output -------------------------------------------
|
2010-10-13 23:08:08 +01:00
|
|
|
|
man_pages = [
|
2013-01-11 02:57:43 +01:00
|
|
|
|
('index', 'pelican', 'pelican documentation',
|
2020-04-12 06:07:37 +02:00
|
|
|
|
['Justin Mayer'], 1),
|
2013-01-11 02:57:43 +01:00
|
|
|
|
('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
|
|
|
|
]
|