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.
This commit is contained in:
		
							
								
								
									
										
											BIN
										
									
								
								lib/runtime/jar/commons-lang3-3.1.jar
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								lib/runtime/jar/commons-lang3-3.1.jar
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								lib/runtime/jar/jdb-util-1.5.2.jar
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								lib/runtime/jar/jdb-util-1.5.2.jar
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user