We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53dc343 commit 83633c7Copy full SHA for 83633c7
1 file changed
circle_urls.py
@@ -13,12 +13,12 @@
13
files = glob("%s/*.html" %(site_dir))
14
15
# For each file, we need to replace all links to have correct .html extension
16
-search_names = [os.path.basename(f) for f in files]
+search_names = [os.path.basename(f).replace('.html','') for f in files]
17
for html_file in files:
18
with open(html_file,'r') as filey:
19
content = filey.read()
20
for search_name in search_names:
21
content = content.replace('%s"' %(search_name),'%s.html"' %(search_name))
22
- content = content.replace('/images/logo/logo.svg','http://singularity.lbl.gov/images/logo/logo.svg')
+ content = content.replace('/images/logo/logo.svg','http://singularity.lbl.gov/images/logo/logo.svg')
23
with open(html_file,'w') as filey:
24
filey.write(content)
0 commit comments