[gimp-web/pat/py3: 5/5] Disable i18n subsites and extraneous feeds - should build!



commit fc240f9cfe851f7016452b1408ba4cd8e80ef4fa
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 c7b8bb4e..95b68e16 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
 
@@ -82,6 +86,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 = {
@@ -99,14 +105,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'
@@ -150,8 +156,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"
@@ -169,7 +175,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]