mirror of
https://github.com/goauthentik/authentik
synced 2026-04-26 01:25:02 +02:00
website: Glossary (#16007)
* website: Glossary fix minor issues wip Apply suggestion from @dominic-r Signed-off-by: Dominic R <dominic@sdko.org> anchor to param wip wip at least the lockfile changes now sure a-z first as tana asked idk why i switched in the first place wip wip lock lockfiles are hard wip please work no have? Revert "no have?" This reverts commit 743dbc1bc2900eedcc2c93af248e6afdec3688a3. * changed to sentence-case capitalization --------- Co-authored-by: Tana M Berry <tana@goauthentik.io>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
/// <reference types="@docusaurus/plugin-content-docs" />
|
||||
import "./styles.css";
|
||||
|
||||
import { isGlossaryItem } from "../utils/glossaryUtils";
|
||||
|
||||
import { VersionPicker } from "#components/VersionPicker/index.tsx";
|
||||
|
||||
import {
|
||||
@@ -18,9 +20,13 @@ const DocSidebarItems = ({ items, ...props }: DocSidebarItemsProps): JSX.Element
|
||||
return (
|
||||
<DocSidebarItemsExpandedStateProvider>
|
||||
{includeVersionPicker ? <VersionPicker /> : null}
|
||||
{visibleItems.map((item, index) => (
|
||||
<DocSidebarItem key={index} item={item} index={index} {...props} />
|
||||
))}
|
||||
{visibleItems.map((item, index) => {
|
||||
if (isGlossaryItem(item)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <DocSidebarItem key={index} item={item} index={index} {...props} />;
|
||||
})}
|
||||
</DocSidebarItemsExpandedStateProvider>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user