Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for rename (0.41 sec)

  1. scripts/mkdocs_hooks.py

        return files
    
    
    def generate_renamed_section_items(
        items: List[Union[Page, Section, Link]], *, config: MkDocsConfig
    ) -> List[Union[Page, Section, Link]]:
        new_items: List[Union[Page, Section, Link]] = []
        for item in items:
            if isinstance(item, Section):
                new_title = item.title
                new_children = generate_renamed_section_items(item.children, config=config)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 24 20:26:06 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  2. configure.py

      return answer
    
    
    def symlink_force(target, link_name):
      """Force symlink, equivalent of 'ln -sf'.
    
      Args:
        target: items to link to.
        link_name: name of the link.
      """
      try:
        os.symlink(target, link_name)
      except OSError as e:
        if e.errno == errno.EEXIST:
          os.remove(link_name)
          os.symlink(target, link_name)
        else:
          raise e
    
    
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
Back to top