navigate_results: added icon to the pages
This commit is contained in:
parent
bf4ad7f3b9
commit
4008cf68b1
|
|
@ -7,3 +7,4 @@ include kibot/kicad_layouts/*.kicad_wks
|
|||
include kibot/config_templates/gerber/*.yaml
|
||||
include kibot/config_templates/bom/*.yaml
|
||||
include kibot/images/*.svg
|
||||
include kibot/images/*.ico
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
|
|
@ -164,6 +164,7 @@ class Navigate_ResultsOptions(BaseOptions):
|
|||
f.write('<head>\n')
|
||||
f.write(' <meta charset="UTF-8">\n') # UTF-8 encoding for unicode support
|
||||
f.write(' <link rel="stylesheet" href="styles.css">\n')
|
||||
f.write(' <link rel="icon" href="favicon.ico">\n')
|
||||
f.write('</head>\n')
|
||||
f.write('<body>\n')
|
||||
name, ext = os.path.splitext(name)
|
||||
|
|
@ -193,6 +194,7 @@ class Navigate_ResultsOptions(BaseOptions):
|
|||
f.write('<head>\n')
|
||||
f.write(' <meta charset="UTF-8">\n') # UTF-8 encoding for unicode support
|
||||
f.write(' <link rel="stylesheet" href="styles.css">\n')
|
||||
f.write(' <link rel="icon" href="favicon.ico">\n')
|
||||
f.write('</head>\n')
|
||||
f.write('<body>\n')
|
||||
name, ext = os.path.splitext(name)
|
||||
|
|
@ -250,6 +252,7 @@ class Navigate_ResultsOptions(BaseOptions):
|
|||
self.home = name
|
||||
self.copy('images/back.svg')
|
||||
self.copy('images/home.svg')
|
||||
copy2(os.path.join(self.img_src_dir, 'images', 'favicon.ico'), os.path.join(self.out_dir, 'favicon.ico'))
|
||||
self.generate_page_for(o_tree, name)
|
||||
# Link it?
|
||||
if self.link_from_root:
|
||||
|
|
|
|||
Loading…
Reference in New Issue