java.lang.Object
org.jdrupes.mdoclet.internal.doclets.formats.html.HtmlDocletWriter
org.jdrupes.mdoclet.internal.doclets.formats.html.SearchWriter

public class SearchWriter extends HtmlDocletWriter
Generates the search landing page for the generated API documentation.
  • Konstruktordetails

    • SearchWriter

      public SearchWriter(HtmlConfiguration configuration, DocPath filename)
      Constructor to construct SearchWriter object.
      Parameter:
      configuration - the configuration
      filename - file to be generated
  • Methodendetails

    • generate

      public static void generate(HtmlConfiguration configuration) throws DocFileIOException
      Constructs the SearchWriter object and then use it to generate the search file.

      The name of the generated file is “search.html”. The search file will get generated if and only if “-noindex” is not used on the command line.

      Parameter:
      configuration - the configuration
      Löst aus:
      DocFileIOException - if there is a problem while generating the documentation
    • generateSearchFile

      protected void generateSearchFile() throws DocFileIOException
      Generates the search file contents.
      Löst aus:
      DocFileIOException - if there is a problem while generating the documentation
    • addSearchFileContents

      protected void addSearchFileContents(Content contentTree)
      Adds the search file contents to the content tree.