docs: rename getting-started folder and add redirects (#4813)

* feat: add docusaurus preset for OpenAPI integration

* feat: integrate OpenAPI plugins into Docusaurus configuration

* plugins

* feat: define custom sidebar structure for documentation

* fix-folder-name-and-redirect
This commit is contained in:
Mendon Kissling 2024-11-25 15:26:58 -05:00 • committed by GitHub
commit 1b3785ee95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 16626 additions and 116 deletions

View file

@ -29,12 +29,16 @@ const config = {
presets: [
[
"@docusaurus/preset-classic",
"docusaurus-preset-openapi",
/** @type {import('@docusaurus/preset-classic').Options} */
({
api: {
path: "openapi.json", // Path to your OpenAPI file
routeBasePath: "/api", // The base URL for your API docs
},
docs: {
routeBasePath: "/", // Serve the docs at the site's root
sidebarPath: undefined, // `undefined` to create a fully autogenerated sidebar.
sidebarPath: require.resolve("./sidebars.js"), // Use sidebars.js file
sidebarCollapsed: false,
beforeDefaultRemarkPlugins: [
[
@ -88,11 +92,19 @@ const config = {
from: [
"/whats-new-a-new-chapter-langflow",
"/👋 Welcome-to-Langflow",
"/getting-started-welcome-to-langflow"
],
},
{
to: "/getting-started-installation",
from: "/getting-started-common-installation-issues",
to: "/get-started-installation",
from: [
"/getting-started-installation",
"/getting-started-common-installation-issues",
],
},
{
to: "/get-started-quickstart",
from: "/getting-started-quickstart",
},
{
to: "/workspace-overview",