The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: add discussions with giscus (#27172)
Erick Friis2197958366b5
diff --git a/docs/package.json b/docs/package.jsonindex ec1391dafc..b82fda1c4c 100644--- a/docs/package.json+++ b/docs/package.json@@ -26,13 +26,14 @@"@docusaurus/preset-classic": "3.5.2","@docusaurus/remark-plugin-npm2yarn": "^3.5.2","@docusaurus/theme-mermaid": "3.5.2",- "prism-react-renderer": "^2.1.0",+ "@giscus/react": "^3.0.0","@mdx-js/react": "^3","@supabase/supabase-js": "^2.39.7","clsx": "^1.2.1","cookie": "^0.6.0","isomorphic-dompurify": "^2.7.0","json-loader": "^0.5.7",+ "prism-react-renderer": "^2.1.0","process": "^0.11.10","react": "^18","react-dom": "^18",diff --git a/docs/src/theme/DocItem/Paginator/index.js b/docs/src/theme/DocItem/Paginator/index.jsindex fddb1d42b2..d9be074997 100644--- a/docs/src/theme/DocItem/Paginator/index.js+++ b/docs/src/theme/DocItem/Paginator/index.js@@ -1,11 +1,25 @@import React from 'react';import Paginator from '@theme-original/DocItem/Paginator';import Feedback from "@theme/Feedback";+import Giscus from "@giscus/react";export default function PaginatorWrapper(props) {return (<><Feedback />+ <Giscus+ repo="langchain-ai/langchain"+ repoId="R_kgDOIPDwlg"+ category="Docs Discussions"+ categoryId="DIC_kwDOIPDwls4CjJYb"+ mapping="pathname"+ strict="0"+ reactionsEnabled="0"+ emitMetadata="0"+ inputPosition="bottom"+ theme="preferred_color_scheme"+ lang="en"+ loading="lazy" /><Paginator {...props} /></>);diff --git a/docs/src/theme/Feedback.js b/docs/src/theme/Feedback.jsindex 1546bdd5c8..157e4e6427 100644--- a/docs/src/theme/Feedback.js+++ b/docs/src/theme/Feedback.js@@ -220,10 +220,6 @@ export default function Feedback() {onMouseUp: (e) => (e.currentTarget.style.backgroundColor = "#f0f0f0"),};- const newGithubIssueURL = pathname- ? `https://github.com/langchain-ai/langchain/issues/new?assignees=&labels=03+-+Documentation&projects=&template=documentation.yml&title=DOC%3A+%3CIssue+related+to+${pathname}%3E&url=https://python.langchain.com${pathname}`- : "https://github.com/langchain-ai/langchain/issues/new?assignees=&labels=03+-+Documentation&projects=&template=documentation.yml&title=DOC%3A+%3CPlease+write+a+comprehensive+title+after+the+%27DOC%3A+%27+prefix%3E";-return (<div style={{ display: "flex", flexDirection: "column" }}><hr />@@ -296,14 +292,6 @@ export default function Feedback() {</div></>)}- <br />- <h4>- You can also leave detailed feedback{" "}- <a target="_blank" href={newGithubIssueURL}>- on GitHub- </a>- .- </h4></div>);}diff --git a/docs/yarn.lock b/docs/yarn.lockindex b0167e3928..94436d8e05 100644--- a/docs/yarn.lock+++ b/docs/yarn.lock@@ -1709,6 +1709,13 @@resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.1.tgz#de633db3ec2ef6a3c89e2f19038063e8a122e2c2"integrity sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==+"@giscus/react@^3.0.0":+ version "3.0.0"+ resolved "https://registry.yarnpkg.com/@giscus/react/-/react-3.0.0.tgz#fdadce2c7e4023eb4fdbcc219cdd97f6d7aa17f0"+ integrity sha512-hgCjLpg3Wgh8VbTF5p8ZLcIHI74wvDk1VIFv12+eKhenNVUDjgwNg2B1aq/3puyHOad47u/ZSyqiMtohjy/OOA==+ dependencies:+ giscus "^1.5.0"+"@hapi/hoek@^9.0.0", "@hapi/hoek@^9.3.0":version "9.3.0"resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb"@@ -1835,6 +1842,18 @@resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.5.tgz#4fc56c15c580b9adb7dc3c333a134e540b44bfb1"integrity sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw==+"@lit-labs/ssr-dom-shim@^1.2.0":+ version "1.2.1"+ resolved "https://registry.yarnpkg.com/@lit-labs/ssr-dom-shim/-/ssr-dom-shim-1.2.1.tgz#2f3a8f1d688935c704dbc89132394a41029acbb8"+ integrity sha512-wx4aBmgeGvFmOKucFKY+8VFJSYZxs9poN3SDNQFF6lT6NrQUnHiPB2PWz2sc4ieEcAaYYzN+1uWahEeTq2aRIQ==++"@lit/reactive-element@^2.0.4":+ version "2.0.4"+ resolved "https://registry.yarnpkg.com/@lit/reactive-element/-/reactive-element-2.0.4.tgz#8f2ed950a848016383894a26180ff06c56ae001b"+ integrity sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==+ dependencies:+ "@lit-labs/ssr-dom-shim" "^1.2.0"+"@mdx-js/mdx@^3.0.0":version "3.0.1"resolved "https://registry.yarnpkg.com/@mdx-js/mdx/-/mdx-3.0.1.tgz#617bd2629ae561fdca1bb88e3badd947f5a82191"@@ -2569,7 +2588,7 @@dependencies:"@types/node" "*"-"@types/trusted-types@*":+"@types/trusted-types@*", "@types/trusted-types@^2.0.2":version "2.0.7"resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.7.tgz#baccb07a970b91707df3a3e8ba6896c57ead2d11"integrity sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==@@ -5549,6 +5568,13 @@ get-symbol-description@^1.0.2:es-errors "^1.3.0"get-intrinsic "^1.2.4"+giscus@^1.5.0:+ version "1.5.0"+ resolved "https://registry.yarnpkg.com/giscus/-/giscus-1.5.0.tgz#8299fa056b2ed31ec8b05d4645871e016982b4b2"+ integrity sha512-t3LL0qbSO3JXq3uyQeKpF5CegstGfKX/0gI6eDe1cmnI7D56R7j52yLdzw4pdKrg3VnufwCgCM3FDz7G1Qr6lg==+ dependencies:+ lit "^3.1.2"+github-slugger@^1.5.0:version "1.5.0"resolved "https://registry.yarnpkg.com/github-slugger/-/github-slugger-1.5.0.tgz#17891bbc73232051474d68bd867a34625c955f7d"@@ -6882,6 +6908,31 @@ lines-and-columns@^1.1.6:resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==+lit-element@^4.1.0:+ version "4.1.1"+ resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-4.1.1.tgz#07905992815076e388cf6f1faffc7d6866c82007"+ integrity sha512-HO9Tkkh34QkTeUmEdNYhMT8hzLid7YlMlATSi1q4q17HE5d9mrrEHJ/o8O2D0cMi182zK1F3v7x0PWFjrhXFew==+ dependencies:+ "@lit-labs/ssr-dom-shim" "^1.2.0"+ "@lit/reactive-element" "^2.0.4"+ lit-html "^3.2.0"++lit-html@^3.2.0:+ version "3.2.1"+ resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-3.2.1.tgz#8fc49e3531ee5947e4d93e8a5aa642ab1649833b"+ integrity sha512-qI/3lziaPMSKsrwlxH/xMgikhQ0EGOX2ICU73Bi/YHFvz2j/yMCIrw4+puF2IpQ4+upd3EWbvnHM9+PnJn48YA==+ dependencies:+ "@types/trusted-types" "^2.0.2"++lit@^3.1.2:+ version "3.2.1"+ resolved "https://registry.yarnpkg.com/lit/-/lit-3.2.1.tgz#d6dd15eac20db3a098e81e2c85f70a751ff55592"+ integrity sha512-1BBa1E/z0O9ye5fZprPtdqnc0BFzxIxTTOO/tQFmyC/hj1O3jL4TfmLBw0WEwjAokdLwpclkvGgDJwTIh0/22w==+ dependencies:+ "@lit/reactive-element" "^2.0.4"+ lit-element "^4.1.0"+ lit-html "^3.2.0"+loader-runner@^4.2.0:version "4.3.0"resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1"