2019-07-18 10:43:36 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*- #
|
|
|
|
from __future__ import unicode_literals
|
2020-06-05 08:42:51 +00:00
|
|
|
import os
|
2019-07-18 10:43:36 +00:00
|
|
|
|
|
|
|
AUTHOR = 'Benjamin Bertrand'
|
|
|
|
SITENAME = 'OpyTex'
|
|
|
|
SITETITLE = 'OpyTex'
|
2020-06-05 08:42:51 +00:00
|
|
|
SITESUBTITLE = "2019-2020"
|
2019-07-18 10:43:36 +00:00
|
|
|
SITEURL = ''
|
|
|
|
|
|
|
|
CC_LICENSE_COMMERCIAL = True
|
|
|
|
CC_LICENSE = True
|
|
|
|
|
2020-06-05 08:42:51 +00:00
|
|
|
PATH = './content'
|
2019-07-18 10:43:36 +00:00
|
|
|
|
|
|
|
TIMEZONE = 'Europe/Paris'
|
|
|
|
|
|
|
|
DEFAULT_LANG = 'fr'
|
|
|
|
|
|
|
|
# theme
|
|
|
|
THEME = "./theme/"
|
|
|
|
USE_GOOGLE_FONTS = False
|
|
|
|
|
2020-06-05 08:42:51 +00:00
|
|
|
IGNORE_FILES = ['venv', '.git', 'tools']
|
2019-07-18 10:43:36 +00:00
|
|
|
# Pages, articles and static
|
|
|
|
PAGE_PATHS = ['pages']
|
|
|
|
#ARTICLE_PATHS = ['pages/Enseignement', 'Blog']
|
2020-06-05 08:42:51 +00:00
|
|
|
ARTICLE_PATHS = ['.']
|
|
|
|
STATIC_PATHS = ['.']
|
2019-07-18 10:43:36 +00:00
|
|
|
|
|
|
|
INDEX_SAVE_AS = 'blog_index.html'
|
|
|
|
|
2020-06-05 08:42:51 +00:00
|
|
|
# Mirror source structure
|
|
|
|
PATH_METADATA = '(?P<path_no_ext>.*)\..*'
|
|
|
|
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html'
|
|
|
|
|
|
|
|
|
2019-07-18 10:43:36 +00:00
|
|
|
# Menu
|
|
|
|
MAIN_MENU = True
|
|
|
|
DISPLAY_PAGES_ON_MENU = False
|
|
|
|
DISPLAY_CATEGORIES_ON_MENU = False
|
|
|
|
MENUITEMS = [
|
2020-06-23 08:03:36 +00:00
|
|
|
#("Dernières modifications", SITEURL+"blog_index.html"),
|
|
|
|
("Contenus de cours", "/pages/tout-sur-mes-cours.html"),
|
|
|
|
('blog', '/blog_index.html'),
|
|
|
|
('Opytex', "/opytex/"),
|
|
|
|
("pyMath", "/pymath/"),
|
|
|
|
('À propos', "/pages/a-propos.html"),
|
|
|
|
]
|
2019-07-18 10:43:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Feed generation is usually not desired when developing
|
|
|
|
FEED_ALL_ATOM = None
|
|
|
|
CATEGORY_FEED_ATOM = None
|
|
|
|
TRANSLATION_FEED_ATOM = None
|
|
|
|
AUTHOR_FEED_ATOM = None
|
|
|
|
AUTHOR_FEED_RSS = None
|
|
|
|
|
|
|
|
# Blogroll
|
|
|
|
LINKS = (
|
2020-06-05 08:42:51 +00:00
|
|
|
#('2019/2020', "/Enseignements/2019-2020/"),
|
|
|
|
#('2018/2019', "/Enseignements/2018-2019/"),
|
|
|
|
#('2017/2018', "/Enseignements/2017-2018/"),
|
|
|
|
#('2016/2017', "/Enseignements/2016-2017/"),
|
|
|
|
#('2015/2016', "/Enseignements/2015-2016/"),
|
2019-07-18 10:43:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
# Social widget
|
|
|
|
#SOCIAL = (('You can add links in your config file', '#'),
|
|
|
|
# )
|
|
|
|
|
|
|
|
DEFAULT_PAGINATION = 20
|
|
|
|
|
|
|
|
# Date
|
|
|
|
SHOW_DATE_MODIFIED = True
|
|
|
|
ARTICLE_ORDER_BY = "modified"
|
|
|
|
|
|
|
|
DISPLAY_ARTICLE_INFO_ON_INDEX = True
|
|
|
|
|
|
|
|
# Uncomment following line if you want document-relative URLs when developing
|
2020-06-05 08:42:51 +00:00
|
|
|
RELATIVE_URLS = True
|
2019-07-18 10:43:36 +00:00
|
|
|
|
|
|
|
BOOTSTRAP_THEME = "flatly"
|
|
|
|
PLUGIN_PATHS = ['./plugins', './pelican-plugins']
|
|
|
|
|
2020-06-05 08:42:51 +00:00
|
|
|
PLUGINS = [#'hierarchy',
|
2019-07-18 10:43:36 +00:00
|
|
|
'tag_cloud',
|
|
|
|
"list_files",
|
|
|
|
"render_math",
|
|
|
|
"always_modified",
|
2020-06-23 07:45:42 +00:00
|
|
|
"pdf-img",
|
2019-07-18 10:43:36 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
READERS = {"html": None}
|
|
|
|
|
|
|
|
# hierarchy plugin config
|
2020-06-05 08:42:51 +00:00
|
|
|
# ARTICLE_URL = 'Enseignements/{slug}/'
|
|
|
|
# ARTICLE_SAVE_AS = 'Enseignements/{slug}/index.html'
|
|
|
|
# #SLUGIFY_SOURCE = 'basename'
|
|
|
|
# ARTICLE_NAVIGATION = True
|
2019-07-18 10:43:36 +00:00
|
|
|
|
|
|
|
TAGS_URL = "tags.html"
|
|
|
|
DISPLAY_TAGS_INLINE = True
|
|
|
|
DISPLAY_CATEGORIES_ON_SIDEBAR = True
|