src_docs/make_docs.py
def _run_sphinx(self):
        """
        Call Sphinx command with hard-coded "html" target
        """
        build_dir = os.path.join(self.html_output_dir, "html")

        if self.is_release:
            version_list = [
                line.rstrip('\n').split(' ')[1]
                for line in open('../src/version.txt')
            ]
            release_version = '.'.join(version_list[:3])
            print("Building docs for release:", release_version)

            cmd = [
                "sphinx-build",
                "-b",
                "html",
                "-D",
                "version=" + release_version,
                "-D",
                "release=" + release_version,
                "-j",
                str(multiprocessing.cpu_count()),
                ".",
                build_dir,
            ]
        else:
            cmd = [
                "sphinx-build",
                "-b",
                "html",
                "-j",
                str(multiprocessing.cpu_count()),
                ".",
                build_dir,
            ]
        print('Calling: "%s"' % " ".join(cmd))
        subprocess.check_call(cmd, stdout=sys.stdout, stderr=sys.stderr)

        Call Sphinx command with hard-coded "html" target
        
Call Sphinx command with hard-coded "html" target
Call Sphinx command with hard - coded " html " target
def _run_sphinx(self):
        build_dir = os.path.join(self.html_output_dir, "html")
        if self.is_release:
            version_list = [
                line.rstrip('\n').split(' ')[1]
                for line in open('../src/version.txt')
            ]
            release_version = '.'.join(version_list[:3])
            print("Building docs for release:", release_version)
            cmd = [
                "sphinx-build",
                "-b",
                "html",
                "-D",
                "version=" + release_version,
                "-D",
                "release=" + release_version,
                "-j",
                str(multiprocessing.cpu_count()),
                ".",
                build_dir,
            ]
        else:
            cmd = [
                "sphinx-build",
                "-b",
                "html",
                "-j",
                str(multiprocessing.cpu_count()),
                ".",
                build_dir,
            ]
        print('Calling: "%s"' % " ".join(cmd))
        subprocess.check_call(cmd, stdout=sys.stdout, stderr=sys.stderr)
def _run_sphinx ( self ) : build_dir = os . path . join ( self . html_output_dir , "html" ) if self . is_release : version_list = [ line . rstrip ( '\n' ) . split ( ' ' ) [ 1 ] for line in open ( '../src/version.txt' ) ] release_version = '.' . join ( version_list [ : 3 ] ) print ( "Building docs for release:" , release_version ) cmd = [ "sphinx-build" , "-b" , "html" , "-D" , "version=" + release_version , "-D" , "release=" + release_version , "-j" , str ( multiprocessing . cpu_count ( ) ) , "." , build_dir , ] else : cmd = [ "sphinx-build" , "-b" , "html" , "-j" , str ( multiprocessing . cpu_count ( ) ) , "." , build_dir , ] print ( 'Calling: "%s"' % " " . join ( cmd ) ) subprocess . check_call ( cmd , stdout = sys . stdout , stderr = sys . stderr )
Call Sphinx command with hard-coded "html" target
Call Sphinx command with hard - coded " html " target
"""
        Call Sphinx command with hard-coded "html" target
        """
self