You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2016/05/31 08:14:45 UTC

[2/3] incubator-ponymail-site git commit: replace .MD links with lowercase .html links

replace .MD links with lowercase .html links


Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail-site/commit/0e0d9eac
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail-site/tree/0e0d9eac
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail-site/diff/0e0d9eac

Branch: refs/heads/asf-site
Commit: 0e0d9eac59a55f19fd68bf43c12f21accaf73f3e
Parents: aaefc82
Author: humbedooh <hu...@apache.org>
Authored: Tue May 31 10:14:26 2016 +0200
Committer: humbedooh <hu...@apache.org>
Committed: Tue May 31 10:14:26 2016 +0200

----------------------------------------------------------------------
 source/generate.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail-site/blob/0e0d9eac/source/generate.py
----------------------------------------------------------------------
diff --git a/source/generate.py b/source/generate.py
index 2af484d..9c76c4f 100644
--- a/source/generate.py
+++ b/source/generate.py
@@ -20,6 +20,7 @@ def runDir(path):
             outfile = path.replace("markdown", "", 1) + outfile
             text = input_file.read()
             text = re.sub(r"~~~([\s\S]+?)~~~", "<pre>\\1</pre>", text, flags=re.MULTILINE)
+            text = re.sub(r"([A-Z/]+)\.md", lambda x: x.group(1).lower() + ".html", text, flags =re.MULTILINE)
             html = markdown.markdown(text)
             html = template.replace("%CONTENT%", html, 1)
             print("Writing %s..." % outfile)