[gimp-web/pat/py3: 7/8] Disable i18n subsites and extraneous feeds - should build!
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/pat/py3: 7/8] Disable i18n subsites and extraneous feeds - should build!
- Date: Thu, 6 Feb 2020 15:50:08 +0000 (UTC)
commit 55d71e6d4efe5941fc7d8a287157e33e8bd58284
Author: Pat David <patdavid gmail com>
Date: Fri Jan 31 16:43:50 2020 -0600
Disable i18n subsites and extraneous feeds - should build!
pelicanconf_common.py | 45 +++++++++++++++++++++++++++++++--------------
1 file changed, 31 insertions(+), 14 deletions(-)
---
diff --git a/pelicanconf_common.py b/pelicanconf_common.py
index 34bc716e..af17150b 100644
--- a/pelicanconf_common.py
+++ b/pelicanconf_common.py
@@ -15,9 +15,13 @@ FEED_DOMAIN = None
FEED_ATOM = None
FEED_RSS = None
FEED_ALL_ATOM = 'feeds/all.atom.xml'
-CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
-TRANSLATION_FEED_ATOM = 'feeds/all-%s.atom.xml'
-TRANSLATION_FEED_RSS = 'feeds/all-%s.rss.xml'
+FEED_ALL_ATOM = None
+CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
+CATEGORY_FEED_ATOM = None
+#TRANSLATION_FEED_ATOM = 'feeds/all-%s.atom.xml'
+#TRANSLATION_FEED_RSS = 'feeds/all-%s.rss.xml'
+TRANSLATION_FEED_ATOM = None
+TRANSLATION_FEED_RSS = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
@@ -76,6 +80,8 @@ PLUGIN_PATHS = ["plugins"]
# TEMP - remove plugins during py3 migration to test things first
# IF we build ok w/o them, then start adding them back one at a time
#PLUGINS = ["mimic_hierarchy", "i18n_subsites", "sitemap", "gimp_mirrors", "tipue_search", "random_header"]
+PLUGINS = ["mimic_hierarchy", "sitemap", "gimp_mirrors", "tipue_search", "random_header"]
+
# sitemap plugin settings
SITEMAP = {
@@ -93,14 +99,14 @@ SITEMAP = {
}
# mapping: language_code -> settings_overrides_dict
-I18N_SUBSITES = {
- 'fr': {
- 'SITENAME': 'GIMP FR',
- },
- 'ar': {
- 'SITENAME': 'GIMP AR',
- },
- }
+#I18N_SUBSITES = {
+# 'fr': {
+# 'SITENAME': 'GIMP FR',
+# },
+# 'ar': {
+# 'SITENAME': 'GIMP AR',
+# },
+# }
AUTHOR = u'Pat David'
SITENAME = u'GIMP'
@@ -144,8 +150,8 @@ ARTICLE_PATHS = ['news']
THEME = "./themes/newgimp"
PAGE_URL = "{slug}/"
-#PAGE_SAVE_AS = "{slug}/index.html"
-PAGE_SAVE_AS = "{slug}/{filename}"
+PAGE_SAVE_AS = "{slug}/index.html"
+#PAGE_SAVE_AS = "{slug}/{filename}"
ARTICLE_URL = "news/{date:%Y}/{date:%m}/{date:%d}/{slug}/"
ARTICLE_SAVE_AS = "news/{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html"
@@ -163,7 +169,18 @@ INDEX_SAVE_AS = "/news/index.html"
TYPOGRIFY = True
TYPOGRIFY_IGNORE_TAGS = ['title']
-MD_EXTENSIONS = ['fenced_code', 'codehilite(css_class=codehilite)', 'extra', 'headerid',
'toc(permalink=True)']
+#MD_EXTENSIONS = ['fenced_code', 'codehilite(css_class=codehilite)', 'extra', 'headerid',
'toc(permalink=True)']
+# MD_EXTENSIOSN is deprecated, use MARKDOWN instead:
+MARKDOWN = {
+ 'extension_configs': {
+ 'markdown.extensions.codehilite': {'css_class': 'highlight'},
+ 'markdown.extensions.fenced_code': {},
+ 'markdown.extensions.codehilite': {},
+ 'markdown.extensions.extra': {},
+ 'markdown.extensions.toc': {}
+ },
+ 'output_format': 'html5'
+}
# Pagination testing stuff
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]