original_docstring: 
      Check if previous installation present
      Creates empty documentation if none detected
      :return:
      
docstring: Check if previous installation present
  Creates empty documentation if none detected
docstring_tokens: Check if previous installation present Creates empty documentation if none detected
code: def _check_previous_installation():
      """
      Check if previous installation present
      Creates empty documentation if none detected
      :return:
      """
      if not os.path.exists(docks_dir + '/mkdocs.yml'):
          print(colored(
              f'No documentation found in ({docks_dir}). Creating new one.', 'yellow'))
          if not os.path.exists(docks_dir):
              os.mkdir(docks_dir)
          print(colored(f'Starting fresh installation', 'green'))
          os.system(f'mkdocs new {docks_dir}/')
      else:
          print(
              colored(f'Detected previous installation in ({docks_dir}).', 'green'))
code_tokens: def _check_previous_installation ( ) : if not os . path . exists ( docks_dir + '/mkdocs.yml' ) : print ( colored ( f'No documentation found in ({docks_dir}). Creating new one.' , 'yellow' ) ) if not os . path . exists ( docks_dir ) : os . mkdir ( docks_dir ) print ( colored ( f'Starting fresh installation' , 'green' ) ) os . system ( f'mkdocs new {docks_dir}/' ) else : print ( colored ( f'Detected previous installation in ({docks_dir}).' , 'green' ) )
short_docstring: Check if previous installation present
  Creates empty documentation if none detected
short_docstring_tokens: Check if previous installation present Creates empty documentation if none detected
comment: """
      Check if previous installation present
      Creates empty documentation if none detected
      :return:
      """