From 04fb411a2234f1ed625bfe2930453db5b2c748b2 Mon Sep 17 00:00:00 2001 From: "Dr. Drang" Date: Fri, 28 May 2010 22:19:32 -0500 Subject: [PATCH] All links are now relative or generated dynamically by JavaScript. --- buildNotesList.py | 4 ++-- buildPage.py | 2 +- footer.tmpl | 11 +++++++---- header.tmpl | 12 +++++++----- project.info | 1 - 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/buildNotesList.py b/buildNotesList.py index dd70f32..c361e19 100644 --- a/buildNotesList.py +++ b/buildNotesList.py @@ -28,7 +28,7 @@ def nameList(dir): count += len(w) + 1 title = ' '.join(twords) + "…" f.close() - fileLI.append('
  • %s
  • ' % (os.path.join(d, fn),title)) + fileLI.append('
  • %s
  • ' % (os.path.join(d, fn),title)) return fileLI # Find all the directories that have md files. @@ -52,6 +52,6 @@ def nameList(dir): # print linkList linkList += ['', ''] -print '''function showNotesList(){ +print '''function showNotesList(root){ document.write('%s') }''' % ''.join(linkList) diff --git a/buildPage.py b/buildPage.py index 1eadd33..2bd2bbe 100755 --- a/buildPage.py +++ b/buildPage.py @@ -66,7 +66,7 @@ projInfo.close() -# Dictionary entry with absolute path to project info file (for editing). +# Dictionary entry with path to project info file (for editing). info['infopath'] = os.path.abspath('project.info') # Convert the contacts into a series of HTML list items. diff --git a/footer.tmpl b/footer.tmpl index 995f7cb..10bace8 100755 --- a/footer.tmpl +++ b/footer.tmpl @@ -1,10 +1,13 @@

    - Source: $mdpath
    - Last modified: $modldate at $modtime
    - + Source: +
    + Last modified: $modldate at $modtime
    +

    - \ No newline at end of file + diff --git a/header.tmpl b/header.tmpl index 265889f..93e294d 100755 --- a/header.tmpl +++ b/header.tmpl @@ -8,7 +8,7 @@ - +
    @@ -19,7 +19,7 @@
    \ No newline at end of file diff --git a/project.info b/project.info index e831766..0c7b747 100755 --- a/project.info +++ b/project.info @@ -1,4 +1,3 @@ -base = file:///Users/mark/notes/ jsmathpath = file:///Users/mark/Library/JavaScript/jsMath/easy/load.js projname = Project Name projnumber = 9999