2024-07-12 17:59:52 -03:00
|
|
|
// @ts-check
|
|
|
|
|
// Note: type annotations allow type checking and IDEs autocompletion
|
2023-06-21 19:13:44 -03:00
|
|
|
|
2026-02-18 17:52:37 -05:00
|
|
|
const path = require("path");
|
2024-07-12 17:59:52 -03:00
|
|
|
const lightCodeTheme = require("prism-react-renderer/themes/github");
|
|
|
|
|
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
|
2023-07-26 14:56:54 -03:00
|
|
|
const { remarkCodeHike } = require("@code-hike/mdx");
|
2024-07-12 17:59:52 -03:00
|
|
|
|
2025-04-15 13:00:55 -04:00
|
|
|
const isProduction = process.env.NODE_ENV === "production";
|
|
|
|
|
|
2024-07-12 17:59:52 -03:00
|
|
|
/** @type {import('@docusaurus/types').Config} */
|
|
|
|
|
const config = {
|
2023-07-26 14:56:54 -03:00
|
|
|
title: "Langflow Documentation",
|
2024-11-14 06:58:42 -03:00
|
|
|
tagline:
|
|
|
|
|
"Langflow is a low-code app builder for RAG and multi-agent AI applications.",
|
2023-07-26 14:56:54 -03:00
|
|
|
favicon: "img/favicon.ico",
|
2024-10-10 11:32:02 -07:00
|
|
|
url: "https://docs.langflow.org",
|
2025-03-11 12:24:29 -07:00
|
|
|
baseUrl: process.env.BASE_URL ? process.env.BASE_URL : "/",
|
2023-07-26 14:56:54 -03:00
|
|
|
onBrokenLinks: "throw",
|
2025-01-03 11:30:59 -05:00
|
|
|
onBrokenAnchors: "warn",
|
2024-04-18 11:58:19 -03:00
|
|
|
organizationName: "langflow-ai",
|
2023-07-26 14:56:54 -03:00
|
|
|
projectName: "langflow",
|
|
|
|
|
trailingSlash: false,
|
2024-04-04 02:46:44 -03:00
|
|
|
staticDirectories: ["static"],
|
2026-01-14 16:29:06 -05:00
|
|
|
markdown: {
|
|
|
|
|
hooks: {
|
|
|
|
|
onBrokenMarkdownLinks: "warn",
|
|
|
|
|
},
|
|
|
|
|
},
|
2023-07-26 14:56:54 -03:00
|
|
|
i18n: {
|
|
|
|
|
defaultLocale: "en",
|
|
|
|
|
locales: ["en"],
|
|
|
|
|
},
|
2025-03-20 13:29:16 -05:00
|
|
|
headTags: [
|
|
|
|
|
{
|
|
|
|
|
tagName: "link",
|
|
|
|
|
attributes: {
|
|
|
|
|
rel: "stylesheet",
|
|
|
|
|
href: "https://fonts.googleapis.com/css2?family=Sora:wght@550;600&display=swap",
|
|
|
|
|
},
|
2025-04-15 13:00:55 -04:00
|
|
|
},
|
|
|
|
|
...(isProduction
|
|
|
|
|
? [
|
2025-10-28 20:05:50 -07:00
|
|
|
// Google Consent Mode - Set defaults before Google tags load
|
2025-04-15 13:00:55 -04:00
|
|
|
{
|
|
|
|
|
tagName: "script",
|
|
|
|
|
attributes: {},
|
2025-10-28 20:05:50 -07:00
|
|
|
innerHTML: `
|
|
|
|
|
window.dataLayer = window.dataLayer || [];
|
|
|
|
|
function gtag(){dataLayer.push(arguments);}
|
|
|
|
|
|
|
|
|
|
// Set default consent to denied
|
|
|
|
|
gtag('consent', 'default', {
|
|
|
|
|
'ad_storage': 'denied',
|
|
|
|
|
'ad_user_data': 'denied',
|
|
|
|
|
'ad_personalization': 'denied',
|
|
|
|
|
'analytics_storage': 'denied'
|
|
|
|
|
});
|
|
|
|
|
`,
|
2025-04-15 13:00:55 -04:00
|
|
|
},
|
2025-10-28 20:05:50 -07:00
|
|
|
// TrustArc Consent Update Listener
|
2025-04-15 13:00:55 -04:00
|
|
|
{
|
|
|
|
|
tagName: "script",
|
2025-10-28 20:05:50 -07:00
|
|
|
attributes: {},
|
2025-04-15 13:00:55 -04:00
|
|
|
innerHTML: `
|
2025-10-28 20:05:50 -07:00
|
|
|
(function() {
|
|
|
|
|
function updateGoogleConsent() {
|
|
|
|
|
if (typeof window.truste !== 'undefined' && window.truste.cma) {
|
|
|
|
|
var consent = window.truste.cma.callApi('getConsent', window.location.href) || {};
|
|
|
|
|
|
|
|
|
|
// Map TrustArc categories to Google consent types
|
|
|
|
|
// Category 0 = Required, 1 = Functional, 2 = Advertising, 3 = Analytics
|
|
|
|
|
var hasAdvertising = consent[2] === 1;
|
|
|
|
|
var hasAnalytics = consent[3] === 1;
|
|
|
|
|
|
|
|
|
|
gtag('consent', 'update', {
|
|
|
|
|
'ad_storage': hasAdvertising ? 'granted' : 'denied',
|
|
|
|
|
'ad_user_data': hasAdvertising ? 'granted' : 'denied',
|
|
|
|
|
'ad_personalization': hasAdvertising ? 'granted' : 'denied',
|
|
|
|
|
'analytics_storage': hasAnalytics ? 'granted' : 'denied'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Listen for consent changes
|
|
|
|
|
if (window.addEventListener) {
|
|
|
|
|
window.addEventListener('cm_data_subject_consent_changed', updateGoogleConsent);
|
|
|
|
|
window.addEventListener('cm_consent_preferences_set', updateGoogleConsent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Initial check after TrustArc loads
|
|
|
|
|
if (document.readyState === 'complete') {
|
|
|
|
|
updateGoogleConsent();
|
|
|
|
|
} else {
|
|
|
|
|
window.addEventListener('load', updateGoogleConsent);
|
2025-04-15 13:00:55 -04:00
|
|
|
}
|
2025-10-28 20:05:50 -07:00
|
|
|
})();
|
|
|
|
|
`,
|
2025-04-15 13:00:55 -04:00
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
: []),
|
2025-03-20 13:29:16 -05:00
|
|
|
],
|
2024-07-12 17:59:52 -03:00
|
|
|
|
2023-07-26 14:56:54 -03:00
|
|
|
presets: [
|
|
|
|
|
[
|
2025-10-16 11:06:47 -04:00
|
|
|
"@docusaurus/preset-classic",
|
2023-07-26 14:56:54 -03:00
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
2023-06-21 19:13:44 -03:00
|
|
|
({
|
2023-07-26 14:56:54 -03:00
|
|
|
docs: {
|
2024-07-12 17:59:52 -03:00
|
|
|
routeBasePath: "/", // Serve the docs at the site's root
|
2024-11-25 15:26:58 -05:00
|
|
|
sidebarPath: require.resolve("./sidebars.js"), // Use sidebars.js file
|
2025-02-25 18:08:18 -05:00
|
|
|
sidebarCollapsed: true,
|
2023-07-26 17:26:31 -03:00
|
|
|
beforeDefaultRemarkPlugins: [
|
|
|
|
|
[
|
|
|
|
|
remarkCodeHike,
|
2023-07-31 18:58:51 -03:00
|
|
|
{
|
2023-11-06 18:53:30 +02:00
|
|
|
theme: "github-dark",
|
2023-07-31 18:58:51 -03:00
|
|
|
showCopyButton: true,
|
|
|
|
|
lineNumbers: true,
|
|
|
|
|
},
|
2023-07-26 17:26:31 -03:00
|
|
|
],
|
|
|
|
|
],
|
2023-06-21 19:13:44 -03:00
|
|
|
},
|
2024-10-10 11:32:02 -07:00
|
|
|
sitemap: {
|
|
|
|
|
// https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-sitemap
|
|
|
|
|
// https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap
|
2024-11-14 06:58:42 -03:00
|
|
|
lastmod: "datetime",
|
2024-10-10 11:32:02 -07:00
|
|
|
changefreq: null,
|
|
|
|
|
priority: null,
|
2025-10-28 20:05:50 -07:00
|
|
|
ignorePatterns: [],
|
2024-10-10 11:32:02 -07:00
|
|
|
},
|
2024-04-04 02:46:44 -03:00
|
|
|
gtag: {
|
2025-04-09 19:17:56 -04:00
|
|
|
trackingID: "G-SLQFLQ3KPT",
|
2024-08-29 19:35:02 -03:00
|
|
|
},
|
2024-07-12 17:59:52 -03:00
|
|
|
blog: false,
|
2023-07-26 14:56:54 -03:00
|
|
|
theme: {
|
|
|
|
|
customCss: [
|
|
|
|
|
require.resolve("@code-hike/mdx/styles.css"),
|
2024-07-12 17:59:52 -03:00
|
|
|
require.resolve("./css/custom.css"),
|
2023-07-26 14:56:54 -03:00
|
|
|
],
|
2023-06-21 19:13:44 -03:00
|
|
|
},
|
2023-07-26 14:56:54 -03:00
|
|
|
}),
|
|
|
|
|
],
|
2025-10-16 11:06:47 -04:00
|
|
|
[
|
|
|
|
|
"redocusaurus",
|
|
|
|
|
{
|
|
|
|
|
openapi: {
|
|
|
|
|
path: "openapi",
|
|
|
|
|
routeBasePath: "/api",
|
|
|
|
|
},
|
|
|
|
|
specs: [
|
|
|
|
|
{
|
|
|
|
|
id: "api",
|
|
|
|
|
spec: "openapi/openapi.json",
|
|
|
|
|
route: "/api",
|
|
|
|
|
},
|
2026-03-06 09:41:10 -05:00
|
|
|
{
|
|
|
|
|
id: "workflow",
|
|
|
|
|
spec: "openapi/langflow-workflows-openapi.json",
|
|
|
|
|
route: "/api/workflow",
|
|
|
|
|
},
|
2025-10-16 11:06:47 -04:00
|
|
|
],
|
|
|
|
|
theme: {
|
|
|
|
|
primaryColor: "#7528FC",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
2023-07-26 14:56:54 -03:00
|
|
|
],
|
|
|
|
|
plugins: [
|
2026-02-18 17:52:37 -05:00
|
|
|
// Alias so MDX can import code from the Langflow repo with !!raw-loader!@langflow/src/...
|
|
|
|
|
function langflowCodeImportPlugin(context) {
|
|
|
|
|
return {
|
|
|
|
|
name: "langflow-code-import",
|
|
|
|
|
configureWebpack() {
|
|
|
|
|
return {
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
"@langflow": path.resolve(context.siteDir, ".."),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
2023-07-26 14:56:54 -03:00
|
|
|
["docusaurus-node-polyfills", { excludeAliases: ["console"] }],
|
|
|
|
|
"docusaurus-plugin-image-zoom",
|
2025-07-10 21:39:19 -07:00
|
|
|
["./src/plugins/segment", { segmentPublicWriteKey: process.env.SEGMENT_PUBLIC_WRITE_KEY, allowedInDev: true }],
|
2024-11-07 06:59:40 -05:00
|
|
|
[
|
2024-11-14 06:58:42 -03:00
|
|
|
"@docusaurus/plugin-client-redirects",
|
2024-11-07 06:59:40 -05:00
|
|
|
{
|
|
|
|
|
redirects: [
|
2024-11-12 17:31:09 -05:00
|
|
|
{
|
2024-11-14 06:58:42 -03:00
|
|
|
to: "/",
|
|
|
|
|
from: [
|
|
|
|
|
"/whats-new-a-new-chapter-langflow",
|
|
|
|
|
"/👋 Welcome-to-Langflow",
|
2025-01-03 13:58:29 -03:00
|
|
|
"/getting-started-welcome-to-langflow",
|
2025-04-15 13:00:55 -04:00
|
|
|
"/guides-new-to-llms",
|
2025-09-10 12:33:06 -07:00
|
|
|
"/about-langflow",
|
2024-11-25 15:26:58 -05:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
to: "/get-started-installation",
|
|
|
|
|
from: [
|
|
|
|
|
"/getting-started-installation",
|
|
|
|
|
"/getting-started-common-installation-issues",
|
2024-11-14 06:58:42 -03:00
|
|
|
],
|
2024-11-12 17:31:09 -05:00
|
|
|
},
|
|
|
|
|
{
|
2024-11-25 15:26:58 -05:00
|
|
|
to: "/get-started-quickstart",
|
|
|
|
|
from: "/getting-started-quickstart",
|
2024-11-12 17:31:09 -05:00
|
|
|
},
|
2024-11-12 10:34:11 -05:00
|
|
|
{
|
2025-09-29 16:57:47 -07:00
|
|
|
to: "/concepts-overview",
|
2024-11-14 06:58:42 -03:00
|
|
|
from: [
|
2025-01-16 09:39:14 -05:00
|
|
|
"/workspace-overview",
|
2024-11-14 06:58:42 -03:00
|
|
|
"/365085a8-a90a-43f9-a779-f8769ec7eca1",
|
|
|
|
|
"/My-Collection",
|
|
|
|
|
"/workspace",
|
|
|
|
|
"/settings-project-general-settings",
|
|
|
|
|
],
|
2024-11-12 10:34:11 -05:00
|
|
|
},
|
|
|
|
|
{
|
2025-01-16 09:39:14 -05:00
|
|
|
to: "/concepts-components",
|
2025-12-18 15:36:17 -05:00
|
|
|
from: [
|
|
|
|
|
"/components",
|
|
|
|
|
"/components-overview",
|
|
|
|
|
"/components-processing",
|
|
|
|
|
"/components-data",
|
|
|
|
|
"/components-files",
|
|
|
|
|
"/components-logic",
|
|
|
|
|
"/components-tools",
|
|
|
|
|
"/components-io",
|
|
|
|
|
"/components-helpers",
|
|
|
|
|
"/components-memories",
|
|
|
|
|
],
|
2025-04-01 10:04:20 -04:00
|
|
|
},
|
2024-11-12 10:34:11 -05:00
|
|
|
{
|
2024-11-14 06:58:42 -03:00
|
|
|
to: "/configuration-global-variables",
|
|
|
|
|
from: "/settings-global-variables",
|
2024-11-12 10:34:11 -05:00
|
|
|
},
|
2025-01-03 13:58:29 -03:00
|
|
|
{
|
2025-01-16 09:39:14 -05:00
|
|
|
to: "/concepts-playground",
|
|
|
|
|
from: [
|
|
|
|
|
"/workspace-playground",
|
|
|
|
|
"/workspace-logs",
|
|
|
|
|
"/guides-chat-memory",
|
|
|
|
|
],
|
2025-01-03 13:58:29 -03:00
|
|
|
},
|
|
|
|
|
{
|
2025-07-17 12:30:42 -04:00
|
|
|
to: "/data-types",
|
2025-04-15 13:00:55 -04:00
|
|
|
from: ["/guides-data-message", "/configuration-objects"],
|
2025-01-03 13:58:29 -03:00
|
|
|
},
|
2024-12-23 09:53:37 -05:00
|
|
|
{
|
2025-07-30 09:35:50 -07:00
|
|
|
to: "/concepts-flows",
|
2025-04-01 10:04:20 -04:00
|
|
|
from: [
|
2025-07-30 09:35:50 -07:00
|
|
|
"/travel-planning-agent",
|
|
|
|
|
"/starter-projects-travel-planning-agent",
|
|
|
|
|
"/tutorials-travel-planning-agent",
|
|
|
|
|
"/starter-projects-dynamic-agent/",
|
|
|
|
|
"/simple-agent",
|
2025-04-07 10:31:48 -04:00
|
|
|
"/math-agent",
|
2025-06-20 14:34:30 -04:00
|
|
|
"/starter-projects-simple-agent",
|
2025-04-01 10:04:20 -04:00
|
|
|
"/starter-projects-math-agent",
|
2025-04-15 13:00:55 -04:00
|
|
|
"/tutorials-math-agent",
|
2025-07-30 09:35:50 -07:00
|
|
|
"/sequential-agent",
|
2025-04-01 10:04:20 -04:00
|
|
|
"/starter-projects-sequential-agent",
|
2025-04-15 13:00:55 -04:00
|
|
|
"/tutorials-sequential-agent",
|
2025-07-30 09:35:50 -07:00
|
|
|
"/memory-chatbot",
|
|
|
|
|
"/starter-projects-memory-chatbot",
|
|
|
|
|
"/tutorials-memory-chatbot",
|
|
|
|
|
"/financial-report-parser",
|
|
|
|
|
"/document-qa",
|
|
|
|
|
"/starter-projects-document-qa",
|
|
|
|
|
"/tutorials-document-qa",
|
|
|
|
|
"/blog-writer",
|
|
|
|
|
"/starter-projects-blog-writer",
|
|
|
|
|
"/tutorials-blog-writer",
|
|
|
|
|
"/basic-prompting",
|
|
|
|
|
"/starter-projects-basic-prompting",
|
|
|
|
|
"/vector-store-rag",
|
|
|
|
|
"/starter-projects-vector-store-rag",
|
2025-04-01 10:04:20 -04:00
|
|
|
],
|
2024-12-23 09:53:37 -05:00
|
|
|
},
|
2024-12-20 16:39:29 -05:00
|
|
|
{
|
2025-09-26 10:05:06 -04:00
|
|
|
to: "/components-bundle-components",
|
|
|
|
|
from: [
|
|
|
|
|
"/components-rag",
|
|
|
|
|
"/components-vector-stores",
|
|
|
|
|
"/components-loaders",
|
|
|
|
|
],
|
2024-12-20 16:39:29 -05:00
|
|
|
},
|
2025-04-07 17:10:09 -04:00
|
|
|
{
|
2025-07-29 21:07:15 -04:00
|
|
|
to: "/api-keys-and-authentication",
|
2025-04-07 17:10:09 -04:00
|
|
|
from: [
|
2025-07-29 21:07:15 -04:00
|
|
|
"/configuration-api-keys",
|
|
|
|
|
"/configuration-authentication",
|
2025-04-07 17:10:09 -04:00
|
|
|
"/configuration-security-best-practices",
|
2025-04-15 13:00:55 -04:00
|
|
|
"/Configuration/configuration-security-best-practices",
|
2025-04-07 17:10:09 -04:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
to: "/environment-variables",
|
|
|
|
|
from: [
|
|
|
|
|
"/configuration-auto-saving",
|
|
|
|
|
"/Configuration/configuration-auto-saving",
|
|
|
|
|
"/configuration-backend-only",
|
2025-04-15 13:00:55 -04:00
|
|
|
"/Configuration/configuration-backend-only",
|
2025-04-07 17:10:09 -04:00
|
|
|
],
|
|
|
|
|
},
|
2025-01-16 09:39:14 -05:00
|
|
|
{
|
2025-03-31 15:05:23 -04:00
|
|
|
to: "/concepts-publish",
|
2025-07-10 18:15:42 -07:00
|
|
|
from: [
|
|
|
|
|
"/concepts-api",
|
|
|
|
|
"/workspace-api",
|
|
|
|
|
],
|
2025-01-16 09:39:14 -05:00
|
|
|
},
|
2025-02-06 17:39:05 -05:00
|
|
|
{
|
|
|
|
|
to: "/components-custom-components",
|
|
|
|
|
from: "/components/custom",
|
|
|
|
|
},
|
2025-05-06 12:41:07 -04:00
|
|
|
{
|
|
|
|
|
to: "/mcp-server",
|
|
|
|
|
from: "/integrations-mcp",
|
|
|
|
|
},
|
2025-05-06 05:49:32 +08:00
|
|
|
{
|
|
|
|
|
to: "/deployment-kubernetes-dev",
|
2025-07-10 18:15:42 -07:00
|
|
|
from: "/deployment-kubernetes",
|
2025-05-06 05:49:32 +08:00
|
|
|
},
|
2025-06-23 09:16:40 -07:00
|
|
|
{
|
|
|
|
|
to: "/contributing-github-issues",
|
|
|
|
|
from: "/contributing-github-discussions",
|
|
|
|
|
},
|
2025-06-27 18:04:13 -04:00
|
|
|
{
|
|
|
|
|
to: "/agents",
|
|
|
|
|
from: "/agents-tool-calling-agent-component",
|
|
|
|
|
},
|
2025-07-10 18:15:42 -07:00
|
|
|
{
|
|
|
|
|
to: "/concepts-publish",
|
|
|
|
|
from: "/embedded-chat-widget",
|
|
|
|
|
},
|
2025-07-15 13:14:47 -04:00
|
|
|
{
|
2025-07-23 13:20:59 -07:00
|
|
|
to: "/bundles-google",
|
2025-09-29 16:57:47 -07:00
|
|
|
from: [
|
|
|
|
|
"/integrations-setup-google-oauth-langflow",
|
|
|
|
|
"/integrations-google-big-query",
|
|
|
|
|
],
|
2025-07-15 13:14:47 -04:00
|
|
|
},
|
2025-07-23 13:20:59 -07:00
|
|
|
{
|
|
|
|
|
to: "/bundles-vertexai",
|
|
|
|
|
from: "/integrations-setup-google-cloud-vertex-ai-langflow",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
to: "/develop-application",
|
|
|
|
|
from: "/develop-overview",
|
|
|
|
|
},
|
2025-07-17 12:30:42 -04:00
|
|
|
{
|
|
|
|
|
to: "/data-types",
|
|
|
|
|
from: "/concepts-objects",
|
|
|
|
|
},
|
2025-09-29 16:57:47 -07:00
|
|
|
{
|
|
|
|
|
to: "/bundles-apify",
|
|
|
|
|
from: "/integrations-apify",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
to: "/bundles-assemblyai",
|
|
|
|
|
from: "/integrations-assemblyai",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
to: "/bundles-cleanlab",
|
|
|
|
|
from: "/integrations-cleanlab",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
to: "/bundles-composio",
|
|
|
|
|
from: "/integrations-composio",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
to: "/bundles-docling",
|
|
|
|
|
from: "/integrations-docling",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
to: "/bundles-notion",
|
|
|
|
|
from: [
|
|
|
|
|
"/integrations/notion/setup",
|
|
|
|
|
"/integrations/notion/notion-agent-meeting-notes",
|
|
|
|
|
"/integrations/notion/notion-agent-conversational",
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
to: "/bundles-nvidia",
|
|
|
|
|
from: [
|
|
|
|
|
"/integrations-nvidia-ingest-wsl2",
|
|
|
|
|
"/integrations-nvidia-ingest",
|
|
|
|
|
"/integrations-nvidia-g-assist",
|
|
|
|
|
"/integrations-nvidia-system-assist",
|
|
|
|
|
]
|
|
|
|
|
}
|
2024-11-07 06:59:40 -05:00
|
|
|
// add more redirects like this
|
|
|
|
|
// {
|
|
|
|
|
// to: '/docs/anotherpage',
|
|
|
|
|
// from: ['/docs/legacypage1', '/docs/legacypage2'],
|
|
|
|
|
// },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
2023-07-26 14:56:54 -03:00
|
|
|
// ....
|
|
|
|
|
async function myPlugin(context, options) {
|
|
|
|
|
return {
|
|
|
|
|
name: "docusaurus-tailwindcss",
|
|
|
|
|
configurePostCss(postcssOptions) {
|
|
|
|
|
// Appends TailwindCSS and AutoPrefixer.
|
|
|
|
|
postcssOptions.plugins.push(require("tailwindcss"));
|
|
|
|
|
postcssOptions.plugins.push(require("autoprefixer"));
|
|
|
|
|
return postcssOptions;
|
2023-07-12 18:04:23 -03:00
|
|
|
},
|
2023-07-26 14:56:54 -03:00
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
themeConfig:
|
|
|
|
|
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
|
|
|
|
({
|
|
|
|
|
navbar: {
|
|
|
|
|
hideOnScroll: true,
|
|
|
|
|
logo: {
|
|
|
|
|
alt: "Langflow",
|
2025-06-05 11:46:03 -04:00
|
|
|
src: "img/lf-docs-light.svg",
|
|
|
|
|
srcDark: "img/lf-docs-dark.svg",
|
2023-07-12 18:04:23 -03:00
|
|
|
},
|
2023-07-26 14:56:54 -03:00
|
|
|
items: [
|
|
|
|
|
// right
|
|
|
|
|
{
|
|
|
|
|
position: "right",
|
2024-04-08 15:36:37 -03:00
|
|
|
href: "https://github.com/langflow-ai/langflow",
|
2023-07-26 14:56:54 -03:00
|
|
|
className: "header-github-link",
|
|
|
|
|
target: "_blank",
|
|
|
|
|
rel: null,
|
2025-10-28 20:05:50 -07:00
|
|
|
'data-event': 'UI Interaction',
|
|
|
|
|
'data-action': 'clicked',
|
|
|
|
|
'data-channel': 'docs',
|
|
|
|
|
'data-element-id': 'social-github',
|
|
|
|
|
'data-namespace': 'header',
|
|
|
|
|
'data-platform-title': 'Langflow'
|
2023-06-21 19:13:44 -03:00
|
|
|
},
|
2023-07-26 14:56:54 -03:00
|
|
|
{
|
|
|
|
|
position: "right",
|
2024-02-18 19:07:07 -03:00
|
|
|
href: "https://twitter.com/langflow_ai",
|
2023-07-26 14:56:54 -03:00
|
|
|
className: "header-twitter-link",
|
|
|
|
|
target: "_blank",
|
|
|
|
|
rel: null,
|
2025-10-28 20:05:50 -07:00
|
|
|
'data-event': 'UI Interaction',
|
|
|
|
|
'data-action': 'clicked',
|
|
|
|
|
'data-channel': 'docs',
|
|
|
|
|
'data-element-id': 'social-twitter',
|
|
|
|
|
'data-namespace': 'header',
|
|
|
|
|
'data-platform-title': 'Langflow'
|
2023-07-26 14:56:54 -03:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
position: "right",
|
|
|
|
|
href: "https://discord.gg/EqksyE2EX9",
|
|
|
|
|
className: "header-discord-link",
|
|
|
|
|
target: "_blank",
|
|
|
|
|
rel: null,
|
2025-10-28 20:05:50 -07:00
|
|
|
'data-event': 'UI Interaction',
|
|
|
|
|
'data-action': 'clicked',
|
|
|
|
|
'data-channel': 'docs',
|
|
|
|
|
'data-element-id': 'social-discord',
|
|
|
|
|
'data-namespace': 'header',
|
|
|
|
|
'data-platform-title': 'Langflow'
|
2023-07-26 14:56:54 -03:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
colorMode: {
|
|
|
|
|
defaultMode: "light",
|
2023-11-06 18:25:12 +02:00
|
|
|
/* Allow users to chose light or dark mode. */
|
|
|
|
|
disableSwitch: false,
|
|
|
|
|
/* Respect user preferences, such as low light mode in the evening */
|
|
|
|
|
respectPrefersColorScheme: true,
|
2023-07-26 14:56:54 -03:00
|
|
|
},
|
2024-07-12 17:59:52 -03:00
|
|
|
prism: {
|
|
|
|
|
theme: lightCodeTheme,
|
|
|
|
|
darkTheme: darkCodeTheme,
|
|
|
|
|
},
|
2023-07-26 14:56:54 -03:00
|
|
|
zoom: {
|
|
|
|
|
selector: ".markdown :not(a) > img:not(.no-zoom)",
|
|
|
|
|
background: {
|
|
|
|
|
light: "rgba(240, 240, 240, 0.9)",
|
2023-07-12 18:04:23 -03:00
|
|
|
},
|
2023-07-26 14:56:54 -03:00
|
|
|
config: {},
|
|
|
|
|
},
|
2023-07-27 07:59:58 -03:00
|
|
|
docs: {
|
|
|
|
|
sidebar: {
|
2025-02-13 14:59:12 -05:00
|
|
|
hideable: false,
|
2025-09-29 10:01:35 -07:00
|
|
|
autoCollapseCategories: true,
|
2023-07-27 07:59:58 -03:00
|
|
|
},
|
|
|
|
|
},
|
2025-04-15 13:00:55 -04:00
|
|
|
footer: {
|
|
|
|
|
links: [
|
|
|
|
|
{
|
|
|
|
|
title: null,
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
html: `<div class="footer-links">
|
|
|
|
|
<span>© ${new Date().getFullYear()} Langflow</span>
|
2025-10-28 20:05:50 -07:00
|
|
|
<span id="preferenceCenterContainer"> · <a href="#" onclick="if(typeof window !== 'undefined' && window.truste && window.truste.eu && window.truste.eu.clickListener) { window.truste.eu.clickListener(); } return false;" style="cursor: pointer;">Manage Privacy Choices</a></span>
|
2025-04-15 13:00:55 -04:00
|
|
|
</div>`,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2025-02-18 16:06:56 -05:00
|
|
|
algolia: {
|
2025-04-15 13:00:55 -04:00
|
|
|
appId: "UZK6BDPCVY",
|
2025-02-18 16:06:56 -05:00
|
|
|
// public key, safe to commit
|
2025-04-15 13:00:55 -04:00
|
|
|
apiKey: "adbd7686dceb1cd510d5ce20d04bf74c",
|
|
|
|
|
indexName: "langflow",
|
2025-02-18 16:06:56 -05:00
|
|
|
contextualSearch: true,
|
|
|
|
|
searchParameters: {},
|
2025-04-15 13:00:55 -04:00
|
|
|
searchPagePath: "search",
|
2025-02-18 16:06:56 -05:00
|
|
|
},
|
2023-07-26 14:56:54 -03:00
|
|
|
}),
|
|
|
|
|
};
|
2024-07-12 17:59:52 -03:00
|
|
|
|
|
|
|
|
module.exports = config;
|