UriMapper is used to normalize fandoc URIs into hrefs to their HTML file representation using relative URLs.
Slots
- compilerSource
-
override DocCompiler compiler
Overrides docCompiler::DocCompilerSupport.compiler
- doMapSource
-
virtual Uri? doMap(Str fandocUri, Loc loc)
Given a fandoc uri string, map it to a relative URL to the resource's HTML or return null if it cannot be mapped. If the fandocUri should be formatted as using a code font then set targetIsCode.
-
internal Str:FandocFrags fandocFrags := [Str:FandocFrags][:]
- fandocUriSource
-
Str? fandocUri
- fragSource
-
Str? frag
- locSource
-
Loc? loc
- makeSource
-
new make(DocCompiler compiler)
- mapSource
-
Uri map(Str fandocUri, Loc loc)
Given a fandoc uri string, map it to a relative URL to the resource's HTML by setting targetUri, targetIsCode and targetIsSlot fields. If the URI cannot be mapped then an error is logged.
-
private Void mapPod()
-
private FandocFrags parseFandocFrags(File f)
- targetIsCodeSource
-
Bool targetIsCode
- targetIsSlotSource
-
Bool targetIsSlot
- targetUriSource
-
Uri? targetUri