parameters: (self)
docstring: Call Sphinx command with hard-coded "html" target
docstring_summary: Call Sphinx command with hard-coded "html" target
docstring_tokens: Call Sphinx command with hard - coded html target
function: def run(self):
          """
          Call Sphinx command with hard-coded "html" target
          """
          # Copy docs files from Open3D-ML repo
          open3d_ml_root = os.environ.get(
              "OPEN3D_ML_ROOT",
              os.path.join(self.current_file_dir, "../../Open3D-ML"))
          open3d_ml_docs = [
              os.path.join(open3d_ml_root, "docs", "tensorboard.md")
          ]
          for open3d_ml_doc in open3d_ml_docs:
              if os.path.isfile(open3d_ml_doc):
                  shutil.copy(open3d_ml_doc, self.current_file_dir)
  
          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("../cpp/open3d/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,
                  ".",
                  build_dir,
              ]
          else:
              cmd = [
                  "sphinx-build",
                  "-b",
                  "html",
                  ".",
                  build_dir,
              ]
  
          sphinx_env = os.environ.copy()
          sphinx_env[
              "skip_notebooks"] = "true" if self.skip_notebooks else "false"
  
          print('Calling: "%s"' % " ".join(cmd))
          print('Env: "%s"' % sphinx_env)
          subprocess.check_call(cmd,
                                env=sphinx_env,
                                stdout=sys.stdout,
                                stderr=sys.stderr)
function_tokens: def run ( self ) : # Copy docs files from Open3D-ML repo open3d_ml_root = os . environ . get ( "OPEN3D_ML_ROOT" , os . path . join ( self . current_file_dir , "../../Open3D-ML" ) ) open3d_ml_docs = [ os . path . join ( open3d_ml_root , "docs" , "tensorboard.md" ) ] for open3d_ml_doc in open3d_ml_docs : if os . path . isfile ( open3d_ml_doc ) : shutil . copy ( open3d_ml_doc , self . current_file_dir ) 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 ( "../cpp/open3d/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 , "." , build_dir , ] else : cmd = [ "sphinx-build" , "-b" , "html" , "." , build_dir , ] sphinx_env = os . environ . copy ( ) sphinx_env [ "skip_notebooks" ] = "true" if self . skip_notebooks else "false" print ( 'Calling: "%s"' % " " . join ( cmd ) ) print ( 'Env: "%s"' % sphinx_env ) subprocess . check_call ( cmd , env = sphinx_env , stdout = sys . stdout , stderr = sys . stderr )