Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed Admin SDK @ DevHub #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions packages/admin-sdk/DOCS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Docs

An instance of the `shopware/developer-documentation-vitepress`, as is `shopware/developer-portal`, dedicated for
Designers.

## Develop

Checkout `meteor` repository:

```bash
cd /www/
git clone git@github.com:shopware/meteor.git
cd /www/meteor
```

Prepare docs environment provided by the `developer-portal` repository. This will make sure the `developer-portal`
repository is checked out and up to date.

```bash
pnpm docs:env
```

Symlink docs from your local `meteor` repository into the `developer-portal`.

```bash
pnpm docs:link
```

Run local webserver.

```bash
pnpm docs:preview
```

# Read more

- [https://github.com/vuejs/vitepress](˙vuejs/vitepress˙) - SSR framework for the documentation
- [https://github.com/shopware/developer-documentation-vitepress](˙shopware/developer-documentation-vitepress˙) -
Shopware specific config, design and components
- [https://github.com/shopware/developer-portal](˙shopware/developer-portal˙) - Developer documentation
20 changes: 0 additions & 20 deletions packages/admin-sdk/docs/.gitignore

This file was deleted.

33 changes: 0 additions & 33 deletions packages/admin-sdk/docs/README.md

This file was deleted.

4 changes: 4 additions & 0 deletions packages/admin-sdk/docs/api-reference/cms/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
nav:
position: 30
---
5 changes: 5 additions & 0 deletions packages/admin-sdk/docs/api-reference/composables/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: "Vue Composables"
nav:
position: 40
---
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Get

With `data.get` you can receive datasets from the Shopware administration.
More information on how to find the unique identifiers can be found in [this guide](../../5_internals/datahandling.md).
More information on how to find the unique identifiers can be found in [this guide](../../internals/datahandling.md).

Compared to data.subscribe, data.get only gives you the current state of the data. If the data is not available yet,
such as when opening a page, you won't receive any data. In these cases, it's better to subscribe to data changes instead.
Expand Down
4 changes: 4 additions & 0 deletions packages/admin-sdk/docs/api-reference/data/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
nav:
position: 20
---
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Subscribe

With `data.subscribe` you can subscribe to dataset changes. The callback will be called every time, the dataset with the matching id is changed.
More information on how to find the unique identifiers can be found in [this guide](../../5_internals/datahandling.md).
More information on how to find the unique identifiers can be found in [this guide](../../internals/datahandling.md).

#### Usage:
```ts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Update

With `data.update` you can update datasets from the Shopware administration.
More information on how to find the unique identifiers can be found in [this guide](../../5_internals/datahandling.md).
More information on how to find the unique identifiers can be found in [this guide](../../internals/datahandling.md).

#### Usage:
```ts
Expand Down
4 changes: 4 additions & 0 deletions packages/admin-sdk/docs/api-reference/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
nav:
position: 20
---
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Location

## Prerequisites
We recommend you read the [concept](../4_concepts/locations.md) of locations first.
We recommend you read the [concept](../concepts/locations.md) of locations first.
## Location checks

### Check the current location id
Expand Down Expand Up @@ -84,7 +84,7 @@ This method does not have a return value.

This methods starts the auto resizer of the iFrame height.

![Auto resizing example](../4_concepts/assets/auto-resizer.gif)
![Auto resizing example](../concepts/assets/auto-resizer.gif)

#### Usage:

Expand Down
5 changes: 5 additions & 0 deletions packages/admin-sdk/docs/api-reference/ui/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
nav:
title: UI
position: 10
---
4 changes: 4 additions & 0 deletions packages/admin-sdk/docs/api-reference/ui/module/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
nav:
title: Extending modules
---
3 changes: 0 additions & 3 deletions packages/admin-sdk/docs/babel.config.js

This file was deleted.

4 changes: 4 additions & 0 deletions packages/admin-sdk/docs/concepts/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
nav:
position: 40
---
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ It is impossible to create a list of all potential position Id's. And they would

Just open the plugin in the Devtools (It is available directly when you open the Administration). Then you can see all positions at the current administration view which are available for extending. If you click at one position Id you get more information about it. Like the property in the meteor-admin-sdk so that you directly know what functionality this position has.

In summary: the Devtool plugin provides a visual way to see which parts can be extended and what are the positionIDs for the extension position. You can find a detailed guide in the tooling section of this documentation: [Vue Devtools](../3_tooling/vue-devtools.md)
In summary: the Devtool plugin provides a visual way to see which parts can be extended and what are the positionIDs for the extension position. You can find a detailed guide in the tooling section of this documentation: [Vue Devtools](../tooling/vue-devtools.md)
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions packages/admin-sdk/docs/docs/guide/3_tooling/_category_.yml

This file was deleted.

2 changes: 0 additions & 2 deletions packages/admin-sdk/docs/docs/guide/4_concepts/_category_.yml

This file was deleted.

2 changes: 0 additions & 2 deletions packages/admin-sdk/docs/docs/guide/5_internals/_category_.yml

This file was deleted.

2 changes: 0 additions & 2 deletions packages/admin-sdk/docs/docs/guide/6_faq/_category_.yml

This file was deleted.

113 changes: 0 additions & 113 deletions packages/admin-sdk/docs/docusaurus.config.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: "FAQ"
nav:
position: 60
---

# FAQ
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Vue dev tools"
sidebar_position: 2
nav:
position: 20
---

# Vue dev tools
Expand Down
4 changes: 4 additions & 0 deletions packages/admin-sdk/docs/getting-started/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
nav:
position: 10
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Installation"
sidebar_position: 1
nav:
position: 10
---

# Installation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
sidebar_position: 3
nav:
position: 30
---

# Usage
Expand Down
Loading
Loading