diff --git a/.github/workflows/checkout-test-build-deploy.yml b/.github/workflows/checkout-test-build-deploy.yml index 5959d788..10db743b 100644 --- a/.github/workflows/checkout-test-build-deploy.yml +++ b/.github/workflows/checkout-test-build-deploy.yml @@ -176,12 +176,12 @@ jobs: name: full-build-${{ github.sha }} path: full-build.zip - #- name: Upload external - # uses: actions/upload-artifact@v3 - # with: - # if-no-files-found: error - # name: db-external-${{ github.sha }} - # path: external/db-external.zip + - name: Upload external + uses: actions/upload-artifact@v3 + with: + if-no-files-found: error + name: db-external-${{ github.sha }} + path: external/db-external.zip chromatic: name: Deploy Storybook to Chromatic @@ -263,15 +263,15 @@ jobs: with: name: db-index-${{ github.sha }} - #- uses: actions/download-artifact@v3 - # with: - # name: db-external-${{ github.sha }} + - uses: actions/download-artifact@v3 + with: + name: db-external-${{ github.sha }} - name: Merge base and external sources run: | mkdir merged unzip -o db-index.zip -d merged - true || unzip -o db-external.zip -d merged + unzip -o db-external.zip -d merged zip -r db-merged.zip merged/ - name: Send artifact diff --git a/.vitepress/config.ts b/.vitepress/config.ts index d15b15f5..2b98b16e 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -137,7 +137,7 @@ export default defineConfigWithTheme({ /** * Fetch Stoplight URLs. */ - /*const stoplightUrls = [ + const stoplightUrls = [ ...await getStoplightUrls({ source: 'https://shopware.stoplight.io/api/v1/projects/cHJqOjEwNjA0NQ/table-of-contents', prefix: '/resources/api/store-api-reference.html#/', @@ -146,31 +146,31 @@ export default defineConfigWithTheme({ source: 'https://shopware.stoplight.io/api/v1/projects/cHJqOjEwNjA0Mw/table-of-contents', prefix: '/resources/api/admin-api-reference.html#/', }), - ];*/ + ]; /** * Create public sitemap.xml. */ - await createSitemap(/*stoplightUrls*/); + await createSitemap(stoplightUrls); /** * Transform Store API JSON reference to Markdown for Knowledge base. */ - /*await generateMarkdownFromStoplight({ + await generateMarkdownFromStoplight({ source: 'https://shopware.stoplight.io/api/v1/projects/cHJqOjEwNjA0NQ/table-of-contents', nodes: 'https://shopware.stoplight.io/api/v1/workspaces/d2s6MzM5MTQ/nodes?project_ids[0]=cHJqOjEwNjA0NQ', reference: 'https://raw.githubusercontent.com/shopware/store-api-reference/main/storeapi.json', as: 'resources/api/admin-api-reference.html', - });*/ + }); /** * Transform Admin API JSON reference to Markdown for Knowledge base. */ - /*await generateMarkdownFromStoplight({ + await generateMarkdownFromStoplight({ source: 'https://shopware.stoplight.io/api/v1/projects/cHJqOjEwNjA0Mw/table-of-contents', nodes: 'https://shopware.stoplight.io/api/v1/workspaces/d2s6MzM5MTQ/nodes?project_ids[0]=cHJqOjEwNjA0Mw', reference: 'https://raw.githubusercontent.com/shopware/admin-api-reference/main/storeapi.json', as: 'resources/api/store-api-reference.html', - }, false);*/ + }, false); } }); diff --git a/.vitepress/navigation.ts b/.vitepress/navigation.ts index 64660e4b..1f70fd27 100644 --- a/.vitepress/navigation.ts +++ b/.vitepress/navigation.ts @@ -30,14 +30,12 @@ const navigation = buildSidebarNav('./src/', [ items: [ { text: "Store API", - // link: "/resources/api/store-api-reference", - link: 'https://shopware.stoplight.io/docs/store-api/', + link: "/resources/api/store-api-reference", repo: 'shopware/store-api-reference', }, { text: "Admin API", - //link: "/resources/api/admin-api-reference", - link: 'https://shopware.stoplight.io/docs/admin-api/', + link: "/resources/api/admin-api-reference", repo: 'shopware/admin-api-reference', } ]