Skip to content

Commit f3fa831

Browse files
Merge branch 'main' into migration-tool
2 parents 7c5e045 + 57e69d4 commit f3fa831

58 files changed

Lines changed: 1247 additions & 3342 deletions

Some content is hidden

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

.github/cli/grab-cli-texts.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ const toOutput = (str) => [
2020
`> ${cmd}`,
2121
'',
2222
str
23-
.replace(/\n.*home.*[|:].*/g, '') // remove absolute cds home path as it's system-specific
23+
.replace(/([\S]+)\/node_modules/g, '.../node_modules') // remove system-specific paths
24+
.replace(/([\S]+)\/bin\/node/g, '.../bin/node')
25+
.replace(/([\S]+)\/your-project/g, '.../your-project') // sample project path
2426
.replace(/\<(.*?)\>/g, '&lt;$1&gt;') // <foo> -> &lt;foo&gt;
25-
.replace(/^\x1b\[1m(.*?)\x1b\[(:?0|39|49)m\n/gm, '<strong>$1</strong>') // bold at beginning of line -> strong
26-
.replace(/(\s*)\x1b\[4m(.*?)\x1b\[(:?0|39|49)m/g, '$1<i>$2</i>') // underline -> i
27-
.replace(/(\s*)\x1b\[\d+m(.*?)\x1b\[(:?0|39|49)m/g, '$1<em>$2</em>') // other colors -> em
27+
.replace(/^\x1b\[1m(.*?)\x1b\[(?:0|39|49)m\n/gm, '<strong>$1</strong>') // bold at beginning of line -> strong
28+
.replace(/(\s*)\x1b\[(?:2|4)m(.*?)\x1b\[(?:0|39|49)m/g, '$1<i>$2</i>') // underline or grey -> i
29+
.replace(/(\s*)\x1b\[[1-9]+m(.*?)\x1b\[(?:0|32|33|39|49)m/g, '$1<em>$2</em>') // other colors -> em
30+
.replace(/\x1b\[0m/g, '') // remove all remaining resets
2831
,
2932
`</pre>`
3033
].join('\n')

.github/cli/grab-cli-texts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dir=`dirname -- "$0"`
66
proj=/tmp/your-project
77
rm -rf ${proj}
88
mkdir -p `dirname ${proj}`
9-
pushd `dirname ${proj}` && cds init `basename ${proj}` && pushd `basename ${proj}` && npm i && popd && popd
9+
pushd `dirname ${proj}` && cds init `basename ${proj}` --nodejs && pushd `basename ${proj}` && npm i && popd && popd
1010

1111
echo
1212
echo "Grabbing CLI texts..."

.github/workflows/update-content.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616

1717
steps:
1818
- name: Checkout repository
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020

2121
- name: Set up Node.js
22-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@v6
2323
with:
24-
node-version: '22'
24+
node-version: 24
2525

2626
- name: Extract CLI texts
2727
run: |
@@ -51,12 +51,12 @@ jobs:
5151

5252
steps:
5353
- name: Checkout repository
54-
uses: actions/checkout@v4
54+
uses: actions/checkout@v6
5555

5656
- name: Set up Node.js
57-
uses: actions/setup-node@v4
57+
uses: actions/setup-node@v6
5858
with:
59-
node-version: '22'
59+
node-version: 24
6060

6161
- name: Update Java Properties
6262
run: |

.vitepress/config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
const base = process.env.GH_BASE || '/docs/'
33

44
// Construct vitepress config object...
5+
import path from 'node:path'
56
import { defineConfig } from 'vitepress'
67
import languages from './languages'
7-
import path from 'node:path'
88
import { Menu } from './menu.js'
99

1010
const config = defineConfig({
@@ -191,9 +191,9 @@ if (process.env.VITE_CAPIRE_EXTRA_ASSETS) {
191191
}
192192

193193
// Add custom markdown renderers...
194+
import { dl } from '@mdit/plugin-dl'
194195
import * as MdAttrsPropagate from './lib/md-attrs-propagate'
195196
import * as MdTypedModels from './lib/md-typed-models'
196-
import { dl } from '@mdit/plugin-dl'
197197

198198
config.markdown.config = md => {
199199
MdAttrsPropagate.install(md)
@@ -202,8 +202,8 @@ config.markdown.config = md => {
202202
}
203203

204204
// Add custom buildEnd hook
205-
import * as cdsMavenSite from './lib/cds-maven-site'
206205
import { promises as fs } from 'node:fs'
206+
import * as cdsMavenSite from './lib/cds-maven-site'
207207
config.buildEnd = async ({ outDir, site }) => {
208208
const sitemapURL = new URL(config.themeConfig.capire.siteURL.href)
209209
sitemapURL.pathname = path.join(sitemapURL.pathname, 'sitemap.xml')

.vitepress/theme/components/implvariants/ImplVariants.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const toggle = typeof localStorage !== 'undefined' ? useVariant() : () => {}
1212
const knownImplVariants = ['node', 'java']
1313
1414
onMounted(() => {
15+
if (!supportsVariants.value) return
16+
1517
let check = currentCheckState()
1618
// Persist value even intially. If query param was used, users expect to get this value from now on, even if not using the query anymore.
1719
const variantNew = check ? 'java' : 'node'
@@ -93,6 +95,7 @@ transition: none !important;
9395
}
9496
9597
watchEffect(() => {
98+
if (!supportsVariants.value) return
9699
setTimeout(() => { // otherwise DOM is not ready
97100
if (typeof document !== 'undefined') {
98101
animationsOff(() => setClass(currentCheckState()) )
47.3 KB
Loading

cds/assets/cxl/binary-operator.drawio.svg

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

cds/assets/cxl/expr.drawio.svg

Lines changed: 4 additions & 868 deletions
Loading

cds/assets/cxl/function-def.drawio.svg

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

cds/assets/cxl/function.drawio.svg

Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)