logo

class

docCompiler::PodIndexToHtml

sys::Obj
  docCompiler::DocCompilerSupport
    docCompiler::PodIndexToHtml
  1  //
  2  // Copyright (c) 2007, Brian Frank and Andy Frank
  3  // Licensed under the Academic Free License version 3.0
  4  //
  5  // History:
  6  //   5 May 07  Brian Frank  Creation
  7  //
  8  
  9  using compiler
 10  
 11  **
 12  ** PodIndexToHtml generates the Index.html file
 13  ** for a specific pod if one wasn't manually provided.
 14  **
 15  class PodIndexToHtml : DocCompilerSupport
 16  {
 17  
 18    new make(DocCompiler compiler)
 19      : super(compiler)
 20    {
 21    }
 22  
 23    Void run()
 24    {
 25      log.debug("  Index [$compiler.pod]")
 26      if (compiler.fandocIndex != null) return
 27      file := compiler.podDir + "index.html".toUri
 28      loc  := Location.make("index.html")
 29      PodIndexGenerator.make(compiler, loc, file.out).generate
 30    }
 31  
 32  }

More Info

Slots