Fix `endsWith` path check on Windows (#9)

The `endsWith` check with the backslash causes `mkdocs serve/build` to fail when run on Windows. This commit removes this and just checks to see if the filename is correct.
This commit is contained in:
Safia Abdalla 2019-12-21 16:01:54 -08:00 committed by Bilawal Hameed
parent 384e791b16
commit 85ad8d0526
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class IncludeNavLoader:
return self.absNavPath
def read(self):
if not self.absNavPath.endswith("/mkdocs.yml"):
if not self.absNavPath.endswith("mkdocs.yml"):
log.critical(
"[mkdocs-monorepo] The included file path {} does not point to a mkdocs.yml".format(
self.absNavPath)