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:
parent
384e791b16
commit
85ad8d0526
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue