Skip to content

Commit

Permalink
display platforms and data sidebars better in spanish
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliotFriend committed Dec 17, 2024
1 parent 42518d1 commit 5875566
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/theme/DocSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ export default function DocSidebarWrapper(props: Props): JSX.Element {
let newProps;

// For all `/platforms` and `/docs/data` sidebars, remove the parent category from the sidebar.
if (props.path.startsWith('/platforms') || props.path.startsWith('/docs/data')) {
if (
props.path.startsWith('/platforms') ||
props.path.startsWith('/docs/data') ||
props.path.startsWith('/es/platforms') ||
props.path.startsWith('/es/docs/data')
) {
newProps = {
...props,
};
Expand Down

0 comments on commit 5875566

Please sign in to comment.