diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2013-08-14 18:55:52 +0530 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2013-08-14 18:55:52 +0530 |
commit | 4618d216ccee183068725cba0778ff753bb656a4 (patch) | |
tree | 842246e2366384d6b82ad8f9bd1e5c29396c44be /conversion/ConvertDirectory.java | |
parent | 54e4ec0cc7f0b58e747729a0c5260044ca4c370f (diff) | |
parent | 83e1bf5f0e299b9d99c8e2b01aacd5cda9a37d1c (diff) |
merged from the devel branch.
conversion/ConvertDirectory.java:
* Changes in how `index.scruff' files are parsed.
* StyleChecker checks where the stylesheet needs update/creation
parsers/CodeBlocks.java:
* code block tag changed from <div class="code"> --> <pre>
parsers/Images.java:
* image alt text formatted for nice viewing in text terminal
* SVGs are recognized by the parser now
parsers/QuoteSpecialText.java:
* regex changed:
styling/style.css
* lot of changes to the default CSS.
Diffstat (limited to 'conversion/ConvertDirectory.java')
-rw-r--r-- | conversion/ConvertDirectory.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/conversion/ConvertDirectory.java b/conversion/ConvertDirectory.java index 5a8cb17..9b002fe 100644 --- a/conversion/ConvertDirectory.java +++ b/conversion/ConvertDirectory.java @@ -50,6 +50,7 @@ public class ConvertDirectory { IndexCreator index = new IndexCreator(directory); // iterate through the directory. System.out.println("Current Directory: "+directory.getAbsolutePath()); + // the FileSieve parse for .scruffy files (except index.scruffy): for(File file:directory.listFiles(new FileSieve())) { if(file.isFile()) { can = canConvert.check(file); @@ -57,9 +58,6 @@ public class ConvertDirectory { System.out.println("Converting..."+file.getAbsolutePath()); html.convert(file); index.add(file); - // check for style sheet in the directory; create/update - // if needed. - styleSheet.check(directory); } } else if(file.isDirectory()) { @@ -77,6 +75,11 @@ public class ConvertDirectory { System.out.println("Converting..."+index.indexFile().getAbsolutePath()); html.convert(index.indexFile()); } + // check whether this directory has scruffy files: + if(index.indexFile().exists()) { + // create/update stylesheet if need. + styleSheet.check(directory); + } --DirectoryInfo.level; } |