parameters: (env, target, source=None, *args, **kw)
return_statement: return result
docstring: A pseudo-Builder, providing a Docbook toolchain for HTMLHELP output.
docstring_summary: A pseudo-Builder, providing a Docbook toolchain for HTMLHELP output.
docstring_tokens: A pseudo - Builder providing a Docbook toolchain for HTMLHELP output .
function: def DocbookHtmlhelp(env, target, source=None, *args, **kw):
      """
      A pseudo-Builder, providing a Docbook toolchain for HTMLHELP output.
      """
      # Init target/source
      if not SCons.Util.is_List(target):
          target = [target]
      if not source:
          source = target
          target = ['index.html']
      elif not SCons.Util.is_List(source):
          source = [source]
  
      # Init XSL stylesheet
      __init_xsl_stylesheet(kw, env, '$DOCBOOK_DEFAULT_XSL_HTMLHELP', ['htmlhelp','htmlhelp.xsl'])
  
      # Setup builder
      __builder = __select_builder(__lxml_noresult_builder, __xsltproc_nobase_builder)
  
      # Detect base dir
      base_dir = kw.get('base_dir', '')
      if base_dir:
          __create_output_dir(base_dir)
  
      # Create targets
      result = []
      r = __builder.__call__(env, __ensure_suffix(str(target[0]), '.html'), source[0], **kw)
      env.Depends(r, kw['DOCBOOK_XSL'])
      result.extend(r)
      # Add supporting files for cleanup
      env.Clean(r, ['toc.hhc', 'htmlhelp.hhp', 'index.hhk'] +
                   glob.glob(os.path.join(base_dir, '[ar|bk|ch]*.html')))
  
      return result
function_tokens: def DocbookHtmlhelp ( env , target , source = None , * args , * * kw ) : # Init target/source if not SCons . Util . is_List ( target ) : target = [ target ] if not source : source = target target = [ 'index.html' ] elif not SCons . Util . is_List ( source ) : source = [ source ] # Init XSL stylesheet __init_xsl_stylesheet ( kw , env , '$DOCBOOK_DEFAULT_XSL_HTMLHELP' , [ 'htmlhelp' , 'htmlhelp.xsl' ] ) # Setup builder __builder = __select_builder ( __lxml_noresult_builder , __xsltproc_nobase_builder ) # Detect base dir base_dir = kw . get ( 'base_dir' , '' ) if base_dir : __create_output_dir ( base_dir ) # Create targets result = [ ] r = __builder . __call__ ( env , __ensure_suffix ( str ( target [ 0 ] ) , '.html' ) , source [ 0 ] , * * kw ) env . Depends ( r , kw [ 'DOCBOOK_XSL' ] ) result . extend ( r ) # Add supporting files for cleanup env . Clean ( r , [ 'toc.hhc' , 'htmlhelp.hhp' , 'index.hhk' ] + glob . glob ( os . path . join ( base_dir , '[ar|bk|ch]*.html' ) ) ) return result