Skip to content

Commit

Permalink
Add light blue banner, blue when clicking sidebar + fix link in docus…
Browse files Browse the repository at this point in the history
…aurus.config.js (#5627)

* typo

* pro docs tab coloring

* sidebar selection blue

* redirecting missing
  • Loading branch information
DidierRLopes authored Oct 30, 2023
1 parent 4ad995f commit b9c70ec
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ If your endpoint requires additional headers, don't worry. You can easily add th

In addition, if your API endpoint doesn't return a a simple JSON but a nested architecture, you will be prompted with a "Data Key" parameter which you can use to grab the data of interest.

If you want to do something more custom, you should look into creating [your own backend](docs/docs/pro/main-menu/data-connectors/advanced.md), or reach out to OpenBB for support.
If you want to do something more custom, you should look into creating [your own backend](/pro/main-menu/data-connectors/advanced.md), or reach out to OpenBB for support.
4 changes: 2 additions & 2 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const config = {
{
redirects: [
{
from: "/terminal/usage/intros/forecasting",
to: "/terminal/usage/intros/forecast",
from: "/terminal/data-available/forecasting",
to: "/terminal/data-available/forecast",
},
],
},
Expand Down
6 changes: 6 additions & 0 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,12 @@
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#062d48", endColorstr="#060709", GradientType=1);
}

/* convert to css tag */
.header_docs_pro {
background: rgb(2,0,36);background: rgb(2,0,36);
background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(36,108,155,1) 13%, rgba(66,154,205,1) 22%, rgba(43,85,107,1) 42%, rgba(12,36,53,1) 61%, rgba(6,6,6,1) 100%);
}

table {
border-collapse: collapse;
border: none;
Expand Down
7 changes: 5 additions & 2 deletions website/src/theme/Navbar/Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export default function NavbarLayout({ children }) {
const cleanedPath = pathname.replace(/\/v\d+/, "");

useEffect(() => {
if (cleanedPath.startsWith("/terminal")) {
if (cleanedPath.startsWith("/terminal") ||
cleanedPath.startsWith("/pro")) {
document.documentElement.style.setProperty(
"--ifm-color-primary",
"#669DCB",
Expand Down Expand Up @@ -57,6 +58,7 @@ export default function NavbarLayout({ children }) {
"border-b border-grey-600 lg:px-12",
{
header_docs_terminal: cleanedPath.startsWith("/terminal"),
header_docs_pro: cleanedPath.startsWith("/pro"),
header_docs_sdk:
cleanedPath.startsWith("/sdk") ||
cleanedPath.startsWith("/platform"),
Expand All @@ -65,7 +67,8 @@ export default function NavbarLayout({ children }) {
!cleanedPath.startsWith("/terminal") &&
!cleanedPath.startsWith("/sdk") &&
!cleanedPath.startsWith("/platform") &&
!cleanedPath.startsWith("/bot"),
!cleanedPath.startsWith("/bot") &&
!cleanedPath.startsWith("/pro"),
},
"navbar",
"navbar--fixed-top",
Expand Down

0 comments on commit b9c70ec

Please sign in to comment.