Skip to content

Commit 0b401fe

Browse files
authored
refactor: move "use-cases" docs from topbar to sidebar (#1274)
1 parent 98e6d4a commit 0b401fe

File tree

6 files changed

+12
-18
lines changed

6 files changed

+12
-18
lines changed

docusaurus-common.config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@ export const createCommonThemeConfig = (site: Site) => {
177177
position: 'left',
178178
label: 'API protection',
179179
},
180-
{
181-
to: buildUrl('/use-cases', 'main'),
182-
position: 'left',
183-
label: 'Use cases',
184-
},
185180
{
186181
to: new URL('https://openapi.logto.io', mainSiteUrl).href,
187182
position: 'left',

i18n/th/docusaurus-plugin-content-docs/current.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -179,18 +179,6 @@
179179
"message": "การอนุญาต",
180180
"description": "The label for link Authorization in sidebar integrationsSidebar, linking to #"
181181
},
182-
"sidebar.useCasesSidebar.category.Authorization": {
183-
"message": "การอนุญาต",
184-
"description": "The label for category Authorization in sidebar useCasesSidebar"
185-
},
186-
"sidebar.useCasesSidebar.category.Multi-tenancy": {
187-
"message": "หลายผู้เช่า",
188-
"description": "The label for category Multi-tenancy in sidebar useCasesSidebar"
189-
},
190-
"sidebar.useCasesSidebar.category.AI": {
191-
"message": "AI",
192-
"description": "The label for category AI in sidebar useCasesSidebar"
193-
},
194182
"sidebar.apiProtectionSidebar.category..NET": {
195183
"message": ".NET",
196184
"description": "The label for category .NET in sidebar apiProtectionSidebar"

src/assets/light-bulb.svg

Lines changed: 3 additions & 0 deletions
Loading

src/sidebar/docs.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ const docsSidebar: SidebarConfig = [
9393
items: [{ type: 'autogenerated', dirName: 'logto-oss' }],
9494
customProps: { id: 'logto-oss' },
9595
},
96+
{
97+
type: 'category',
98+
label: 'Use cases',
99+
link: { type: 'doc', id: 'use-cases/README' },
100+
items: [{ type: 'autogenerated', dirName: 'use-cases' }],
101+
customProps: { id: 'use-cases' },
102+
},
96103
{
97104
type: 'category',
98105
label: 'Concepts',

src/sidebar/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const sidebars: SidebarsConfig = {
1919
docsSidebar,
2020
quickStartSidebar,
2121
integrationsSidebar,
22-
useCasesSidebar: [{ type: 'autogenerated', dirName: 'use-cases' }],
2322
apiProtectionSidebar: [{ type: 'autogenerated', dirName: 'api-protection' }],
2423

2524
// But you can create a sidebar manually

src/theme/DocSidebarItem/Category/icons.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Customization from '@site/src/assets/customization.svg';
88
import Developer from '@site/src/assets/developer.svg';
99
import Integrate from '@site/src/assets/integrate.svg';
1010
import Introduction from '@site/src/assets/introduction.svg';
11+
import LightBulb from '@site/src/assets/light-bulb.svg';
1112
import OpenSource from '@site/src/assets/open-source.svg';
1213
import Organization from '@site/src/assets/organization.svg';
1314
import Security from '@site/src/assets/security.svg';
@@ -38,6 +39,7 @@ const icons: IconMap = Object.freeze({
3839
concepts: Concepts,
3940
security: Security,
4041
'secret-vault': Vault,
42+
'use-cases': LightBulb,
4143
});
4244

4345
export default icons;

0 commit comments

Comments
 (0)