11// using the defineConfig helper will provide TypeScript-powered 
22// intellisense for config options 
33import  {  defineConfig  }  from  "vitepress" ; 
4- import  {  join  }  from  "node:path" ; 
54
65// markdown 
76import  MarkdownItImplicitFigures  from  "markdown-it-implicit-figures" ; 
87import  MarkdownItPlantuml  from  "markdown-it-plantuml" ; 
98
10- // shikiji loading 
11- import  {  promises  as  fs ,  truncate  }  from  'node:fs' 
12- import  type  {  LanguageInput ,  RawGrammar  }  from  'shiki' 
13- const  loadSyntax  =  async  ( file : string ,  name : string ,  alias : string  =  name ) : Promise < LanguageInput >  =>  { 
14-   const  src  =  await  fs . readFile ( join ( __dirname ,  file ) ) 
15-   const  grammar : RawGrammar  =  JSON . parse ( src . toString ( ) ) 
16-   return  {  name,  aliases : [ name ,  alias ] ,  ...grammar  } 
17- } 
18- 
199export  default  defineConfig ( { 
20-    
10+ 
2111  base : "/ui5-cli/stable/" ,  // use this for github pages deployment or remove for CF 
2212  srcDir : "docs" , 
2313  outDir : "dist" , 
@@ -50,12 +40,12 @@ export default defineConfig({
5040  themeConfig : { 
5141
5242
53-     logo :   { 
43+     logo : { 
5444      light : "/images/Logo_B_RGB.png" , 
5545      dark : "/images/Logo_O_RGB.png" 
5646    } , 
5747    externalLinkIcon : false , 
58-     outline : [ 1 , 3 ] , 
48+     outline : [ 1 ,   3 ] , 
5949
6050    nav : nav ( ) , 
6151
@@ -74,7 +64,7 @@ export default defineConfig({
7464        © Copyright ${ new  Date ( ) . getFullYear ( ) }  
7565          <a style="margin:25px"href="https://www.sap.com/corporate/en/legal/impressum.html">Legal Disclosure</a> 
7666          <a  style="margin:25px" href="https://www.sap.com/corporate/en/legal/terms-of-use.html">Terms of Use</a> 
77-           <a  style="margin:25px" href="https://sap .github.io/ui25-tooling /stable/pages/Privacy/">Privacy</a> 
67+           <a  style="margin:25px" href="https://ui5 .github.io/cli /stable/pages/Privacy/">Privacy</a> 
7868          <a  style="margin:25px" href="https://www.sap.com/corporate/en/legal/trademark.html">Trademarks</a> 
7969    ` , 
8070
@@ -91,24 +81,14 @@ export default defineConfig({
9181  } , 
9282
9383  markdown : { 
94-     externalLinks :{ 
95-        
84+     externalLinks :  { 
85+ 
9686    } , 
97-      
87+ 
9888    //theme: "material-theme-palenight", // pre rc5 default 
9989    // Add support for your own languages. 
10090    // https://github.com/shikijs/shiki/blob/main/languages.md#supporting-your-own-languages-with-shiki 
10191    languages : [ 
102-       // https://github.com/SAP-samples/vscode-abap-cds/blob/main/syntaxes/cds.tmLanguage.json 
103-       await  loadSyntax ( 'syntaxes/abapcds.tmLanguage.json' ,  'abapcds' ) , 
104-       // https://github.com/SAP/cds-textmate-grammar/blob/main/syntaxes/cds.tmLanguage.json 
105-       await  loadSyntax ( 'syntaxes/cds.tmLanguage.json' ,  'cds' ) , 
106-       // https://github.com/mechatroner/vscode_rainbow_csv/blob/master/syntaxes/csv.tmLanguage.json 
107-       await  loadSyntax ( 'syntaxes/csv.tmLanguage.json' ,  'csv' ) , 
108-       // https://github.com/mechatroner/vscode_rainbow_csv/blob/master/syntaxes/csv.tmLanguage.json 
109-       await  loadSyntax ( 'syntaxes/scsv.tmLanguage.json' ,  'csvs' ) , 
110-       // https://github.com/Huachao/vscode-restclient/blob/master/syntaxes/http.tmLanguage.json 
111-       await  loadSyntax ( 'syntaxes/http.tmLanguage.json' ,  'rest' ) , 
11292    ] , 
11393
11494    // Configure the Markdown-it instance 
@@ -137,7 +117,7 @@ export default defineConfig({
137117    } , 
138118  } , 
139119
140-   
120+ 
141121  vite : { 
142122    build : { 
143123      chunkSizeWarningLimit : 4000 ,  // chunk for local search index dominates 
@@ -153,23 +133,16 @@ function nav() {
153133      items : [ 
154134        { 
155135          text : 'V3' , 
156-           link : 'https://konnraad.github.io/ui5-tooling /v3/' , 
136+           link : '.. /v3/' , 
157137          target : "_self" 
158138        } , 
159139        { 
160140          text : 'V2' , 
161-           link : 'https://konnraad.github.io/ui5-tooling /v2/' , 
141+           link : '.. /v2/' , 
162142          target : "_self" 
163143        } 
164144      ] 
165145    } , 
166-    // { 
167-    //   text: "Home", 
168-    //   link: "/Home/", 
169-    //   activeMatch: "/", 
170-    // }, 
171-    // { text: "About", link: "/about" }, 
172- 
173146  ] ; 
174147} 
175148
@@ -325,7 +298,7 @@ function guide() {
325298    } , 
326299    { 
327300      text : "API Reference" , 
328-       link : "https://sap .github.io/ui5-tooling/v4 /api/index.html" , 
301+       link : "https://ui5 .github.io/cli/stable /api/index.html" , 
329302
330303    } , 
331304
0 commit comments