Skip to content

Commit

Permalink
feat: preview v6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bojanrajh committed Aug 1, 2024
1 parent 3d863da commit 9979e4e
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/scripts/embed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -e

# custom config
BRANCH_DOCS=main
BRANCH_DOCS_67=next-6.7
BRANCH_DOCS_65=v6.5
BRANCH_DOCS_64=v6.4
BRANCH_DOCS_63=v6.3.0
Expand All @@ -14,6 +15,7 @@ BRANCH_RELEASE_NOTES=main

# custom orgs
ORG_DOCS=shopware
ORG_DOCS_67=shopware
ORG_DOCS_65=shopware
ORG_DOCS_64=shopware
ORG_DOCS_63=shopware
Expand All @@ -39,6 +41,14 @@ fi
--dst docs \
--org ${ORG_DOCS:-shopware}

./docs-cli.cjs clone \
--ci \
--repository shopware/docs \
--branch ${BRANCH_DOCS_67:-main} \
--src . \
--dst docs/v6.7 \
--org ${ORG_DOCS_67:-shopware}

./docs-cli.cjs clone \
--ci \
--repository shopware/docs \
Expand Down
25 changes: 25 additions & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const sections: SwagSectionsConfig[] = [
matches: [
'/apps/',
'/docs/guides/plugins/apps/',
'/docs/v6.7/guides/plugins/apps/',
'/docs/v6.5/guides/plugins/apps/',
'/docs/v6.4/guides/plugins/apps/',
'/docs/v6.3/guides/plugins/apps/',
Expand All @@ -45,6 +46,7 @@ const sections: SwagSectionsConfig[] = [
matches: [
'/themes/',
'/docs/guides/plugins/themes/',
'/docs/v6.7/guides/plugins/themes/',
'/docs/v6.5/guides/plugins/themes/',
'/docs/v6.4/guides/plugins/themes/',
'/docs/v6.3/guides/plugins/themes/',
Expand All @@ -55,6 +57,7 @@ const sections: SwagSectionsConfig[] = [
matches: [
'/plugins/',
'/docs/guides/plugins/plugins/',
'/docs/v6.7/guides/plugins/plugins/',
'/docs/v6.5/guides/plugins/plugins/',
'/docs/v6.4/guides/plugins/plugins/',
'/docs/v6.3/guides/plugins/plugins/',
Expand All @@ -70,6 +73,7 @@ const sections: SwagSectionsConfig[] = [
title: 'Concepts',
matches: [
'/docs/concepts/',
'/docs/v6.7/concepts/',
'/docs/v6.5/concepts/',
'/docs/v6.4/concepts/',
'/docs/v6.3/concepts/',
Expand All @@ -79,6 +83,7 @@ const sections: SwagSectionsConfig[] = [
title: 'Guides',
matches: [
'/docs/guides/',
'/docs/v6.7/guides/',
'/docs/v6.5/guides/',
'/docs/v6.4/guides/',
'/docs/v6.3/guides/',
Expand All @@ -88,6 +93,7 @@ const sections: SwagSectionsConfig[] = [
title: 'Products',
matches: [
'/docs/products/',
'/docs/v6.7/products/',
'/docs/v6.5/products/',
'/docs/v6.4/products/',
'/docs/v6.3/products/',
Expand All @@ -97,6 +103,7 @@ const sections: SwagSectionsConfig[] = [
title: 'Resources',
matches: [
'/docs/resources/',
'/docs/v6.7/resources/',
'/docs/v6.5/resources/',
'/docs/v6.4/resources/',
'/docs/v6.3/resources/',
Expand Down Expand Up @@ -132,6 +139,7 @@ const embeds: SwagEmbedsConfig[] = [
{
repository: 'docs',
points: {
'/docs/v6.7/': 'next-6.7',
'/docs/v6.5/': 'v6.5',
'/docs/v6.4/': 'v6.4',
'/docs/v6.3/': 'v6.3.0',
Expand Down Expand Up @@ -212,6 +220,7 @@ export default withMermaid(defineConfigWithTheme<ThemeConfig>({
"**/YYYY-MM-DD-template.md",
// snippets
'docs/snippets/**',
'docs/v6.7/snippets/**',
'docs/v6.5/snippets/**',
// readmes
'**/README.md',
Expand Down Expand Up @@ -279,21 +288,34 @@ export default withMermaid(defineConfigWithTheme<ThemeConfig>({
filter: {
'default': {
exclude: [
'docs/v6.7/',
'docs/v6.5/',
'docs/v6.4/',
'docs/v6.3/',
],
},
'/docs/': {
exclude: [
'docs/v6.7/',
'docs/v6.5/',
'docs/v6.4/',
'docs/v6.3/',
],
},
'/docs/v6.7/': {
exclude: [
'docs/',
'docs/v6.4/',
'docs/v6.3/',
],
include: [
'docs/v6.7/',
]
},
'/docs/v6.5/': {
exclude: [
'docs/',
'docs/v6.7/',
'docs/v6.4/',
'docs/v6.3/',
],
Expand All @@ -303,6 +325,7 @@ export default withMermaid(defineConfigWithTheme<ThemeConfig>({
},
'/docs/v6.4/': {
exclude: [
'docs/v6.7/',
'docs/v6.5/',
'docs/',
'docs/v6.3/',
Expand All @@ -313,6 +336,7 @@ export default withMermaid(defineConfigWithTheme<ThemeConfig>({
},
'/docs/v6.3/': {
exclude: [
'docs/v6.7/',
'docs/v6.5/',
'docs/',
'docs/v6.4/',
Expand All @@ -326,6 +350,7 @@ export default withMermaid(defineConfigWithTheme<ThemeConfig>({
versionSwitcher: {
paths: [
{
'docs': 'v6.7 (next, unstable)',
'docs': 'v6.6 (stable)',
'docs/v6.5': 'v6.5',
'docs/v6.4': 'v6.4',
Expand Down
5 changes: 5 additions & 0 deletions .vitepress/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const navigation = buildSidebarNav('./src/', [
},
], [
//'/docs/',
'/docs/v6.7/',
'/docs/v6.5/',
'/docs/v6.4/',
'/docs/v6.3/',
Expand All @@ -101,13 +102,17 @@ const navigation = buildSidebarNav('./src/', [
'/release-notes/',
], [
'/docs/assets/',
'/docs/v6.7/assets/',
'/docs/v6.5/assets/',
'/docs/snippets/',
'/docs/v6.7/snippets/',
'/docs/v6.5/snippets/',
'/docs/README.md',
'/docs/v6.7/README.md',
'/docs/v6.5/README.md',
"/docs/resources/references/adr/YYYY-MM-DD-template.md",
"/docs/v6.5/resources/references/adr/YYYY-MM-DD-template.md",
"/docs/v6.7/resources/references/adr/YYYY-MM-DD-template.md",
]);

const prefixItems = (items, prefix) => items.map(item => {
Expand Down
16 changes: 16 additions & 0 deletions .vitepress/portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@
"shopware"
]
},
{
"name": "shopware/docs",
"src": ".",
"dst": [
"docs",
"v6.7"
],
"branch": [
"env.BRANCH_DOCS_67",
"next-6.7"
],
"org": [
"env.ORG_DOCS_67",
"shopware"
]
},
{
"name": "shopware/docs",
"src": ".",
Expand Down

0 comments on commit 9979e4e

Please sign in to comment.