diff --git a/docs/Makefile b/docs/Makefile index 16d7fbc7a..6308401f6 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 llms-text +.PHONY: lint-docs format-docs build-docs serve-docs serve-clean-docs clean-docs codespell build-typedoc llms-text build-prebuilt build-typedoc: cd ../libs/sdk-js && yarn install --include-dev && yarn typedoc @@ -6,7 +6,14 @@ build-typedoc: # Add links to the monorepo sed -e '1,10s|@langchain/langgraph-sdk|[@langchain/langgraph-sdk](https://github.com/langchain-ai/langgraph/tree/main/libs/sdk-js)|g' docs/cloud/reference/sdk/js_ts_sdk_ref.md > temp_file && mv temp_file docs/cloud/reference/sdk/js_ts_sdk_ref.md -build-docs: build-typedoc +build-prebuilt: + # Use to create an update to date prebuilt page. + # Looks up download stats for each of the prebuilt packages and + # generates the final prebuilt page. + poetry run python -m _scripts.third_party_page.get_download_stats stats.yml + poetry run python -m _scripts.third_party_page.create_third_party_page stats.yml docs/prebuilt.md --language python + +build-docs: build-typedoc build-prebuilt poetry run python -m mkdocs build --clean -f mkdocs.yml --strict llms-text: