From ee3edbc7470502cbc37607d8a8ac91744f1787f3 Mon Sep 17 00:00:00 2001 From: isaac hershenson Date: Tue, 18 Jun 2024 15:59:31 -0700 Subject: [PATCH] second draft --- docs/_scripts/copy_notebooks.py | 6 +++--- docs/mkdocs.yml | 16 ++++++++-------- ...iguration.ipynb => configuration_cloud.ipynb} | 0 ...-loop.ipynb => human-in-the-loop_cloud.ipynb} | 0 4 files changed, 11 insertions(+), 11 deletions(-) rename examples/cloud_examples/{configuration.ipynb => configuration_cloud.ipynb} (100%) rename examples/cloud_examples/{human-in-the-loop.ipynb => human-in-the-loop_cloud.ipynb} (100%) diff --git a/docs/_scripts/copy_notebooks.py b/docs/_scripts/copy_notebooks.py index 82d41ce00..90342599c 100644 --- a/docs/_scripts/copy_notebooks.py +++ b/docs/_scripts/copy_notebooks.py @@ -8,7 +8,7 @@ examples_dir = root_dir / "examples" docs_dir = root_dir / "docs/docs" how_tos_dir = docs_dir / "how-tos" tutorials_dir = docs_dir / "tutorials" -cloud_how_tos_dir = docs_dir / "deploy/how-tos" +cloud_how_tos_dir = docs_dir / "deploy/how_tos" _MANUAL = { "how-tos": [ @@ -95,6 +95,8 @@ def copy_notebooks(): continue if any(path in _HOW_TOS for path in root.split(os.sep)): dst_dir = how_tos_dir + elif 'cloud_examples' in root.split(os.sep): + dst_dir = cloud_how_tos_dir else: dst_dir = tutorials_dir for file in files: @@ -117,7 +119,6 @@ def copy_notebooks(): ) print(f"Overriding: {src_path} to {dst_path}") break - ''' # Avoid double nesting. dst_path = dst_path.replace("tutorials/tutorials", "tutorials").replace( "how-tos/how-tos", "how-tos" @@ -142,7 +143,6 @@ def copy_notebooks(): # src_path = os.path.join(examples_dir, file) # dst_path = os.path.join(docs_dir, "how-tos", file.name) # shutil.copy(src_path, dst_path) - ''' if __name__ == "__main__": clean_notebooks() diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index ae751854c..41bc8c90e 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -176,14 +176,14 @@ nav: - Managed: 'deploy/deployment/managed.md' - How-to Guides: - Streaming: - - Stream Messaages: 'deploy/how_tos/stream_messages.ipynb' - - Stream Values: 'deploy/how_tos/stream_values.ipynb' - - Stream Updates: 'deploy/how_tos/stream_updates.ipynb' - - Double Texting: 'deploy/how_tos/double_texting.ipynb' - - Run Agent in Background: 'deploy/how_tos/background_run.ipynb' - - Run Multiple Agents in Thread: 'deploy/how_tos/same-thread.ipynb' - - Human in the loop: 'deploy/how_tos/human-in-the-loop.ipynb' - - Create Agents with Configuration: 'deploy/how_tos/configuration.ipynb'' + - Stream Messaages: 'deploy/how_tos/cloud_examples/stream_messages.ipynb' + - Stream Values: 'deploy/how_tos/cloud_examples/stream_values.ipynb' + - Stream Updates: 'deploy/how_tos/cloud_examples/stream_updates.ipynb' + - Double Texting: 'deploy/how_tos/cloud_examples/double_texting.ipynb' + - Run Agent in Background: 'deploy/how_tos/cloud_examples/background_run.ipynb' + - Run Multiple Agents in Thread: 'deploy/how_tos/cloud_examples/same-thread.ipynb' + - Human in the loop: 'deploy/how_tos/cloud_examples/human-in-the-loop_cloud.ipynb' + - Create Agents with Configuration: 'deploy/how_tos/cloud_examples/configuration_cloud.ipynb' markdown_extensions: diff --git a/examples/cloud_examples/configuration.ipynb b/examples/cloud_examples/configuration_cloud.ipynb similarity index 100% rename from examples/cloud_examples/configuration.ipynb rename to examples/cloud_examples/configuration_cloud.ipynb diff --git a/examples/cloud_examples/human-in-the-loop.ipynb b/examples/cloud_examples/human-in-the-loop_cloud.ipynb similarity index 100% rename from examples/cloud_examples/human-in-the-loop.ipynb rename to examples/cloud_examples/human-in-the-loop_cloud.ipynb