Skip to content

Commit a7f2ced

Browse files
committed
refactor: Sync packages with main
1 parent 3ce1dc1 commit a7f2ced

39 files changed

+423
-2956
lines changed

packages/documentation/.vitepress/config.ts

Lines changed: 8 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@ import { defineConfig } from "vitepress";
44

55
// markdown
66
import MarkdownItImplicitFigures from "markdown-it-implicit-figures";
7-
import MarkdownItPlantuml from "markdown-it-plantuml";
87

98
export default defineConfig({
10-
11-
base: "/ui5-cli/v5/", // use this for github pages deployment or remove for CF
9+
10+
base: "/cli/v5/", // GitHub Pages deployment base path
1211
srcDir: "docs",
1312
outDir: "dist",
1413
lang: "en-US",
1514
title: "UI5 CLI",
1615

1716
description: "An open and modular toolchain to develop state-of-the-art applications based on the UI5 framework.",
1817
lastUpdated: false, // disable git author info
19-
cleanUrls: false,
20-
ignoreDeadLinks: true,
18+
cleanUrls: true,
2119

2220
vue: {
2321
template: {
@@ -32,7 +30,7 @@ export default defineConfig({
3230
head: [
3331
[
3432
"link",
35-
{ rel: "icon", type: "image/svg+xml", href: "/icons/ui5/O.svg" }
33+
{ rel: "icon", type: "image/png", href: "./images/favicon.png" }
3634

3735
]
3836
],
@@ -64,7 +62,7 @@ export default defineConfig({
6462
&copy; Copyright ${new Date().getFullYear()}, SAP SE and UI5 CLI Contributors <br/>
6563
<a style="margin:25px"href="https://www.sap.com/corporate/en/legal/impressum.html">Legal Disclosure</a>
6664
<a style="margin:25px" href="https://www.sap.com/corporate/en/legal/terms-of-use.html">Terms of Use</a>
67-
<a style="margin:25px" href="https://ui5.github.io/cli/stable/pages/Privacy/">Privacy</a>
65+
<a style="margin:25px" href="https://ui5.github.io/cli/v5/pages/Privacy/">Privacy</a>
6866
<a style="margin:25px" href="https://www.sap.com/corporate/en/legal/trademark.html">Trademarks</a>
6967
`,
7068

@@ -81,39 +79,12 @@ export default defineConfig({
8179
},
8280

8381
markdown: {
84-
externalLinks: {
85-
86-
},
87-
88-
//theme: "material-theme-palenight", // pre rc5 default
89-
// Add support for your own languages.
90-
// https://github.com/shikijs/shiki/blob/main/languages.md#supporting-your-own-languages-with-shiki
91-
languages: [
92-
],
93-
9482
// Configure the Markdown-it instance
9583
config: (md) => {
9684
// https://www.npmjs.com/package/markdown-it-implicit-figures
9785
md.use(MarkdownItImplicitFigures, {
9886
figcaption: true,
9987
});
100-
md.use(MarkdownItPlantuml, {
101-
//imageFormat: 'png'
102-
});
103-
// https://github.com/gmunguia/markdown-it-plantuml/issues/35
104-
md.use(MarkdownItPlantuml, {
105-
openMarker: "```plantuml",
106-
closeMarker: "```",
107-
diagramName: "uml",
108-
imageFormat: "svg",
109-
});
110-
// Textik https://textik.com/
111-
md.use(MarkdownItPlantuml, {
112-
openMarker: "```ditaa",
113-
closeMarker: "```",
114-
diagramName: "ditaa",
115-
imageFormat: "png",
116-
});
11788
},
11889
},
11990

@@ -147,7 +118,7 @@ function nav() {
147118
target: "_self"
148119
}
149120
]
150-
}
121+
},
151122
];
152123
}
153124

@@ -163,7 +134,7 @@ function guide() {
163134

164135
{
165136
text: "Home",
166-
link: "/pages/index",
137+
link: "/",
167138
},
168139
{
169140
text: "Getting Started",
@@ -303,7 +274,7 @@ function guide() {
303274
},
304275
{
305276
text: "API Reference",
306-
link: "https://ui5.github.io/cli/stable/api/index.html",
277+
link: "https://ui5.github.io/cli/api/index.html",
307278

308279
},
309280

0 commit comments

Comments
 (0)