Files
authentik/website/sidebarsDev.js
Jens L 8790f7059a website/docs: switch API browser renderer to PAN (#9570)
* website/docs: switch API browser renderer to PAN

https://github.com/PaloAltoNetworks/docusaurus-openapi-docs/
Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* hey we can actually directly link to API endpoints now

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* set as sub category

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* revert sidebars back to JS for tests

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
2024-05-04 23:49:33 +02:00

105 lines
2.8 KiB
JavaScript

const docsSidebar = require("./sidebars.js");
const generateVersionDropdown =
require("./src/utils.js").generateVersionDropdown;
const apiReference = require("./developer-docs/api/reference/sidebar");
module.exports = {
docs: [
{
type: "html",
value: generateVersionDropdown(docsSidebar),
},
{
type: "doc",
id: "index",
},
{
type: "category",
label: "Blueprints",
link: {
type: "doc",
id: "blueprints/index",
},
items: [
"blueprints/export",
"blueprints/v1/structure",
"blueprints/v1/tags",
"blueprints/v1/example",
{
type: "category",
label: "Models",
link: {
type: "doc",
id: "blueprints/v1/models",
},
items: ["blueprints/v1/meta"],
},
],
},
{
type: "category",
label: "API",
link: {
type: "doc",
id: "api/api",
},
items: [
"api/flow-executor",
"api/making-schema-changes",
"api/websocket",
{
type: "category",
label: "Reference",
items: apiReference,
},
"api/clients",
],
},
{
type: "category",
label: "Setup",
items: [
"setup/full-dev-environment",
"setup/frontend-dev-environment",
"setup/website-dev-environment",
],
},
{
type: "doc",
id: "translation",
},
{
type: "category",
label: "Writing documentation",
link: {
type: "doc",
id: "docs/writing-documentation",
},
items: [
{
type: "category",
label: "Templates",
link: {
type: "doc",
id: "docs/templates/index",
},
items: [
"docs/templates/procedural",
"docs/templates/conceptual",
"docs/templates/reference",
],
},
],
},
{
type: "doc",
id: "releases/index",
},
{
type: "category",
label: "Community Events",
items: ["hackathon/index"],
},
],
};