Skip to content

Commit

Permalink
Fix open in new tab links in docusaurus (#1000)
Browse files Browse the repository at this point in the history
Co-authored-by: sushitommy <>
  • Loading branch information
sushitommy authored Jan 9, 2025
1 parent 936e0ce commit b5e5ba6
Show file tree
Hide file tree
Showing 48 changed files with 143 additions and 112 deletions.
2 changes: 1 addition & 1 deletion components/accordion/accordion.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Documentation from "./README.md";
import Accordion from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<ComponentExample storyName="componenten-accordion--default">
<Accordion />
</ComponentExample>

Expand Down
2 changes: 1 addition & 1 deletion components/action-group/action-group.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Documentation from "./README.md";
import ActionGroup from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<ComponentExample storyName="componenten-action-group--default">
<ActionGroup />
</ComponentExample>

Expand Down
2 changes: 1 addition & 1 deletion components/alert/alert.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Documentation from "./README.md";
import Alert from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<ComponentExample storyName="componenten-alert--default">
<Alert />
</ComponentExample>

Expand Down
2 changes: 1 addition & 1 deletion components/breadcrumbs/breadcrumbs.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Documentation from "./README.md";
import BreadCrumbs from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<ComponentExample storyName="componenten-breadcrumbs--default">
<BreadCrumbs />
</ComponentExample>

Expand Down
26 changes: 19 additions & 7 deletions components/button/button.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,38 @@ import Heading from "../heading/src/template";

Primary button:

<ComponentExample>
<ComponentExample storyName="componenten-button--default">
<Button />
</ComponentExample>

Secondary button:
{(() => {
const props = { kind: "secondary" };
return (

<ComponentExample>
<Button kind="secondary" />
<ComponentExample storyName="componenten-button--default">
<Button {...props} />
</ComponentExample>
); })()}

Tertiary button:
{(() => {
const props = { kind: "tertiary" };
return (

<ComponentExample>
<Button kind="tertiary" />
<ComponentExample storyName="componenten-button--default" args={props}>
<Button {...props} />
</ComponentExample>
); })()}

Quaternary button:
{(() => {
const props = { kind: "quaternary" };
return (

<ComponentExample>
<Button kind="quaternary" />
<ComponentExample storyName="componenten-button--default" args={props}>
<Button {...props} />
</ComponentExample>
); })()}

<Documentation />
5 changes: 2 additions & 3 deletions components/card/card.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ slug: .

import Documentation from "./README.md";
import Card from "./src/template";
import CardImageUrl from "../../documentation/demopages/common/images/www/home.jpg";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<Card outline={true} image={CardImageUrl} fullCardLink={true} />
<ComponentExample storyName="componenten-card--default">
<Card />
</ComponentExample>

<Documentation />
6 changes: 3 additions & 3 deletions components/data-list/data-list.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ slug: .
---

import Documentation from "./README.md";
import Datalist from "./src/template.tsx";
import DataList from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<Datalist />
<ComponentExample storyName="componenten-data-list--default">
<DataList />
</ComponentExample>

<Documentation />
4 changes: 2 additions & 2 deletions components/dialog/dialog.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import Documentation from "./README.md";
import Dialog from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<Dialog>Dialog content</Dialog>
<ComponentExample storyName="componenten-dialog--default">
<Dialog />
</ComponentExample>

<Documentation />
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Documentation from "./README.md";
import ExpandableContent from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<ComponentExample storyName="componenten-expandable-content--default">
<ExpandableContent />
</ComponentExample>

Expand Down
7 changes: 6 additions & 1 deletion components/favicon/favicon.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ import Favicon from "./src/template";
import FavIconUrl from "../../documentation/demopages/common/favicon.ico";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

{(() => {
const props = { src: FavIconUrl };
return (

<ComponentExample>
<Favicon src={FavIconUrl} />
<Favicon {...props} />
</ComponentExample>
); })()}

<Documentation />
2 changes: 1 addition & 1 deletion components/footer/footer.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Documentation from "./README.md";
import Footer from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<ComponentExample storyName="componenten-footer--default">
<Footer />
</ComponentExample>

Expand Down
4 changes: 2 additions & 2 deletions components/form-feedback/feedback.docusaurus.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Feedback
title: Form feedback
hide_title: false
hide_table_of_contents: true
slug: .
Expand All @@ -9,7 +9,7 @@ import Documentation from "./README.md";
import Feedback from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<ComponentExample storyName="componenten-feedback--default">
<Feedback />
</ComponentExample>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Checkboxes
title: Checkbox field
hide_title: false
hide_table_of_contents: true
slug: .
Expand All @@ -10,7 +10,7 @@ import FormFieldCheckbox from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";
import FieldDocumentation from "../form-field/README.md";

<ComponentExample>
<ComponentExample storyName="componenten-checkbox-field--default">
<FormFieldCheckbox />
</ComponentExample>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Date input
title: Date input field
hide_title: false
hide_table_of_contents: true
slug: .
Expand All @@ -10,7 +10,7 @@ import FormFieldDateInput from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";
import FieldDocumentation from "../form-field/README.md";

<ComponentExample>
<ComponentExample storyName="componenten-dateinput-field--default">
<FormFieldDateInput />
</ComponentExample>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import FormFieldFileInput from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";
import FieldDocumentation from "../form-field/README.md";

<ComponentExample>
<ComponentExample storyName="componenten-fileinput-field--default">
<FormFieldFileInput />
</ComponentExample>

Expand Down
2 changes: 1 addition & 1 deletion components/form-field-label/label.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Label from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";
import FieldDocumentation from "../form-field/README.md";

<ComponentExample>
<ComponentExample storyName="componenten-label--default">
<Label />
</ComponentExample>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import FormFieldFileInput from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";
import FieldDocumentation from "../form-field/README.md";

<ComponentExample>
<ComponentExample storyName="componenten-radio-button-field--default">
<FormFieldFileInput />
</ComponentExample>

Expand Down
6 changes: 3 additions & 3 deletions components/form-field-select/form-field-select.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ slug: .
---

import Documentation from "./README.md";
import FormFieldFileInput from "./src/template";
import FormFieldSelect from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";
import FieldDocumentation from "../form-field/README.md";

<ComponentExample>
<FormFieldFileInput />
<ComponentExample storyName="componenten-select-field--default">
<FormFieldSelect />
</ComponentExample>

<Documentation />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Textarea
title: Text area field
hide_title: false
hide_table_of_contents: true
slug: .
Expand All @@ -10,7 +10,7 @@ import FormFieldTextarea from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";
import FieldDocumentation from "../form-field/README.md";

<ComponentExample>
<ComponentExample storyName="componenten-textarea-field--default">
<FormFieldTextarea />
</ComponentExample>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Text input
title: Text input field
hide_title: false
hide_table_of_contents: true
slug: .
Expand All @@ -10,7 +10,7 @@ import FormFieldTextInput from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";
import FieldDocumentation from "../form-field/README.md";

<ComponentExample>
<ComponentExample storyName="componenten-textinput-field--default">
<FormFieldTextInput />
</ComponentExample>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Time input
title: Time input field
hide_title: false
hide_table_of_contents: true
slug: .
Expand All @@ -10,7 +10,7 @@ import FormFieldTimeInput from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";
import FieldDocumentation from "../form-field/README.md";

<ComponentExample>
<ComponentExample storyName="componenten-timeinput-field--default">
<FormFieldTimeInput />
</ComponentExample>

Expand Down
8 changes: 4 additions & 4 deletions components/form-fieldset/form-fieldset.docusaurus.mdx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
title: Fieldset
title: Form fieldset
hide_title: false
hide_table_of_contents: true
slug: .
---

import Documentation from "./README.md";
import Fieldset from "./src/template";
import FormFieldset from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<Fieldset />
<ComponentExample storyName="componenten-fieldset--default">
<FormFieldset />
</ComponentExample>

<Documentation />
11 changes: 8 additions & 3 deletions components/grid/grid.docusaurus.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Grid layout
title: Grid
hide_title: false
hide_table_of_contents: true
slug: .
Expand All @@ -9,8 +9,13 @@ import Documentation from "./README.md";
import Grid from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<Grid gap="md" />
{(() => {
const props = { columns: "three" };
return (

<ComponentExample storyName="layout-grid--default" args={props}>
<Grid {...props} />
</ComponentExample>
); })()}

<Documentation />
2 changes: 1 addition & 1 deletion components/header/header.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Documentation from "./README.md";
import Header from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<ComponentExample storyName="componenten-header--default">
<Header />
</ComponentExample>

Expand Down
14 changes: 3 additions & 11 deletions components/heading/heading.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,10 @@ import Documentation from "./README.md";
import Heading from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<br />
Alle headings van niveau 1 t/m 6:
<Heading type="h2">Heading</Heading>

<ComponentExample>
<div>
<Heading type="h1">Heading 1</Heading>
<Heading type="h2">Heading 2</Heading>
<Heading type="h3">Heading 3</Heading>
<Heading type="h4">Heading 4</Heading>
<Heading type="h5">Heading 5</Heading>
<Heading type="h6">Heading 6</Heading>
</div>
<ComponentExample storyName="componenten-heading--default">
<Heading />
</ComponentExample>

<Documentation />
5 changes: 2 additions & 3 deletions components/hero/hero.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ slug: .

import Documentation from "./README.md";
import Hero from "./src/template";
import HeroImageUrl from "../../documentation/demopages/common/images/www/home.jpg";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<Hero image={HeroImageUrl} />
<ComponentExample storyName="componenten-hero--default">
<Hero />
</ComponentExample>

<Documentation />
2 changes: 1 addition & 1 deletion components/horizontal-rule/horizontal-rule.docusaurus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Documentation from "./README.md";
import Hr from "./src/template";
import ComponentExample from "../../packages/docusaurus/src/components/ComponentExample";

<ComponentExample>
<ComponentExample storyName="componenten-horizontal-rule--default">
<Hr />
</ComponentExample>

Expand Down
Loading

0 comments on commit b5e5ba6

Please sign in to comment.