diff options
author | DidierRLopes <dro.lopes@campus.fct.unl.pt> | 2023-11-14 09:52:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 09:52:31 -0800 |
commit | b17a476111ab5ac04226adee2c4d8584d709d2a2 (patch) | |
tree | 8d8d379818b1ddda9397407650530a3262eba48c | |
parent | 2b7c03dfe9d47c02414dd0750305c3977aecbada (diff) |
Ccards (#5733)hotfix/enhance-docs-with-cards
* links
* more links
* improved styling and chevron aligned to title
5 files changed, 15 insertions, 13 deletions
diff --git a/website/content/terminal/menus/forecast.md b/website/content/terminal/menus/forecast.md index 8b2b4800e39..f4e29272f43 100644 --- a/website/content/terminal/menus/forecast.md +++ b/website/content/terminal/menus/forecast.md @@ -42,7 +42,7 @@ The Forecast menu is entered from the Main menu, `forecast`, or with the absolut ![The Forecast Menu](https://user-images.githubusercontent.com/85772166/233540050-071524c6-f374-4241-aa31-cf33b7685e22.png) -There are also methods for entering the menu with a loaded ticker symbol from either of the [`/crypto` menu](/terminal/menus/crypto/introduction.md) and [`/stocks` menu](/terminal/menus/stocks/introduction.md) +There are also methods for entering the menu with a loaded ticker symbol from either of the [`/crypto` menu](/terminal/menus/crypto) and [`/stocks` menu](/terminal/menus/stock) The menu is divided into sections for: diff --git a/website/content/terminal/menus/stocks/tradinghours.md b/website/content/terminal/menus/stocks/tradinghours.md index 372e627c7eb..bca0e7d49c3 100644 --- a/website/content/terminal/menus/stocks/tradinghours.md +++ b/website/content/terminal/menus/stocks/tradinghours.md @@ -21,7 +21,7 @@ This set of features is for checking the operating status of markets globally. ## Usage -Enter, `th`, from the [`/stocks/`](/terminal/menus/stocks/introduction.md) menu. Or, with the absolute path: +Enter, `th`, from the [`/stocks/`](/terminal/menus/stocks) menu. Or, with the absolute path: ```console /stocks/th diff --git a/website/content/terminal/usage/overview/commands-and-arguments.md b/website/content/terminal/usage/overview/commands-and-arguments.md index 17644edf378..182fb3f29e2 100644 --- a/website/content/terminal/usage/overview/commands-and-arguments.md +++ b/website/content/terminal/usage/overview/commands-and-arguments.md @@ -89,7 +89,7 @@ The `about` command opens the browser to the OpenBB documentation pages for the (🦋) / $ about stocks ``` -The command above will open a browser to [Introduction to the Stocks menu](/terminal/menus/stocks/introduction.md). +The command above will open a browser to [Introduction to the Stocks menu](/terminal/menus/stocks). ### Support diff --git a/website/content/terminal/usage/overview/structure-and-navigation.md b/website/content/terminal/usage/overview/structure-and-navigation.md index b106f51df38..4128238351a 100644 --- a/website/content/terminal/usage/overview/structure-and-navigation.md +++ b/website/content/terminal/usage/overview/structure-and-navigation.md @@ -41,7 +41,7 @@ A menu is a collection of commands (and sub-menus). A menu can be distinguished Navigating through the Terminal menus is similar to traversing folders from any operating system's command line prompt. The `/home` screen is the main directory where everything begins, and the menus are paths branched from the main. Instead of `C:\Users\OpenBB\Documents`, you'll have something like `/stocks/options`. Instead of `cd ..`, you can do `..` to return the menu right above. To go back to the root menu you can do `/`. -Absolute paths are also valid to-and-from any point. From the [`/stocks/options`](/terminal/menus/stocks/options) menu, you can go directly to [`crypto`](/terminal/menus/crypto/introduction.md) menu with: `/crypto`. Note the forward slash at the start to denote the "absolute" path. +Absolute paths are also valid to-and-from any point. From the [`/stocks/options`](/terminal/menus/stocks/options) menu, you can go directly to [`crypto`](/terminal/menus/crypto) menu with: `/crypto`. Note the forward slash at the start to denote the "absolute" path. <TutorialVideo diff --git a/website/src/components/General/NewReferenceCard.tsx b/website/src/components/General/NewReferenceCard.tsx index b3999be2414..7e24f68d8fc 100644 --- a/website/src/components/General/NewReferenceCard.tsx +++ b/website/src/components/General/NewReferenceCard.tsx @@ -23,11 +23,11 @@ export default function NewReferenceCard({ return ( <Link className={clsx( - "rounded border-2 hover:!text-black dark:hover:!text-white !no-underline p-6 cursor-pointer relative overflow-hidden hover:shadow-2xl hover:-translate-y-2 transform transition-all duration-300 ease-in-out font-bold shadow-2xl", + "rounded border-2 hover:!text-black dark:hover:!text-white !no-underline p-6 cursor-pointer relative overflow-hidden hover:-translate-y-2 transform transition-all duration-300 ease-in-out font-bold shadow-md", { - "bg-[#b186bb] border-[#b186bb] hover:border-black dark:bg-[#3a204f] dark:border-[#3a204f] dark:hover:border-white": cleanedPath.startsWith("/bot"), - "bg-[#669DCB] border-[#669DCB] hover:border-black dark:bg-[#004A87] dark:border-[#004A87] dark:hover:border-white": cleanedPath.startsWith("/terminal"), - "bg-[#F5B166] border-[#F5B166] hover:border-black dark:bg-[#511d11] dark:border-[#511d11] dark:hover:border-white": cleanedPath.startsWith("/sdk") || cleanedPath.startsWith("/platform"), + "hover:bg-[#669DCB] border-[#669DCB] dark:hover:bg-[#004A87] dark:border-[#004A87]": cleanedPath.startsWith("/terminal"), + "hover:bg-[#b186bb] border-[#b186bb] dark:hover:bg-[#3a204f] dark:border-[#3a204f]": cleanedPath.startsWith("/bot"), + "hover:bg-[#F5B166] border-[#F5B166] dark:hover:bg-[#511d11] dark:border-[#511d11]": cleanedPath.startsWith("/sdk") || cleanedPath.startsWith("/platform"), header_docs: !cleanedPath.startsWith("/terminal") && !cleanedPath.startsWith("/sdk") && @@ -38,11 +38,13 @@ export default function NewReferenceCard({ to={url} > <div className="absolute top-0 right-0 left-0 bottom-0" /> - <p className={"py-2 font-bold text-lg my-0"}> - {title} - {something} - </p> - <ChevronRightIcon className="absolute top-0 right-0 bottom-0 my-auto mr-4" /> + <div className="flex items-center"> + <p className={"py-2 font-bold text-lg my-0"}> + {title} + {something} + </p> + <ChevronRightIcon className="ml-auto mr-4" /> + </div> {description ? ( <p className="text-grey-900 dark:text-grey-200 text-xs font-medium mt-2 mb-0">{description}</p> ) : null} |