docs: added fetching from notion (#2670)

* Added new Docusaurus instance that fetches automatically from Notion

* Add Github workflow to fetch docs from Notion

* Added legacy peer deps to solve dependency problems

* Fix git ignore and added pages
This commit is contained in:
Lucas Oliveira 2024-07-12 17:59:52 -03:00 • committed by GitHub
commit 3aa2513a86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
354 changed files with 20640 additions and 23291 deletions

View file

@ -1,185 +1,31 @@
module.exports = {
docs: [
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
// @ts-check
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
// But you can create a sidebar manually
/*
tutorialSidebar: [
{
type: "category",
label: "What's New?",
collapsed: false,
items: ["whats-new/a-new-chapter-langflow"],
},
{
type: "category",
label: "Getting Started",
collapsed: false,
items: [
"index",
"getting-started/install-langflow",
"getting-started/quickstart",
"getting-started/workspace",
"getting-started/possible-installation-issues",
"getting-started/new-to-llms",
],
},
{
type: "category",
label: "Starter Projects",
collapsed: false,
items: [
"starter-projects/basic-prompting",
"starter-projects/blog-writer",
"starter-projects/document-qa",
"starter-projects/memory-chatbot",
"starter-projects/vector-store-rag",
],
},
{
type: "category",
label: "Administration",
collapsed: false,
items: [
"administration/api",
"administration/login",
"administration/cli",
"administration/playground",
"administration/memories",
"administration/logs",
"administration/collections-projects",
"administration/settings",
"administration/global-env",
"administration/chat-widget",
],
},
{
type: "category",
label: "Components",
collapsed: false,
items: [
"components/inputs-and-outputs",
"components/text-and-record",
"components/data",
"components/models",
"components/helpers",
"components/vector-stores",
"components/embeddings",
"components/custom",
],
},
// RSN - Check if we need this
// {
// type: "category",
// label: "Extended Components",
// collapsed: true,
// items: [
// "components/agents",
// "components/chains",
// "components/experimental",
// "components/utilities",
// "components/model_specs",
// "components/retrievers",
// "components/text-splitters",
// "components/toolkits",
// "components/tools",
// ],
// },
// RSN - Check if we need this
// {
// type: "category",
// label: "Example Components",
// collapsed: true,
// items: [
// "examples/chat-memory",
// "examples/combine-text",
// "examples/create-record",
// "examples/pass",
// "examples/store-message",
// "examples/sub-flow",
// "examples/text-operator",
// ],
// },
// RSN - Check if we need this
// {
// type: "category",
// label: "Migration",
// collapsed: false,
// items: [
// "migration/migrating-to-one-point-zero",
// "migration/compatibility",
// ],
// },
{
type: "category",
label: "Tutorials",
collapsed: true,
items: [
"tutorials/chatprompttemplate_guide",
"tutorials/custom_components",
"tutorials/loading_document",
"tutorials/rag-with-astradb",
],
},
{
type: "category",
label: "Deployment",
collapsed: true,
items: [
"deployment/docker",
"deployment/backend-only",
"deployment/kubernetes",
"deployment/gcp-deployment",
],
},
{
type: "category",
label: "Contributing",
collapsed: false,
items: [
"contributing/telemetry",
"contributing/how-contribute",
"contributing/github-issues",
"contributing/community",
"contributing/contribute-component",
],
},
{
type: "category",
label: "Integrations",
collapsed: false,
items: [
"integrations/langsmith/intro",
{
type: "category",
label: "Notion",
items: [
"integrations/notion/intro",
"integrations/notion/setup",
"integrations/notion/search",
"integrations/notion/list-database-properties",
"integrations/notion/list-pages",
"integrations/notion/list-users",
"integrations/notion/page-create",
"integrations/notion/add-content-to-page",
"integrations/notion/page-update",
"integrations/notion/page-content-viewer",
],
},
// {
// type: "category",
// label: "CrewAI",
// items: [
// "integrations/crewai/intro",
// "integrations/crewai/setup",
// "integrations/crewai/agent",
// "integrations/crewai/task",
// "integrations/crewai/crew",
// ],
// },
// {
// type: "category",
// label: "LangSmith",
// items: [
// ,
// ],
// },
],
type: 'category',
label: 'Tutorial',
items: ['hello'],
},
],
*/
};
module.exports = sidebars;