Re: [Rest2web-develop] Section headers
Brought to you by:
mjfoord
From: Michael F. <fuz...@vo...> - 2006-08-05 13:18:47
|
martin f krafft wrote: > > I am now running up against a new problem, testing: > > $ r2w > [...] > Building contact.html > [...] > Processing "sub" directory. > $ mkdir foo > $ cp contact.txt foo/bar.txt > $ r2w > [...] > Building contact.html > Skipping "contact.html". Identical file exists. > [...] > Processing "foo" directory. > > Processing "sub" directory. > [...] > > It's just ignoring the foo/bar.txt file... > A directory is *only* processed if it has an index.txt. rest2web is designed to create sites that are structured using directories. Each directory can optionally be divided into sections. It is expected that each directory has an index page (because they are rendered differently, and rest2web needs to know which one is the index page). If you *don't* want the main page in a directory to be called 'index.html' there are a couple of ways of achieving this. Index page is called index.txt : restindex target: bar.html /restindex You want the index page to be called something else. You will still need an index.txt for the directory to be processed : restindex index-file: bar.txt /restindex All the best, Fuzzyman http://www.voidspace.org.uk/python/index.shtml |