Skip to content

Commit

Permalink
fix: operations category sidebar (#1907)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinckr authored Sep 30, 2024
1 parent cf1b07e commit eea8024
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 19 deletions.
11 changes: 11 additions & 0 deletions docs/guides/operations.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
id: operations
title: Operations
---

```mdx-code-block
import DocCardList from '@theme/DocCardList';
import {useCurrentSidebarCategory} from '@docusaurus/theme-common';
<DocCardList items={useCurrentSidebarCategory().items}/>
```
54 changes: 35 additions & 19 deletions src/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,31 @@ const referenceSidebar: ExtendSidebar = [
"sdk",
{
type: "category",
label: "Operations",
label: "Operations reference",
collapsed: false,
collapsible: false,
link: {
type: "generated-index",
},
items: [
"concepts/personal-access-token",
"guides/cors",
"guides/custom-domains",
"guides/rate-limits",
"guides/ip-allowlist",
"api/eventual-consistency",
"guides/custom-domains",
"console/usage-billing",
],
},
{
type: "category",
label: "Ory CLI",
label: "Ory CLI reference",
collapsed: false,
collapsible: false,
link: {
type: "generated-index",
},
items: [
"guides/cli/installation",
"guides/cli/cli-basics",
Expand All @@ -53,7 +62,10 @@ const referenceSidebar: ExtendSidebar = [
"guides/cli/config-with-cli",
{
type: "category",
label: "CLI commands",
label: "CLI commands reference",
link: {
type: "generated-index",
},
items: [
{
type: "autogenerated",
Expand Down Expand Up @@ -403,8 +415,8 @@ const guidesSidebar = (flat: boolean): ExtendSidebar => {
{
type: "category",
label: "OAuth2 client management",
collapsed: true,
collapsible: true,
collapsed: false,
collapsible: false,
link: {
type: "doc",
id: "hydra/guides/oauth2-clients",
Expand All @@ -413,7 +425,24 @@ const guidesSidebar = (flat: boolean): ExtendSidebar => {
? []
: ["hydra/jwks", "hydra/guides/openid", "oauth2-oidc/issuer-url"],
},
"actions/live-events",
{
type: "category",
label: "Operations",
link: {
type: "doc",
id: "guides/operations",
},
collapsed: false,
collapsible: false,
items: flat
? []
: [
"guides/manage-project-via-api",
"console/change-owner",
"guides/gitops",
"actions/live-events",
],
},
{
type: "category",
label: "Migrate to Ory",
Expand Down Expand Up @@ -989,19 +1018,6 @@ module.exports = {
},
],
},
{
type: "category",
label: "Operations",
collapsed: false,
collapsible: false,
items: [
"guides/manage-project-via-api",
"guides/custom-domains",
"console/usage-billing",
"console/change-owner",
"guides/gitops",
],
},
{
type: "category",
label: "Compliance and security",
Expand Down

0 comments on commit eea8024

Please sign in to comment.