mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +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:
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user