Commit Graph

5 Commits

Author SHA1 Message Date
Jonathan Bernard
5028d38e35 Syntax highlighting, refactor of link resolution.
* Added syntax highlighting using SyntaxHighlighter v3.0.83
  (see https://github.com/alexgorbatchev/SyntaxHighlighter)
* Modified Directive to have a link to the DocBlock that contains it. Modified
  JLPPegParser to account for this change.
* Modified LinkAnchor to include the ASTNode defining it. Also added
  LinkAnchorType enum to facilitate different types of links.
* LiterateMarkdownGenerator is now escaping HTML characters in the code sections
  and other places it is appropriate.
* Refactored the link resolution process. Added a new method
  `Processor.resolveLink(String, TargetDoc)` that now resolves a URL or URL
  fragment relative to the current output context. This function also takes over
  the job of resolving JLP links to link anchors and generating the correct URL.
  LiterateMarkdownGenerator now calls this instead of doing all the work itself.
* To support the syntax highlighter, the JarUtil class from com.jdbernard.util
  is included and the syntax highlighter resources are extracted into the output
  directory from a resource jar stored in the JLP main jar.
* The CSS and other assets for the output are no longer copied into every
  output directory, but now stored at the output root and linked correctly into
  the output files.
* Added references to the source file and file type for TargetDocs instead of
  computing them on the fly during processing.
2012-01-02 20:29:36 -06:00
Jonathan Bernard
bfc0c12127 Hidden files are ignored. Added --version option and logging.
* Added logging with SLF4J and Logback
* Added `--version` option.
* Mofidied the input file rules. When an input object is a directory, JLPMain is
  adding all the files in that directory and its subdirectories. Now JLPMain is
  ignoring hidden files in the directory and subdirs. A file named explicitly on
  the command line is still included regardless of if it is hidden or not.
* Documentation continues.
2011-12-29 10:53:14 -06:00
Jonathan Bernard
4bac35ef0b Release 0.1 is ready
* Tweaked CSS.
* Finished basic implementation of JLPMain (lots of thihngs are hardwired).
2011-09-06 17:10:36 -05:00
Jonathan Bernard
e8ebcd4998 Sorting out Parboiled issues. Initial parser draft complete.
* Created test script.
* Created working parser.
2011-08-25 17:08:55 -05:00
Jonathan Bernard
f65d1fc030 Initial commit. 2011-08-22 15:54:38 -05:00