mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-06 03:27:55 +00:00
infra: check doc script skip index page (#25088)
This commit is contained in:
parent
e572521f2a
commit
423d286546
@ -52,6 +52,9 @@ def _get_headers(doc_dir: str) -> Iterable[str]:
|
|||||||
|
|
||||||
|
|
||||||
def check_header_order(path: Path) -> None:
|
def check_header_order(path: Path) -> None:
|
||||||
|
if path.name.startswith("index."):
|
||||||
|
# skip index pages
|
||||||
|
return
|
||||||
doc_dir = path.parent.name
|
doc_dir = path.parent.name
|
||||||
if doc_dir not in INFO_BY_DIR:
|
if doc_dir not in INFO_BY_DIR:
|
||||||
# Skip if not a directory we care about
|
# Skip if not a directory we care about
|
||||||
|
Loading…
Reference in New Issue
Block a user