From 3b224df5660e760885545befb81ed1011d0488bc Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Tue, 4 Feb 2025 16:56:33 -0500 Subject: [PATCH] publish llms text (#3313) just includes llms-full --- .github/workflows/deploy_docs.yml | 3 ++- docs/Makefile | 5 ++++- docs/_scripts/generate_llms_text.py | 4 ---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 58bcfbde3..204f8c8cf 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -81,7 +81,8 @@ jobs: run: make build-docs env: MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.MKDOCS_GIT_COMMITTERS_APIKEY }} - + - name: Build llms-text + run: make llms-text - name: Check links in notebooks env: LANGCHAIN_API_KEY: test diff --git a/docs/Makefile b/docs/Makefile index 32c121d0f..f407ac326 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,4 +1,4 @@ -.PHONY: lint-docs format-docs build-docs serve-docs serve-clean-docs clean-docs codespell build-typedoc +.PHONY: lint-docs format-docs build-docs serve-docs serve-clean-docs clean-docs codespell build-typedoc llms-text build-typedoc: cd ../libs/sdk-js && yarn install --include-dev && yarn typedoc @@ -9,6 +9,9 @@ build-typedoc: build-docs: build-typedoc poetry run python -m mkdocs build --clean -f mkdocs.yml --strict +llms-text: + poetry run python _scripts/generate_llms_text.py docs/llms-full.txt + install-vercel-deps: curl -sSL https://install.python-poetry.org | python3 - poetry self update 1.8.5 diff --git a/docs/_scripts/generate_llms_text.py b/docs/_scripts/generate_llms_text.py index c102d5f85..6cb455944 100644 --- a/docs/_scripts/generate_llms_text.py +++ b/docs/_scripts/generate_llms_text.py @@ -41,10 +41,6 @@ def _make_llms_text(output_file: str) -> str: glob.glob(os.path.join(SOURCE_DIR, "concepts/*.ipynb"), recursive=True) ) - all_files = [ - path if isinstance(pathlib.Path) else pathlib.Path(path) for path in all_files - ] - all_content = [] # Process each file