mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-05 21:12:48 +00:00
docs[minor],community[patch]: Minor tutorial docs improvement, minor import error quick fix. (#22725)
minor changes to module import error handling and minor issues in tutorial documents. --------- Co-authored-by: Bagatur <baskaryan@gmail.com> Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com> Co-authored-by: Eugene Yurtsev <eugene@langchain.dev>
This commit is contained in:
@@ -24,7 +24,7 @@ _IMPORT_RE = re.compile(
|
||||
|
||||
_CURRENT_PATH = Path(__file__).parent.absolute()
|
||||
# Directory where generated markdown files are stored
|
||||
_DOCS_DIR = _CURRENT_PATH / "docs"
|
||||
_DOCS_DIR = _CURRENT_PATH.parent.parent / "docs"
|
||||
|
||||
|
||||
def find_files(path):
|
||||
@@ -75,6 +75,7 @@ def main():
|
||||
|
||||
for file in find_files(args.docs_dir):
|
||||
file_imports = replace_imports(file)
|
||||
print(file)
|
||||
|
||||
if file_imports:
|
||||
# Use relative file path as key
|
||||
|
Reference in New Issue
Block a user