Skip to content

Commit 2854070

Browse files
authored
Restructured (#2299)
1 parent 7b14216 commit 2854070

File tree

234 files changed

+2847
-4515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+2847
-4515
lines changed

.vitepress/config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const config = defineConfig({
2626
'**/LICENSE.md',
2727
'**/CONTRIBUTING.md',
2828
'**/CODE_OF_CONDUCT.md',
29+
'**/redirects.md',
2930
'**/menu.md',
3031
'**/-*.md'
3132
],
@@ -40,7 +41,7 @@ const config = defineConfig({
4041
themeConfig: {
4142
sidebar: menu.items,
4243
nav: menu.navbar,
43-
logo: '/cap-logo.svg',
44+
logo: '/logos/cap.svg',
4445
outline: [2,3],
4546
socialLinks: [
4647
{ icon: 'github', link: 'https://github.com/capire/docs' }
@@ -64,7 +65,7 @@ const config = defineConfig({
6465
['meta', { 'http-equiv': 'Content-Security-Policy', content: "script-src 'self' https://www.capire-matomo.cloud.sap 'unsafe-inline' 'unsafe-eval'" }],
6566
['link', { rel: 'icon', href: base+'favicon.ico' }],
6667
['link', { rel: 'shortcut icon', href: base+'favicon.ico' }],
67-
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: base+'cap-logo.png' }],
68+
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: base+'logos/cap.png' }],
6869
['script', { src: base+'script.js' } ]
6970
],
7071

@@ -207,12 +208,11 @@ config.buildEnd = async ({ outDir, site }) => {
207208
// disabled by default to avoid online fetches during local build
208209
if (process.env.VITE_CAPIRE_EXTRA_ASSETS) {
209210
// zip assets aren't copied automatically, and `vite.assetInclude` doesn't work either
210-
const hanaAssetDir = 'advanced/assets'
211-
const hanaAsset = path.join(hanaAssetDir, 'native-hana-samples.zip')
212-
await fs.mkdir(path.join(outDir, hanaAssetDir), {recursive: true})
213-
console.debug('✓ copying HANA assets to ', path.join(outDir, hanaAsset)) // eslint-disable-line no-console
211+
const archive = 'advanced/assets/native-hana-samples.zip'
212+
await fs.mkdir(path.dirname(path.join(outDir, archive)), {recursive: true})
213+
console.debug('✓ copying HANA assets to ', path.join(outDir, archive)) // eslint-disable-line no-console
214214

215-
await fs.copyFile(path.join(__dirname, '..', hanaAsset), path.join(outDir, hanaAsset))
215+
await fs.copyFile(path.join(__dirname, '..', archive), path.join(outDir, archive))
216216
await cdsMavenSite.copySiteAssets(path.join(outDir, 'java/assets/cds-maven-plugin-site'), site)
217217
}
218218
}

advanced/assets/cat-service-comp.cds

Lines changed: 0 additions & 7 deletions
This file was deleted.

advanced/assets/cat-service-enable.cds

Lines changed: 0 additions & 4 deletions
This file was deleted.

advanced/assets/data-model.cds

Lines changed: 0 additions & 19 deletions
This file was deleted.

assets/agnostic-services.drawio.svg

Lines changed: 0 additions & 154 deletions
This file was deleted.

0 commit comments

Comments
 (0)