
website: Copy files during build. website: Allow for mixed env builds. website: Reduce build size. website: Expose build. website: Add build memory debugging. WIP: Disable broken links check to compare memory usage. website: Update deps. website: Clean up API paths. website: Flesh out 3.8 fixes. Format. website: Update ignore paths. Website: Clean up integrations build. website: Fix paths. website: Optimize remark. website: Update deps. website: Format. website: Remove linking. website: Fix paths. wip: Attempt API only build. Prep. Migrate render to runtime. Tidy sidebar. Clean up templates. docs: Move directory. WIP docs: Flesh out split. website: Fix issue where routes have collisions.
66 lines
1.7 KiB
JavaScript
66 lines
1.7 KiB
JavaScript
/**
|
|
* @file Sidebar configuration for documentation entries.
|
|
*
|
|
* @import { SidebarItemConfig } from "@docusaurus/plugin-content-docs/src/sidebars/types.js"
|
|
*/
|
|
import "./ensure-reference-sidebar.mjs";
|
|
|
|
// No file extensions for Docusaurus's automatic resolution.
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
// @ts-ignore - Allows for project-wide type checking when partially building docs.
|
|
import apiReference from "./reference/sidebar";
|
|
|
|
const DOCS_URL = process.env.DOCS_URL || "https://docs.goauthentik.io";
|
|
|
|
/**
|
|
* @type {SidebarItemConfig}
|
|
*/
|
|
const sidebar = {
|
|
reference: [
|
|
{
|
|
type: "link",
|
|
label: "← Back to Developer Docs",
|
|
href: new URL("/developer-docs", DOCS_URL).href,
|
|
className: "navbar-sidebar__upwards",
|
|
},
|
|
{
|
|
type: "doc",
|
|
label: "API Overview",
|
|
className: "api-overview",
|
|
id: "index",
|
|
},
|
|
|
|
{
|
|
type: "category",
|
|
label: "Clients",
|
|
collapsed: false,
|
|
collapsible: false,
|
|
link: {
|
|
type: "doc",
|
|
id: "clients",
|
|
},
|
|
items: [
|
|
{
|
|
type: "autogenerated",
|
|
dirName: "clients",
|
|
},
|
|
],
|
|
},
|
|
{
|
|
type: "category",
|
|
label: "API Reference",
|
|
className: "api-reference",
|
|
collapsed: false,
|
|
collapsible: false,
|
|
link: {
|
|
type: "doc",
|
|
id: apiReference[0].id,
|
|
},
|
|
|
|
items: apiReference.slice(1),
|
|
},
|
|
],
|
|
};
|
|
|
|
export default sidebar;
|