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


wcmgit.html
tlc.html
digzocean.html
tpb.html
bugit.html
sortbooks.html
adypost.html
pyEmailz.html
nbconv.html
master.html
pydog.html
spellcheckin.html
tlchome.html
jsonBehind.html
hamgar.html
markdown.html
wcmdocker.html
wirePIL.html
netcafe.html
tarpipe.html
ftpWCM.html
loop.html
rgdsnatch.html
metatime.html
skins.html
getdrawn.html
Untitled0.html
NumPyExplore.html
openimg.html
Untitled1.html
Game Of Thrones.html
pyatakl.html
json.html
pyssh.html
url redirect.html
whai.html
test.html
utils.html
karen.html
artcontrol.html
pynztacam.html
wallpapersav.html
redTube.html
hackbrobeur.html
flask-test.html
opche.html
index.html
scrapnot.html
reddit.html
wordpress.html
test-wp.html
aklmcam.html
webData.html

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>
<html>
  <head>
    <title>BroBeur Notebooks</title>
    <link href="style.css" rel="stylesheet">
    <script src="script.js" type="text/javascript"></script>
  </head>
  <body>
    <div id="header">
      <ol>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/wcmgit.html">wcmgit.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/tlc.html">tlc.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/digzocean.html">digzocean.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/tpb.html">tpb.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/bugit.html">bugit.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/sortbooks.html">sortbooks.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/adypost.html">adypost.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/pyEmailz.html">pyEmailz.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/nbconv.html">nbconv.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/master.html">master.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/pydog.html">pydog.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/spellcheckin.html">spellcheckin.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/tlchome.html">tlchome.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/jsonBehind.html">jsonBehind.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/hamgar.html">hamgar.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/markdown.html">markdown.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/wcmdocker.html">wcmdocker.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/wirePIL.html">wirePIL.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/netcafe.html">netcafe.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/tarpipe.html">tarpipe.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/ftpWCM.html">ftpWCM.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/loop.html">loop.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/rgdsnatch.html">rgdsnatch.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/metatime.html">metatime.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/skins.html">skins.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/getdrawn.html">getdrawn.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/Untitled0.html">Untitled0.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/NumPyExplore.html">NumPyExplore.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/openimg.html">openimg.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/Untitled1.html">Untitled1.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/Game Of Thrones.html">Game Of Thrones.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/pyatakl.html">pyatakl.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/json.html">json.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/pyssh.html">pyssh.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/url redirect.html">url redirect.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/whai.html">whai.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/test.html">test.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/utils.html">utils.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/karen.html">karen.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/artcontrol.html">artcontrol.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/pynztacam.html">pynztacam.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/wallpapersav.html">wallpapersav.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/redTube.html">redTube.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/hackbrobeur.html">hackbrobeur.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/flask-test.html">flask-test.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/opche.html">opche.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/index.html">index.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/scrapnot.html">scrapnot.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/reddit.html">reddit.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/wordpress.html">wordpress.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/test-wp.html">test-wp.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/aklmcam.html">aklmcam.html</a>
        </li>
        <li>
          <a href="http://brobeur.com/wcmckee-notebook/webData.html">webData.html</a>
        </li>
      </ol>
    </div>
    <div class="body">
      <p>Lorem ipsum..</p>
    </div>
  </body>
</html>

In [10]:


In [ ]: