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