We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60848f8 commit ccd602aCopy full SHA for ccd602a
circle.yml
@@ -15,3 +15,4 @@ general:
15
test:
16
post:
17
- bundle exec jekyll build
18
+ - python circle_urls.py ./_site
circle_urls.py
@@ -0,0 +1,17 @@
1
+#!/usr/bin/env python
2
+
3
+'''
4
+circle_urls.py will rename all url files to not have extension .html
5
6
+import sys
7
+import os
8
+from glob import glob
9
10
+site_dir = os.path.abspath(sys.argv[1])
11
+print("Using site directory %s" %(site_dir))
12
13
+files = glob("%s/*.html" %(site_dir))
14
+for html_file in files:
+ new_name = html_file.strip('.html')
+ print("Renaming %s to %s." %(html_file,new_name))
+ os.rename(html_file, new_name)
0 commit comments