mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-19 08:09:21 +03:00
infra: check doc script skip index page (#25088)
This commit is contained in:
1 parent
e572521f2a
commit
423d286546
1 file changed
+3
@@ -52,6 +52,9 @@ def _get_headers(doc_dir: str) -> Iterable[str]:
|
||||
|
||||
|
||||
def check_header_order(path: Path) -> None:
|
||||
if path.name.startswith("index."):
|
||||
# skip index pages
|
||||
return
|
||||
doc_dir = path.parent.name
|
||||
if doc_dir not in INFO_BY_DIR:
|
||||
# Skip if not a directory we care about
|
||||
|
||||
Reference in new issue
Block a user