You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@petri.apache.org by wa...@apache.org on 2021/03/14 20:09:53 UTC

[petri-site] branch master updated: chore: remove duplicate SITEURL in pelicanconf.py and clean up

This is an automated email from the ASF dual-hosted git repository.

wave pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/petri-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 05d5d2d  chore: remove duplicate SITEURL in pelicanconf.py and clean up
     new 5454833  Merge pull request #8 from jbampton/clean-up-python
05d5d2d is described below

commit 05d5d2de68afd1f54cbc55b49b1c64289975fc47
Author: John Bampton <jb...@gmail.com>
AuthorDate: Mon Mar 15 06:05:05 2021 +1000

    chore: remove duplicate SITEURL in pelicanconf.py and clean up
---
 pelicanconf.py | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/pelicanconf.py b/pelicanconf.py
index b3b0e11..6fca6bc 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -25,10 +25,8 @@ from datetime import date
 import sys
 import os
 
-
 AUTHOR = u'Petri Community'
 SITENAME = u'Apache Petri'
-SITEURL = ''
 CURRENTYEAR = date.today().year
 
 PATH = 'content'
@@ -39,19 +37,19 @@ DEFAULT_LANG = u'en'
 SITEURL = 'https://petri.apache.org'
 
 # Save pages using full directory preservation
-PAGES_PATHS = [ 'content' ]
-#PATH_METADATA= '(?P<path_no_ext>.*)\..*'
-#PAGE_SAVE_AS= '{path_no_ext}.html'
-#PAGE_URL= '{path_no_ext}.html'
+PAGES_PATHS = ['content']
+# PATH_METADATA= '(?P<path_no_ext>.*)\..*'
+# PAGE_SAVE_AS= '{path_no_ext}.html'
+# PAGE_URL= '{path_no_ext}.html'
 SLUGIFY_SOURCE = 'basename'
 PAGE_SAVE_AS = '{slug}.html'
 
 # We want to serve info.yaml and petri.rdf in addition to any images
-STATIC_PATHS = [ 'info.yaml', 'petri.rdf', 'images' ]
+STATIC_PATHS = ['info.yaml', 'petri.rdf', 'images']
 
 # We don't use articles, but we don't want pelican to think
 # that content/ contains articles.
-ARTICLE_PATHS = [ 'articles' ]
+ARTICLE_PATHS = ['articles']
 
 # Disable these pages
 ARCHIVES_SAVE_AS = ''
@@ -70,7 +68,7 @@ AUTHOR_FEED_RSS = None
 
 # TOC Generator
 PLUGIN_PATHS = ['./theme/plugins']
-#PLUGINS = ['toc']
+# PLUGINS = ['toc']
 TOC_HEADERS = r"h[1-6]"
 
 # Unused links
@@ -80,4 +78,4 @@ SOCIAL = ( )
 DEFAULT_PAGINATION = False
 
 # Uncomment following line if you want document-relative URLs when developing
-#RELATIVE_URLS = True
+# RELATIVE_URLS = True