docs: useBaseUrl on svg paths (#21446)

This commit is contained in:
Erick Friis 2024-05-08 14:55:42 -07:00 committed by GitHub
parent 5b35f077f9
commit 74044e44a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,7 @@
# Conceptual guide # Conceptual guide
import ThemedImage from '@theme/ThemedImage'; import ThemedImage from '@theme/ThemedImage';
import useBaseUrl from '@docusaurus/useBaseUrl';
This section contains introductions to key parts of LangChain. This section contains introductions to key parts of LangChain.
@ -11,8 +12,8 @@ LangChain as a framework consists of several pieces. The below diagram shows how
<ThemedImage <ThemedImage
alt="Diagram outlining the hierarchical organization of the LangChain framework, displaying the interconnected parts across multiple layers." alt="Diagram outlining the hierarchical organization of the LangChain framework, displaying the interconnected parts across multiple layers."
sources={{ sources={{
light: '/svg/langchain_stack.svg', light: useBaseUrl('/svg/langchain_stack.svg'),
dark: '/svg/langchain_stack_dark.svg', dark: useBaseUrl('/svg/langchain_stack_dark.svg'),
}} }}
title="LangChain Framework Overview" title="LangChain Framework Overview"
/> />

View File

@ -13,12 +13,13 @@ LangChain simplifies every stage of the LLM application lifecycle:
- **Deployment**: Turn any chain into an API with [LangServe](/docs/langserve). - **Deployment**: Turn any chain into an API with [LangServe](/docs/langserve).
import ThemedImage from '@theme/ThemedImage'; import ThemedImage from '@theme/ThemedImage';
import useBaseUrl from '@docusaurus/useBaseUrl';
<ThemedImage <ThemedImage
alt="Diagram outlining the hierarchical organization of the LangChain framework, displaying the interconnected parts across multiple layers." alt="Diagram outlining the hierarchical organization of the LangChain framework, displaying the interconnected parts across multiple layers."
sources={{ sources={{
light: '/svg/langchain_stack.svg', light: useBaseUrl('/svg/langchain_stack.svg'),
dark: '/svg/langchain_stack_dark.svg', dark: useBaseUrl('/svg/langchain_stack_dark.svg'),
}} }}
title="LangChain Framework Overview" title="LangChain Framework Overview"
/> />