Feat: clean pelicanconf, prod env in publishconf
This commit is contained in:
parent
81dc32f301
commit
ad1275cfe8
@ -1,18 +1,18 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*- #
|
# -*- coding: utf-8 -*- #
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
import os
|
||||||
|
|
||||||
AUTHOR = 'Benjamin Bertrand'
|
AUTHOR = 'Benjamin Bertrand'
|
||||||
SITENAME = 'OpyTex'
|
SITENAME = 'OpyTex'
|
||||||
SITETITLE = 'OpyTex'
|
SITETITLE = 'OpyTex'
|
||||||
SITESUBTITLE = "Des cours de maths, d'info et un peu de réfléxions personnelles."
|
SITESUBTITLE = "2019-2020"
|
||||||
#SITEURL = 'opytex.org'
|
|
||||||
SITEURL = ''
|
SITEURL = ''
|
||||||
|
|
||||||
CC_LICENSE_COMMERCIAL = True
|
CC_LICENSE_COMMERCIAL = True
|
||||||
CC_LICENSE = True
|
CC_LICENSE = True
|
||||||
|
|
||||||
PATH = 'content'
|
PATH = './content'
|
||||||
|
|
||||||
TIMEZONE = 'Europe/Paris'
|
TIMEZONE = 'Europe/Paris'
|
||||||
|
|
||||||
@ -22,14 +22,20 @@ DEFAULT_LANG = 'fr'
|
|||||||
THEME = "./theme/"
|
THEME = "./theme/"
|
||||||
USE_GOOGLE_FONTS = False
|
USE_GOOGLE_FONTS = False
|
||||||
|
|
||||||
|
IGNORE_FILES = ['venv', '.git', 'tools']
|
||||||
# Pages, articles and static
|
# Pages, articles and static
|
||||||
PAGE_PATHS = ['pages']
|
PAGE_PATHS = ['pages']
|
||||||
#ARTICLE_PATHS = ['pages/Enseignement', 'Blog']
|
#ARTICLE_PATHS = ['pages/Enseignement', 'Blog']
|
||||||
ARTICLE_PATHS = ['Enseignements']
|
ARTICLE_PATHS = ['.']
|
||||||
STATIC_PATHS = ['./']
|
STATIC_PATHS = ['.']
|
||||||
|
|
||||||
INDEX_SAVE_AS = 'blog_index.html'
|
INDEX_SAVE_AS = 'blog_index.html'
|
||||||
|
|
||||||
|
# Mirror source structure
|
||||||
|
PATH_METADATA = '(?P<path_no_ext>.*)\..*'
|
||||||
|
ARTICLE_URL = ARTICLE_SAVE_AS = PAGE_URL = PAGE_SAVE_AS = '{path_no_ext}.html'
|
||||||
|
|
||||||
|
|
||||||
# Menu
|
# Menu
|
||||||
MAIN_MENU = True
|
MAIN_MENU = True
|
||||||
DISPLAY_PAGES_ON_MENU = False
|
DISPLAY_PAGES_ON_MENU = False
|
||||||
@ -53,11 +59,11 @@ AUTHOR_FEED_RSS = None
|
|||||||
|
|
||||||
# Blogroll
|
# Blogroll
|
||||||
LINKS = (
|
LINKS = (
|
||||||
('2019/2020', "/Enseignements/2019-2020/"),
|
#('2019/2020', "/Enseignements/2019-2020/"),
|
||||||
('2018/2019', "/Enseignements/2018-2019/"),
|
#('2018/2019', "/Enseignements/2018-2019/"),
|
||||||
('2017/2018', "/Enseignements/2017-2018/"),
|
#('2017/2018', "/Enseignements/2017-2018/"),
|
||||||
('2016/2017', "/Enseignements/2016-2017/"),
|
#('2016/2017', "/Enseignements/2016-2017/"),
|
||||||
('2015/2016', "/Enseignements/2015-2016/"),
|
#('2015/2016', "/Enseignements/2015-2016/"),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Social widget
|
# Social widget
|
||||||
@ -73,26 +79,26 @@ ARTICLE_ORDER_BY = "modified"
|
|||||||
DISPLAY_ARTICLE_INFO_ON_INDEX = True
|
DISPLAY_ARTICLE_INFO_ON_INDEX = True
|
||||||
|
|
||||||
# Uncomment following line if you want document-relative URLs when developing
|
# Uncomment following line if you want document-relative URLs when developing
|
||||||
#RELATIVE_URLS = True
|
RELATIVE_URLS = True
|
||||||
|
|
||||||
BOOTSTRAP_THEME = "flatly"
|
BOOTSTRAP_THEME = "flatly"
|
||||||
PLUGIN_PATHS = ['./plugins', './pelican-plugins']
|
PLUGIN_PATHS = ['./plugins', './pelican-plugins']
|
||||||
|
|
||||||
PLUGINS = ['hierarchy',
|
PLUGINS = [#'hierarchy',
|
||||||
'tag_cloud',
|
'tag_cloud',
|
||||||
"list_files",
|
"list_files",
|
||||||
"render_math",
|
"render_math",
|
||||||
"always_modified",
|
"always_modified",
|
||||||
"pdf-img",
|
# "pdf-img",
|
||||||
]
|
]
|
||||||
|
|
||||||
READERS = {"html": None}
|
READERS = {"html": None}
|
||||||
|
|
||||||
# hierarchy plugin config
|
# hierarchy plugin config
|
||||||
ARTICLE_URL = 'Enseignements/{slug}/'
|
# ARTICLE_URL = 'Enseignements/{slug}/'
|
||||||
ARTICLE_SAVE_AS = 'Enseignements/{slug}/index.html'
|
# ARTICLE_SAVE_AS = 'Enseignements/{slug}/index.html'
|
||||||
#SLUGIFY_SOURCE = 'basename'
|
# #SLUGIFY_SOURCE = 'basename'
|
||||||
ARTICLE_NAVIGATION = True
|
# ARTICLE_NAVIGATION = True
|
||||||
|
|
||||||
|
|
||||||
TAGS_URL = "tags.html"
|
TAGS_URL = "tags.html"
|
||||||
|
@ -10,11 +10,12 @@ import sys
|
|||||||
sys.path.append(os.curdir)
|
sys.path.append(os.curdir)
|
||||||
from pelicanconf import *
|
from pelicanconf import *
|
||||||
|
|
||||||
SITEURL = 'opytex.org'
|
# If your site is available via HTTPS, make sure SITEURL begins with https://
|
||||||
RELATIVE_URLS = True
|
SITEURL = 'https://opytex.org/enseignements/2019-2020/'
|
||||||
|
RELATIVE_URLS = False
|
||||||
|
|
||||||
FEED_ALL_ATOM = 'feeds/all.atom.xml'
|
FEED_ALL_ATOM = 'feeds/all.atom.xml'
|
||||||
CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
|
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
|
||||||
|
|
||||||
DELETE_OUTPUT_DIRECTORY = True
|
DELETE_OUTPUT_DIRECTORY = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user