From 13d47319c2e234a28beb8f35158123dfe56b7e74 Mon Sep 17 00:00:00 2001 From: Chris Dolan Date: Wed, 18 Oct 2006 21:04:23 -0500 Subject: [PATCH] Work on docs: - Add explicit index.html for file:// browsing - Add MacOSX+Fink instructions - More Planet migration details - Clean up docs header a little --- docs/docs.css | 4 ++++ docs/docs.js | 9 ++++----- docs/installation.html | 42 ++++++++++++++++++++++++++++++++++++++++-- docs/migration.html | 18 ++++++++++++++++++ 4 files changed, 66 insertions(+), 7 deletions(-) diff --git a/docs/docs.css b/docs/docs.css index 5049baa..916db69 100644 --- a/docs/docs.css +++ b/docs/docs.css @@ -49,6 +49,10 @@ ul, ul.outer > li { margin: -15px 0 20px -15px !important; } +.z .logo { + color: magenta; +} + .z p { margin: 14px 0 10px 15px !important; } diff --git a/docs/docs.js b/docs/docs.js index 229b13c..001f7c8 100644 --- a/docs/docs.js +++ b/docs/docs.js @@ -2,7 +2,6 @@ window.onload=function() { var vindex = document.URL.lastIndexOf('venus/'); if (vindex<0) vindex = document.URL.lastIndexOf('planet/'); var base = document.URL.substring(0,vindex+6); - if (vindex<0) vindex = '..'; var body = document.getElementsByTagName('body')[0]; var div = document.createElement('div'); @@ -10,7 +9,7 @@ window.onload=function() { var h1 = document.createElement('h1'); var span = document.createElement('span'); span.appendChild(document.createTextNode('\u2640')); - span.setAttribute('style','color: magenta'); + span.setAttribute('class','logo'); h1.appendChild(span); h1.appendChild(document.createTextNode(' Planet Venus')); @@ -24,17 +23,17 @@ window.onload=function() { p = document.createElement('p'); var a = document.createElement('a'); - a.setAttribute('href',base); + a.setAttribute('href',base+'index.html'); a.appendChild(document.createTextNode('Download')); p.appendChild(a); p.appendChild(document.createTextNode(" \u00b7 ")); a = document.createElement('a'); - a.setAttribute('href',base+'docs/'); + a.setAttribute('href',base+'docs/index.html'); a.appendChild(document.createTextNode('Documentation')); p.appendChild(a); p.appendChild(document.createTextNode(" \u00b7 ")); a = document.createElement('a'); - a.setAttribute('href',base+'tests/'); + a.setAttribute('href',base+'tests/index.html'); a.appendChild(document.createTextNode('Unit tests')); p.appendChild(a); p.appendChild(document.createTextNode(" \u00b7 ")); diff --git a/docs/installation.html b/docs/installation.html index 8d62ad7..233087b 100644 --- a/docs/installation.html +++ b/docs/installation.html @@ -29,11 +29,16 @@ module which was introduced in Python 2.4. librdf. -

Instructions

+

General Instructions

+ +

+These instructions apply to any platform. Check the instructions +below for more specific instructions for your platform. +

  1. If you are reading this online, you will need to -download and extract the files into a folder somewhere. +download and extract the files into a folder somewhere. You can place this wherever you like, ~/planet and ~/venus are good choices, but so's anywhere else you prefer.

  2. @@ -63,5 +68,38 @@ right directory.

  3. (Optional)

    Build your own themes, templates, or filters! And share!

+ +

Mac OS X and Fink Instructions

+ +

+The Fink Project packages +various open source software for MacOS. This makes it a little easier +to get started with projects like Planet Venus. +

+ +

+Note: in the following, we recommend explicitly +using python2.4. As of this writing, Fink is starting to +support python2.5 but the XML libraries, for example, are +not yet ported to the newer python so Venus will be less featureful. +

+ +
    +
  1. Install the XCode development tools from your Mac OS X install + disks

  2. +
  3. Download + and install Fink

  4. +
  5. Tell fink to install the Planet Venus prerequisites:
    + fink install python24 celementtree-py24 bzr-py24 libxslt-py24 + libxml2-py24

  6. +
  7. Download and extract the Venus files into a + folder somewhere

  8. +
  9. Run the tests: python2.4 runtests.py
    This + will warn you that the RDF library is missing, but that's + OK.

  10. +
  11. Continue with the general steps above, starting with Step 3. You + may want to explicitly specify python2.4.

  12. +
+ diff --git a/docs/migration.html b/docs/migration.html index 36072f6..d97ce6e 100644 --- a/docs/migration.html +++ b/docs/migration.html @@ -19,6 +19,24 @@ of the cache has changed dramatically. though some configuration options (e.g., days_per_page) have not yet been implemented
  • No testing has been done on Python 2.1, and it is presumed not to work.
  • +
  • To take advantage of all features, you should install the optional +XML and RDF libraries described on +the Installation page.
  • + + +

    +Common changes to config.ini include: +

    +