More infos in dev mode for build.py
This commit is contained in:
parent
a7adc7aaa9
commit
75b7d38ed5
12
build.py
12
build.py
@ -513,8 +513,15 @@ for header in fileStruct:
|
|||||||
content = FixInternalLinks(links, content, header['title'])
|
content = FixInternalLinks(links, content, header['title'])
|
||||||
|
|
||||||
# Add header information to the page if in dev mode
|
# Add header information to the page if in dev mode
|
||||||
if devmode and 'link' in header:
|
if devmode:
|
||||||
content = '<h1>link: ' + header['link'] + '</h1>\n<br><br>\n' + content
|
devnote ='<aside style="background-color:indigo; color:white;">'
|
||||||
|
if 'filename' in header:
|
||||||
|
devnote = devnote + 'filename: ' + header['filename'] + '<br>'
|
||||||
|
if 'include' in header:
|
||||||
|
devnote = devnote + 'include: ' + header['include'] + '<br>'
|
||||||
|
if 'link' in header:
|
||||||
|
devnote = devnote + 'link: ' + header['link'] + '<br>'
|
||||||
|
content = devnote + '</aside>' + content
|
||||||
|
|
||||||
# Set up the actual page from the template
|
# Set up the actual page from the template
|
||||||
if 'style' not in header:
|
if 'style' not in header:
|
||||||
@ -560,4 +567,3 @@ tocFile.close()
|
|||||||
|
|
||||||
if not quiet:
|
if not quiet:
|
||||||
print('Processed ' + str(fileCount) + ' files.')
|
print('Processed ' + str(fileCount) + ' files.')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user