Skip to content

Commit

Permalink
feat: embed release notes (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanrajh authored Nov 20, 2023
1 parent 97f4158 commit 2ceffe9
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/scripts/embed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ BRANCH_FRONTENDS=main
BRANCH_ADMIN_EXTENSION_SDK=DX-223
BRANCH_METEOR_ICON_KIT=DX-223
BRANCH_METEOR_COMPONENT_LIBRARY=DX-231
BRANCH_RELEASE_NOTES=main

# custom orgs
ORG_DOCS=shopware
Expand All @@ -18,6 +19,7 @@ ORG_FRONTENDS=shopware
ORG_ADMIN_EXTENSION_SDK=shopware
ORG_METEOR_ICON_KIT=bojanrajh
ORG_METEOR_COMPONENT_LIBRARY=bojanrajh
ORG_RELEASE_NOTES=shopware

if [[ "$PWD" != *"/developer-portal" ]]; then
echo "DANGEROUS, WRONG PWD"
Expand Down Expand Up @@ -91,4 +93,12 @@ fi
# --branch ${BRANCH_METEOR_COMPONENT_LIBRARY:-main} \
# --src docs \
# --dst resources/meteor-component-library \
# --org ${ORG_METEOR_COMPONENT_LIBRARY:-shopware}
# --org ${ORG_METEOR_COMPONENT_LIBRARY:-shopware}

./docs-cli.cjs clone \
--ci \
--repository shopware/release-notes \
--branch ${BRANCH_RELEASE_NOTES:-main} \
--src src \
--dst release-notes \
--org ${ORG_RELEASE_NOTES:-shopware}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ src/resources/admin-extension-sdk
src/resources/meteor-icon-kit/
src/resources/meteor-icon-kit
src/resources/meteor-component-library/
src/resources/meteor-component-library
src/resources/meteor-component-library
src/release-notes/
src/release-notes
1 change: 1 addition & 0 deletions .vitepress/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const navigation = buildSidebarNav('./src/', [
//'/resources/meteor-component-library/',
'/', // always have root sidebar
'/resources/meteor-icon-kit/',
'/release-notes/',
]);

export default navigation;
14 changes: 14 additions & 0 deletions .vitepress/portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,20 @@
"bojanrajh"
],
"skip": true
},
{
"name": "shopware/release-notes",
"src": "src",
"dst": "release-notes",
"branch": [
"env.BRANCH_RELEASE_NOTES",
"main"
],
"org": [
"env.ORG_RELEASE_NOTES",
"bojanrajh"
],
"skip": true
}
]
}

0 comments on commit 2ceffe9

Please sign in to comment.