You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2015/08/10 18:40:01 UTC
svn commit: r1695131 - /qpid/site/python/transom.py
Author: robbie
Date: Mon Aug 10 16:40:00 2015
New Revision: 1695131
URL: http://svn.apache.org/r1695131
Log:
NO-JIRA: resolve a laundry list of issues with the 'render'ed site, all caused by same problem as it turns out
Modified:
qpid/site/python/transom.py
Modified: qpid/site/python/transom.py
URL: http://svn.apache.org/viewvc/qpid/site/python/transom.py?rev=1695131&r1=1695130&r2=1695131&view=diff
==============================================================================
--- qpid/site/python/transom.py (original)
+++ qpid/site/python/transom.py Mon Aug 10 16:40:00 2015
@@ -239,6 +239,8 @@ class Site(object):
names = set(_os.listdir(dir))
if ".transom-skip" in names:
+ if self.verbose:
+ print("Skipping input pages dir: {}".format(dir))
return
for name in ("index.md", "index.html", "index.html.in"):
@@ -267,13 +269,25 @@ class Site(object):
for name in sorted(names):
path = _os.path.join(dir, name)
- if path in (self.config_path, self.template_path) or \
- filter(lambda ext: path.endswith(ext), _skip_extensions):
+ if path in (self.config_path, self.template_path):
continue
if _os.path.isfile(path):
if path not in self.files_by_input_path:
+ skip = False
+ for extension in _skip_extensions:
+ if name.endswith(extension):
+ skip = True;
+ break
+
+ if skip:
+ if self.verbose:
+ print("Skipping input resource creation for: {}".format(path))
+ continue
+
_Resource(self, path)
+ if self.verbose:
+ print("Created input resource for: {}".format(path))
elif _os.path.isdir(path) and name != ".svn":
self.traverse_input_resources(path)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org