In [2]:
from IPython.display import Image
In [3]:
brobeursite = ('/var/www/')
imgfold = (brobeursite + '/imgs/')
notebookdir = (brobeursite + '/wcmckee-notebook')
In [4]:
welcometobrobeurstudios = Image(filename= imgfold + 'brobeur.png')
In [5]:
welcometobrobeurstudios
Out[5]:
Let us list the Notebooks
In [6]:
import os
import dominate
from dominate.tags import *
In [7]:
lisnb = []
In [8]:
for fil in os.listdir(notebookdir):
#print fil
if '.html' in fil:
lisnb.append(fil)
In [9]:
for nbs in lisnb:
print nbs
In [10]:
nbdoc = dominate.document(title='BroBeur Notebooks')
with nbdoc.head:
link(rel='stylesheet', href='style.css')
script(type='text/javascript', src='script.js')
with nbdoc:
with div(id='header').add(ol()):
for nbs in lisnb:
li(a(nbs, href='http://brobeur.com/wcmckee-notebook/%s' % nbs))
with div():
attr(cls='body')
p('Lorem ipsum..')
print nbdoc
<!DOCTYPE html>
Lorem ipsum..
In [10]:
In [ ]: