diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 3ce1a84e6..a9de78976 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -41,9 +41,11 @@ jobs: run: | poetry install poetry run pip install -r docs/docs-requirements.txt - + - name: Build site run: make build-docs + env: + MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.MKDOCS_GIT_COMMITTERS_APIKEY }} - name: Configure GitHub Pages if: github.ref == 'refs/heads/main' diff --git a/docs/docs-requirements.txt b/docs/docs-requirements.txt index 1a3ce5645..1fdbcfe5a 100644 --- a/docs/docs-requirements.txt +++ b/docs/docs-requirements.txt @@ -5,4 +5,5 @@ mkdocs-jupyter mkdocs-redirects mkdocs-minify-plugin mkdocs-rss-plugin +mkdocs-git-committers-plugin-2 mkdocs-material[imaging] \ No newline at end of file diff --git a/docs/docs/concepts/index.md b/docs/docs/concepts/index.md index 886451d1d..0ca9b3549 100644 --- a/docs/docs/concepts/index.md +++ b/docs/docs/concepts/index.md @@ -235,7 +235,7 @@ If you have some portion of state that you want to retain across turns and some Using checkpointing is as easy as calling `compile(checkpointer=my_checkpointer)` and then invoking it with a `thread_id` within its `configurable` parameters. You can see more in the following sections! -## Thread +## Threads Threads in LangGraph represent separate **sessions** of a graph. They organize state checkpoints within discrete sessions to facilitate multi-conversation and multi-user support in an application. diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 60bd486c7..4203c22be 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -1,11 +1,14 @@ site_name: LangGraph site_description: Build language agents as graphs site_url: https://langchain-ai.github.io/langgraph/ +repo_url: https://github.com/langchain-ai/langgraph theme: name: material custom_dir: overrides logo: static/wordmark.png favicon: static/favicon.png + icon: + repo: fontawesome/brands/git-alt features: - announce.dismiss - content.action.edit @@ -78,6 +81,10 @@ plugins: execute: false include_source: True include_requirejs: true + - git-committers: + repository: langchain-ai/langgraph + branch: main + token: !ENV ["MKDOCS_GIT_COMMITTERS_APIKEY"] # TODO: Add minify plugin once it works alright with code block copying # - minify: # minify_html: true @@ -209,4 +216,20 @@ extra: - icon: fontawesome/brands/github link: https://github.com/langchain-ai/langgraph - icon: fontawesome/brands/twitter - link: https://twitter.com/LangChainAI \ No newline at end of file + link: https://twitter.com/LangChainAI + analytics: + - provider: google + - script: "G-G8X6ELZYE0" + - feedback: + title: Was this page helpful? + ratings: + - icon: material/emoticon-happy-outline + name: This page was helpful + data: 1 + note: >- + Thanks for your feedback! + - icon: material/emoticon-sad-outline + name: This page could be improved + data: 0 + note: >- + Thanks for your feedback! Please help us improve this page by adding to the discussion below. \ No newline at end of file