summaryrefslogtreecommitdiffstats
path: root/Scruf.java
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2012-10-31 23:32:29 +0530
committerrsiddharth <rsiddharth@ninthfloor.org>2012-10-31 23:32:29 +0530
commite1804b3d0ef3be3db8be169043c6eae8a98bbc86 (patch)
tree028ceccfd1f006a051e789c081e539b234eaae61 /Scruf.java
parent1f61844084d9e9383b3be04ff8f60c11eb628075 (diff)
added:
status/ status/DirectoryInfo.java (record the directory 'level' at which scruf is parsing with respect to 'root' directory.) modified: Scruf.java (added a line to start the directory level count at zero) conversion/ConvertDirectory.java (DirectoryInfo.level used to take count of directory 'leve') conversion/ConvertFile.java (lines related to 'footer' things were removed) io/PresentFile.java ( 'footer' & 'backButton' field removed) parsers/BackButton.java (back button placement happens in the parse method itself, instead of doing it in Header.java) (back button is not placed, if the present directory is root directory) parsers/Footer.java (footer placement happens in the parse method itself, instead of doing it in Header.java) parsers/Header.java (back button placement & footer placement removed.)
Diffstat (limited to 'Scruf.java')
-rw-r--r--Scruf.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/Scruf.java b/Scruf.java
index d632faf..fc8b310 100644
--- a/Scruf.java
+++ b/Scruf.java
@@ -25,6 +25,7 @@ import java.io.*;
import scruf.io.*;
import scruf.conversion.*;
import scruf.styling.*;
+import scruf.status.*;
import scruf.index.*;
public class Scruf {
@@ -43,6 +44,7 @@ public class Scruf {
}
directory = new File(dir).getAbsoluteFile();
styleSheet.resolve(directory);
+ DirectoryInfo.level=0;
html.convert(directory);
}
}