Skip to content

Commit

Permalink
Merge pull request #6064 from EnterpriseDB/docs/fix/infobox
Browse files Browse the repository at this point in the history
Misc fixes to infobox and EDB/docs header
  • Loading branch information
djw-m authored Sep 18, 2024
2 parents 44d07be + f5a640d commit 0088850
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 20 deletions.
3 changes: 2 additions & 1 deletion advocacy_docs/edb-postgres-ai/overview/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: EDB Postgres AI overview
navTitle: Overview
indexCards: simple
iconName: Earth
directoryDefaults:
iconName: Earth
description: An overview of all the EDB Postgres AI platform and tools
navigation:
- overview-and-concepts
Expand Down
38 changes: 25 additions & 13 deletions src/components/left-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,25 @@ const SectionHeading = ({ navTree, path, iconName }) => {

return (
<li className="ms-0 mb-4 d-flex align-items-center">
<Icon
iconName={myIconName}
className={className}
width="50"
height="50"
/>
<Link
to={navTree.path}
className="d-block py-1 align-middle balance-text h5 m-0 text-dark"
>
{navTree.title}
<Icon
iconName={myIconName}
className={className}
width="50"
height="50"
/>
</Link>
<div>
<Link
to={navTree.path}
className="d-block py-1 align-middle balance-text h5 m-0 text-dark"
>
{navTree.title}
</Link>
</div>
</li>
);
};
Expand All @@ -46,12 +53,17 @@ const SectionHeadingWithVersions = ({
}) => {
return (
<li className="ms-0 mb-4 d-flex align-items-center">
<Icon
iconName={iconName || productIcon(path) || iconNames.DOTTED_BOX}
className="fill-orange me-3"
width="50"
height="50"
/>
<Link
to={navTree.path}
className="d-block py-1 align-middle balance-text h5 m-0 text-dark"
>
<Icon
iconName={iconName || productIcon(path) || iconNames.DOTTED_BOX}
className="fill-orange me-3"
width="50"
height="50"
/>
</Link>
<div className="rightsidenoclass">
<Link
to={navTree.path}
Expand Down
6 changes: 2 additions & 4 deletions src/components/search-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ const LogoLink = () => (
const DocsLink = ({ className }) => (
<Link
to="/"
className={["me-3 lead text-muted pt-2 header-docs-link", className].join(
" ",
)}
className={["me-3 lead text-muted pt-2", className].join(" ")}
title="EDB Docs homepage"
>
/<span className="ps-1">docs</span>
/<span className="ps-0">docs</span>
</Link>
);

Expand Down
4 changes: 2 additions & 2 deletions src/components/side-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { DarkModeToggle, Link, Logo } from "./";
const DocsLink = () => (
<Link
to="/"
className="me-3 lead text-muted pt-3 header-docs-link"
className="ms-1 me-3 lead text-muted pt-3"
title="EDB Docs homepage"
>
/<span className="ps-1">docs</span>
/<span className="ps-0">docs</span>
</Link>
);

Expand Down

1 comment on commit 0088850

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.