def _CleanChars()

in DocBuild.py [0:0]


    def _CleanChars(self, p: str) -> str:
        '''mkdocs doesn't support all valid url chars so if they exist in the path they need to
        be removed.  Once such example is the . char.  This is valid but not with mkdocs'''

        # Bug filed here: https://github.com/mkdocs/mkdocs/issues/1924
        d, e = os.path.splitext(p)  # split the path and extension so we can change path
        d = d.replace(".", "")
        d = d.replace(" ", "_")
        return d + e