From 38af73d133dd8b81a855876702b9da8c3f7c98c3 Mon Sep 17 00:00:00 2001 From: Rene Pot Date: Tue, 7 May 2024 10:58:23 -0400 Subject: [PATCH] docs: fix relative demo links to open in new tab (#1498) * docs: fix relative demo links to open in new tab * chore: fix formatting --- docs/docs/components/alertbar.md | 2 +- docs/docs/components/avatar.md | 2 +- docs/docs/components/button.md | 2 +- docs/docs/components/calendar.md | 6 +----- docs/docs/components/card.md | 2 +- docs/docs/components/checkbox.md | 2 +- docs/docs/components/chip.md | 2 +- docs/docs/components/data-table.md | 2 +- docs/docs/components/fileinput.md | 2 +- docs/docs/components/inputfield.md | 4 ++-- docs/docs/components/loading.md | 2 +- docs/docs/components/menu.md | 2 +- docs/docs/components/modal.md | 2 +- docs/docs/components/notice-box.md | 2 +- docs/docs/components/org-unit-tree.md | 2 +- docs/docs/components/pagination.md | 2 +- docs/docs/components/popover.md | 2 +- docs/docs/components/radio.md | 2 +- docs/docs/components/segmented-control.md | 2 +- docs/docs/components/select.md | 2 +- docs/docs/components/switch.md | 2 +- docs/docs/components/tab.md | 2 +- docs/docs/components/tag.md | 2 +- docs/docs/components/tooltip.md | 2 +- docs/docs/components/transfer.md | 2 +- 25 files changed, 26 insertions(+), 30 deletions(-) diff --git a/docs/docs/components/alertbar.md b/docs/docs/components/alertbar.md index ce9c55d133..6ad62ed254 100644 --- a/docs/docs/components/alertbar.md +++ b/docs/docs/components/alertbar.md @@ -224,4 +224,4 @@ import { AlertStack, AlertBar } from '@dhis2/ui' ## Links -- [Demo](https://ui.dhis2.nu/demo/?path=/story/feedback-alerts-alert-bar--default) +- Demo diff --git a/docs/docs/components/avatar.md b/docs/docs/components/avatar.md index 4220168ab0..03fffee556 100644 --- a/docs/docs/components/avatar.md +++ b/docs/docs/components/avatar.md @@ -65,4 +65,4 @@ The Demo above lists the different sizes available. The related JSX is: ## Links -- [Demo](https://ui.dhis2.nu/demo/?path=/story/utils-user-avatar--default) +- Demo diff --git a/docs/docs/components/button.md b/docs/docs/components/button.md index 6fa258091f..70a02cbbbb 100644 --- a/docs/docs/components/button.md +++ b/docs/docs/components/button.md @@ -231,4 +231,4 @@ Buttons are available in different sizes. Use the size that matches the usage gu ## Links -- [Demo](https://ui.dhis2.nu/demo/?path=/story/actions-buttons-button--basic) +- Demo diff --git a/docs/docs/components/calendar.md b/docs/docs/components/calendar.md index e579721b6c..9dde639cce 100644 --- a/docs/docs/components/calendar.md +++ b/docs/docs/components/calendar.md @@ -204,12 +204,8 @@ To display a calendar for the user to pick a day in any supported calendar syste ## Links -- [Demo](https://ui.dhis2.nu/demo/?path=/story/calendar--with-ethiopic) - +- Demo - [Design document](https://docs.google.com/document/d/19zjyB45oBbqC5KeubaU8E7cw9fGhFc3tOXY0GkzZKqc/edit#) - - [ADR for decision to use Temporal API](https://github.com/dhis2/multi-calendar-dates/blob/beta/doc/architecture/decisions/0002-use-temporal-api-as-the-backbone-for-the-engine.md) - - [multi-calendar-dates](https://github.com/dhis2/multi-calendar-dates) is the library that this component is built on top of. - - [Temporal API standard propsal](https://tc39.es/proposal-temporal/): the standard powering the multi-calendar-dates library diff --git a/docs/docs/components/card.md b/docs/docs/components/card.md index 0086c505d1..dde83cfd93 100644 --- a/docs/docs/components/card.md +++ b/docs/docs/components/card.md @@ -35,4 +35,4 @@ A card is a container element used to group together and separate blocks of cont ## Links -- [Demo](https://ui.dhis2.nu/demo/?path=/story/layout-card--default) +- Demo diff --git a/docs/docs/components/checkbox.md b/docs/docs/components/checkbox.md index 06f79e2a7e..46d317d2e9 100644 --- a/docs/docs/components/checkbox.md +++ b/docs/docs/components/checkbox.md @@ -55,4 +55,4 @@ Checkboxes are used to choose one or more items from a list. A checkbox can also ## Links -- [Demo](https://ui.dhis2.nu/demo/?path=/story/forms-checkbox-checkbox--default) +- Demo diff --git a/docs/docs/components/chip.md b/docs/docs/components/chip.md index dad956a78b..bd8c1e3ad6 100644 --- a/docs/docs/components/chip.md +++ b/docs/docs/components/chip.md @@ -101,4 +101,4 @@ Chips are used to select from a set of defined options. Chips can also represent ## Links -- [Demo](https://ui.dhis2.nu/demo/?path=/story/actions-chip--default) +- Demo diff --git a/docs/docs/components/data-table.md b/docs/docs/components/data-table.md index 29ca1a4961..6485e2d14c 100644 --- a/docs/docs/components/data-table.md +++ b/docs/docs/components/data-table.md @@ -194,4 +194,4 @@ Patterns are common ways of achieving some functionality. Patterns aren't offere ## Links -- [Demo](/demo/?path=/story/datatable--default) +- Demo diff --git a/docs/docs/components/fileinput.md b/docs/docs/components/fileinput.md index d1de2e8b4a..cfa9748a1c 100644 --- a/docs/docs/components/fileinput.md +++ b/docs/docs/components/fileinput.md @@ -107,4 +107,4 @@ A file input is used to choose and upload files. ## Links -- [Demo](/demo/?path=/story/file-input--default) +- Demo diff --git a/docs/docs/components/inputfield.md b/docs/docs/components/inputfield.md index 236d5af4ac..f3eec0a902 100644 --- a/docs/docs/components/inputfield.md +++ b/docs/docs/components/inputfield.md @@ -262,5 +262,5 @@ The following data types don't change the interaction with the input, but should ## Links -- [Demo](/demo/?path=/story/file-input-field--default) -- [`TextArea` demo](/demo/?path=/story/text-area--placeholder-no-value) +- Demo +- `TextArea`Demo diff --git a/docs/docs/components/loading.md b/docs/docs/components/loading.md index c4be767ddb..b7dbef9943 100644 --- a/docs/docs/components/loading.md +++ b/docs/docs/components/loading.md @@ -104,4 +104,4 @@ Loaders are used to show that something is in progress. They keep users informed ## Links -- [Demo](https://ui.dhis2.nu/demo/?path=/story/feedback-loading-indicators-circular-loader--default) +- Demo diff --git a/docs/docs/components/menu.md b/docs/docs/components/menu.md index ec0be1f67b..11aef00a17 100644 --- a/docs/docs/components/menu.md +++ b/docs/docs/components/menu.md @@ -249,4 +249,4 @@ A menu gives access to menu items, through a panel that opens from a trigger ele ## Links -- [Demo](/demo/?path=/story/flyout-menu--default) +- Demo diff --git a/docs/docs/components/modal.md b/docs/docs/components/modal.md index b6905db6e8..6f430258b4 100755 --- a/docs/docs/components/modal.md +++ b/docs/docs/components/modal.md @@ -179,4 +179,4 @@ The `hide` variable used in the demo's below are initiated using `useState(true) ## Links -- [Demo](/demo/?path=/story/modal--default-content) +- Demo diff --git a/docs/docs/components/notice-box.md b/docs/docs/components/notice-box.md index c50f2a65bc..99abd0d4e3 100644 --- a/docs/docs/components/notice-box.md +++ b/docs/docs/components/notice-box.md @@ -144,4 +144,4 @@ A notice box shows important information about a situation. ## Links -- [Demo](/demo/?path=/story/notice-box--default) +- Demo diff --git a/docs/docs/components/org-unit-tree.md b/docs/docs/components/org-unit-tree.md index c0c98faaf7..dbcdb1dd6e 100644 --- a/docs/docs/components/org-unit-tree.md +++ b/docs/docs/components/org-unit-tree.md @@ -41,4 +41,4 @@ An organisation unit tree is used to choose organisation units from a hierarchy. ## Links -- [Demo](/demo/?path=/story/organisation-unit-tree--collapsed) +- Demo diff --git a/docs/docs/components/pagination.md b/docs/docs/components/pagination.md index 4ca8aebef0..491f607024 100644 --- a/docs/docs/components/pagination.md +++ b/docs/docs/components/pagination.md @@ -104,4 +104,4 @@ Different elements of the pagination component can be included, depending on the ## Links -- [Demo](/demo/?path=/story/pagination--default) +- Demo diff --git a/docs/docs/components/popover.md b/docs/docs/components/popover.md index 3bedbd4182..23184b9c50 100644 --- a/docs/docs/components/popover.md +++ b/docs/docs/components/popover.md @@ -37,4 +37,4 @@ A popover is used to show more information when a user interacts with a trigger ## Links -- [Demo](/demo/?path=/story/popover--default) +- Demo diff --git a/docs/docs/components/radio.md b/docs/docs/components/radio.md index 2aa0386954..4a6192de55 100644 --- a/docs/docs/components/radio.md +++ b/docs/docs/components/radio.md @@ -61,4 +61,4 @@ Radio inputs are used to choose one item from a list. ## Links -- [Demo](/demo/?path=/story/radio--default) +- Demo diff --git a/docs/docs/components/segmented-control.md b/docs/docs/components/segmented-control.md index 3c6cf47520..1e1da41e50 100644 --- a/docs/docs/components/segmented-control.md +++ b/docs/docs/components/segmented-control.md @@ -82,4 +82,4 @@ The value of each property can be used to select the option, using the `selected ## Links -- [Demo](/demo/?path=/story/segmented-control--default) +- Demo diff --git a/docs/docs/components/select.md b/docs/docs/components/select.md index 1b1730b288..25e1b93f99 100644 --- a/docs/docs/components/select.md +++ b/docs/docs/components/select.md @@ -352,4 +352,4 @@ Selects are used to choose one or more items from a list of options. ## Links -- [Demo](/demo/?path=/story/single-select--with-options-and-on-change) +- Demo diff --git a/docs/docs/components/switch.md b/docs/docs/components/switch.md index 4cb22f1113..42399666f4 100644 --- a/docs/docs/components/switch.md +++ b/docs/docs/components/switch.md @@ -58,4 +58,4 @@ Switches are used to toggle something between an on and off state. ## Links -- [Demo](/demo/?path=/story/switch--default) +- Demo diff --git a/docs/docs/components/tab.md b/docs/docs/components/tab.md index f989e3ce36..ed27492cac 100644 --- a/docs/docs/components/tab.md +++ b/docs/docs/components/tab.md @@ -95,4 +95,4 @@ Tabs are used to navigate between different views within the same page or contex ## Links -- [Demo](/demo/?path=/story/tab-bar--default-fluid) +- Demo diff --git a/docs/docs/components/tag.md b/docs/docs/components/tag.md index b8c07d2388..f93c9aa182 100644 --- a/docs/docs/components/tag.md +++ b/docs/docs/components/tag.md @@ -95,4 +95,4 @@ Tags are used to label items by a set of shared properties, like category or sta ## Links -- [Demo](/demo/?path=/story/tag--default) +- Demo diff --git a/docs/docs/components/tooltip.md b/docs/docs/components/tooltip.md index ab07d7173b..74c387f784 100644 --- a/docs/docs/components/tooltip.md +++ b/docs/docs/components/tooltip.md @@ -80,4 +80,4 @@ A tooltip is used to show contextual information when triggered by clicking, foc ## Links -- [Demo](/demo/?path=/story/tooltip--default-placement-top) +- Demo diff --git a/docs/docs/components/transfer.md b/docs/docs/components/transfer.md index ebc5340ff0..cd7a508eb6 100644 --- a/docs/docs/components/transfer.md +++ b/docs/docs/components/transfer.md @@ -158,4 +158,4 @@ The footer component is as follows: ## Links -- [Demo](https://ui.dhis2.nu/demo/?path=/story/forms-transfer--multiple) +- Demo