Skip to content

Commit

Permalink
docs: standard tests to markdown, load templates from files (#28603)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Dec 7, 2024
1 parent 9b84849 commit dd0085a
Show file tree
Hide file tree
Showing 4 changed files with 408 additions and 619 deletions.
10 changes: 5 additions & 5 deletions docs/docs/contributing/how_to/integrations/package.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import CodeBlock from '@theme/CodeBlock';

import ChatModelSource from '../../../../src/theme/integration_template/integration_template/chat_models.py';

<CodeBlock language="jsx" title="langchain_parrot_link/chat_models.py">
<CodeBlock language="python" title="langchain_parrot_link/chat_models.py">
{
ChatModelSource.replaceAll('__ModuleName__', 'ParrotLink')
.replaceAll('__package_name__', 'langchain-parrot-link')
Expand Down Expand Up @@ -101,7 +101,7 @@ import ChatModelSource from '../../../../src/theme/integration_template/integrat

import VectorstoreSource from '../../../../src/theme/integration_template/integration_template/vectorstores.py';

<CodeBlock language="jsx" title="langchain_parrot_link/vectorstores.py">
<CodeBlock language="python" title="langchain_parrot_link/vectorstores.py">
{
VectorstoreSource.replaceAll('__ModuleName__', 'ParrotLink')
.replaceAll('__package_name__', 'langchain-parrot-link')
Expand Down Expand Up @@ -161,7 +161,7 @@ For convenience, we also include the code below.

import EmbeddingsSource from '/src/theme/integration_template/integration_template/embeddings.py';

<CodeBlock language="jsx" title="langchain_parrot_link/embeddings.py">
<CodeBlock language="python" title="langchain_parrot_link/embeddings.py">
{
EmbeddingsSource.replaceAll('__ModuleName__', 'ParrotLink')
.replaceAll('__package_name__', 'langchain-parrot-link')
Expand Down Expand Up @@ -234,7 +234,7 @@ For convenience, we also include the code below.

import ToolSource from '/src/theme/integration_template/integration_template/tools.py';

<CodeBlock language="jsx" title="langchain_parrot_link/tools.py">
<CodeBlock language="python" title="langchain_parrot_link/tools.py">
{
ToolSource.replaceAll('__ModuleName__', 'ParrotLink')
.replaceAll('__package_name__', 'langchain-parrot-link')
Expand Down Expand Up @@ -297,7 +297,7 @@ For convenience, we also include the code below.

import RetrieverSource from '/src/theme/integration_template/integration_template/retrievers.py';

<CodeBlock language="jsx" title="langchain_parrot_link/retrievers.py">
<CodeBlock language="python" title="langchain_parrot_link/retrievers.py">
{
RetrieverSource.replaceAll('__ModuleName__', 'ParrotLink')
.replaceAll('__package_name__', 'langchain-parrot-link')
Expand Down
Loading

0 comments on commit dd0085a

Please sign in to comment.