Exemplo n.º 1
0
    def DoTask(self):
        tmpDir = join(self.buildSetup.tmpDir, "chm")
        Prepare()
        #warnings.simplefilter('ignore', DeprecationWarning)
        sphinx.build_main([
            None,
            "-a",  # always write all output files
            "-b",
            "htmlhelp",
            "-E",  # Don’t use a saved environment (the structure
            # caching all cross-references),
            "-N",  # Prevent colored output.
            "-P",  # (Useful for debugging only.) Run the Python debugger,
            # pdb, if an unhandled exception occurs while building.
            "-D",
            "release=%s" % self.buildSetup.appVersion,
            "-D",
            "templates_path=[]",
            "-d",
            EncodePath(join(self.buildSetup.tmpDir, ".doctree")),
            EncodePath(DOCS_SOURCE_DIR),
            tmpDir,
        ])

        print "calling HTML Help Workshop compiler"
        htmlHelpCompilerPath = GetHtmlHelpCompilerPath()
        if htmlHelpCompilerPath is None:
            raise Exception(
                "HTML Help Workshop command line compiler not found")
        hhpPath = join(tmpDir, "EventGhost.hhp")
        StartProcess(htmlHelpCompilerPath, hhpPath)
        shutil.copy(join(tmpDir, "EventGhost.chm"), self.buildSetup.sourceDir)
Exemplo n.º 2
0
    def DoTask(self):
        tmpDir = join(self.buildSetup.tmpDir, "chm")
        Prepare()
        #warnings.simplefilter('ignore', DeprecationWarning)
        sphinx.main([
            None,
            #"-a",
            "-b",
            "htmlhelp",
            "-E",
            "-P",
            "-D",
            "release=%s" % eg.Version.base,
            "-D",
            "templates_path=[]",
            "-d",
            EncodePath(join(self.buildSetup.tmpDir, ".doctree")),
            EncodePath(DOCS_SOURCE_DIR),
            tmpDir,
        ])

        print "calling HTML Help Workshop compiler"
        htmlHelpCompilerPath = GetHtmlHelpCompilerPath()
        if htmlHelpCompilerPath is None:
            raise Exception(
                "HTML Help Workshop command line compiler not found")
        hhpPath = join(tmpDir, "EventGhost.hhp")
        StartProcess(htmlHelpCompilerPath, hhpPath)
        shutil.copy(join(tmpDir, "EventGhost.chm"), self.buildSetup.sourceDir)
Exemplo n.º 3
0
    def DoTask(self):
        tmpDir = join(self.buildSetup.tmpDir, "chm")
        call_sphinx('htmlhelp', self.buildSetup, tmpDir)

        print "calling HTML Help Workshop compiler"
        htmlHelpCompilerPath = GetHtmlHelpCompilerPath()
        if htmlHelpCompilerPath is None:
            raise Exception(
                "HTML Help Workshop command line compiler not found")
        hhpPath = join(tmpDir, "EventGhost.hhp")
        StartProcess(htmlHelpCompilerPath, hhpPath)
        shutil.copy(join(tmpDir, "EventGhost.chm"), self.buildSetup.sourceDir)
Exemplo n.º 4
0
 def Check(self):
     if not GetHtmlHelpCompilerPath():
         raise MissingDependency