Skip to content

Commit

Permalink
Remove examples injection (#1349)
Browse files Browse the repository at this point in the history
* Remove examples injection

* Regenerate schema
  • Loading branch information
aniav authored Oct 11, 2024
1 parent 39df1f9 commit b0e550f
Show file tree
Hide file tree
Showing 1,777 changed files with 63,597 additions and 148,621 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
docusaurus.config.js
build/
docs/
examples/
template/
121 changes: 24 additions & 97 deletions docs/api-reference/apps/enums/app-error-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,75 +3,32 @@ id: app-error-code
title: AppErrorCode
---

export const Bullet = () => (
<>
<span
style={{
fontWeight: "normal",
fontSize: ".5em",
color: "var(--ifm-color-secondary-darkest)",
}}
>
&nbsp;&nbsp;
</span>
</>
export const Bullet = () => <><span style={{ fontWeight: 'normal', fontSize: '.5em', color: 'var(--ifm-color-secondary-darkest)' }}>&nbsp;&nbsp;</span></>

export const SpecifiedBy = (props) => <>Specification<a className="link" style={{ fontSize:'1.5em', paddingLeft:'4px' }} target="\_blank" href={props.url} title={'Specified by ' + props.url}>⎘</a></>

export const Badge = (props) => <><span className={props.class}>{props.text}</span></>

import { useState } from 'react';

export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => {
const [open, setOpen] = useState(startOpen);
return (
<details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
<summary
onClick={(e) => {
e.preventDefault();
setOpen((open) => !open);
}}
style={{ listStyle:'none' }} >
{open ? dataOpen : dataClose}
</summary>
{open && children}
</details>
);

export const SpecifiedBy = (props) => (
<>
Specification
<a
className="link"
style={{ fontSize: "1.5em", paddingLeft: "4px" }}
target="\_blank"
href={props.url}
title={"Specified by " + props.url}
>
</a>
</>
);

export const Badge = (props) => (
<>
<span className={props.class}>{props.text}</span>
</>
);

import { useState } from "react";

export const Details = ({
dataOpen,
dataClose,
children,
startOpen = false,
}) => {
const [open, setOpen] = useState(startOpen);
return (
<details
{...(open ? { open: true } : {})}
className="details"
style={{
border: "none",
boxShadow: "none",
background: "var(--ifm-background-color)",
}}
>
<summary
onClick={(e) => {
e.preventDefault();
setOpen((open) => !open);
}}
style={{ listStyle: "none" }}
>
{open ? dataOpen : dataClose}
</summary>
{open && children}
</details>
);
};

An enumeration.
No description

```graphql
enum AppErrorCode {
Expand All @@ -97,64 +54,34 @@ enum AppErrorCode {

#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>FORBIDDEN</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>GRAPHQL_ERROR</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>INVALID</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>INVALID_STATUS</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>INVALID_PERMISSION</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>INVALID_URL_FORMAT</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>INVALID_MANIFEST_FORMAT</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>INVALID_CUSTOM_HEADERS</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>MANIFEST_URL_CANT_CONNECT</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>NOT_FOUND</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>REQUIRED</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>UNIQUE</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>OUT_OF_SCOPE_APP</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>OUT_OF_SCOPE_PERMISSION</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppErrorCode.<b>UNSUPPORTED_SALEOR_VERSION</b></code>](#)

>
### Member Of

[`AppError`](../../../api-reference/apps/objects/app-error) <Badge class="badge badge--secondary" text="object"/>
[`AppError`](../../../api-reference/apps/objects/app-error.mdx) <Badge class="badge badge--secondary" text="object"/>
119 changes: 23 additions & 96 deletions docs/api-reference/apps/enums/app-extension-mount-enum.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,72 +3,29 @@ id: app-extension-mount-enum
title: AppExtensionMountEnum
---

export const Bullet = () => (
<>
<span
style={{
fontWeight: "normal",
fontSize: ".5em",
color: "var(--ifm-color-secondary-darkest)",
}}
>
&nbsp;&nbsp;
</span>
</>
export const Bullet = () => <><span style={{ fontWeight: 'normal', fontSize: '.5em', color: 'var(--ifm-color-secondary-darkest)' }}>&nbsp;&nbsp;</span></>

export const SpecifiedBy = (props) => <>Specification<a className="link" style={{ fontSize:'1.5em', paddingLeft:'4px' }} target="\_blank" href={props.url} title={'Specified by ' + props.url}>⎘</a></>

export const Badge = (props) => <><span className={props.class}>{props.text}</span></>

import { useState } from 'react';

export const Details = ({ dataOpen, dataClose, children, startOpen = false }) => {
const [open, setOpen] = useState(startOpen);
return (
<details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
<summary
onClick={(e) => {
e.preventDefault();
setOpen((open) => !open);
}}
style={{ listStyle:'none' }} >
{open ? dataOpen : dataClose}
</summary>
{open && children}
</details>
);

export const SpecifiedBy = (props) => (
<>
Specification
<a
className="link"
style={{ fontSize: "1.5em", paddingLeft: "4px" }}
target="\_blank"
href={props.url}
title={"Specified by " + props.url}
>
</a>
</>
);

export const Badge = (props) => (
<>
<span className={props.class}>{props.text}</span>
</>
);

import { useState } from "react";

export const Details = ({
dataOpen,
dataClose,
children,
startOpen = false,
}) => {
const [open, setOpen] = useState(startOpen);
return (
<details
{...(open ? { open: true } : {})}
className="details"
style={{
border: "none",
boxShadow: "none",
background: "var(--ifm-background-color)",
}}
>
<summary
onClick={(e) => {
e.preventDefault();
setOpen((open) => !open);
}}
style={{ listStyle: "none" }}
>
{open ? dataOpen : dataClose}
</summary>
{open && children}
</details>
);
};

All places where app extension can be mounted.
Expand Down Expand Up @@ -97,64 +54,34 @@ enum AppExtensionMountEnum {

#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>CUSTOMER_OVERVIEW_CREATE</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>CUSTOMER_OVERVIEW_MORE_ACTIONS</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>CUSTOMER_DETAILS_MORE_ACTIONS</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>PRODUCT_OVERVIEW_CREATE</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>PRODUCT_OVERVIEW_MORE_ACTIONS</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>PRODUCT_DETAILS_MORE_ACTIONS</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>NAVIGATION_CATALOG</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>NAVIGATION_ORDERS</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>NAVIGATION_CUSTOMERS</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>NAVIGATION_DISCOUNTS</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>NAVIGATION_TRANSLATIONS</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>NAVIGATION_PAGES</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>ORDER_DETAILS_MORE_ACTIONS</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>ORDER_OVERVIEW_CREATE</b></code>](#)

>
#### [<code style={{ fontWeight: 'normal' }}>AppExtensionMountEnum.<b>ORDER_OVERVIEW_MORE_ACTIONS</b></code>](#)

>
### Member Of

[`AppExtension`](../../../api-reference/apps/objects/app-extension) <Badge class="badge badge--secondary" text="object"/><Bullet />[`AppExtensionFilterInput`](../../../api-reference/apps/inputs/app-extension-filter-input) <Badge class="badge badge--secondary" text="input"/><Bullet />[`AppManifestExtension`](../../../api-reference/apps/objects/app-manifest-extension) <Badge class="badge badge--secondary" text="object"/>
[`AppExtension`](../../../api-reference/apps/objects/app-extension.mdx) <Badge class="badge badge--secondary" text="object"/><Bullet />[`AppExtensionFilterInput`](../../../api-reference/apps/inputs/app-extension-filter-input.mdx) <Badge class="badge badge--secondary" text="input"/><Bullet />[`AppManifestExtension`](../../../api-reference/apps/objects/app-manifest-extension.mdx) <Badge class="badge badge--secondary" text="object"/>
Loading

0 comments on commit b0e550f

Please sign in to comment.