Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Feb24 #714

Merged
merged 25 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
e798fe8
Update odata.md (#647)
renejeglinsky Feb 20, 2024
e8d2536
Fix ZSH layout in databases guide
swaldmann Feb 20, 2024
0831b48
Docs for new `sap.common.Timezone` (#686)
chgeo Feb 20, 2024
62d7433
add internal fragment
renejeglinsky Feb 20, 2024
257c647
make config schema public beta
renejeglinsky Feb 22, 2024
15fa9ff
Feature Matrix: added cds upgrade (#695)
renejeglinsky Feb 22, 2024
2d840fe
Domain Modeling: fix import (#696)
renejeglinsky Feb 22, 2024
b2e60b4
css: sync numbers with code line height
chgeo Feb 22, 2024
2a5c0c4
Temporal: Fix query (#697)
renejeglinsky Feb 22, 2024
4bf0683
fix: ad-hoc options are not cached (#698)
johannes-vogel Feb 22, 2024
2c1b907
Make docu on @sql.append/prepend and string literals a bit more preci…
stewsk Feb 22, 2024
100f6ab
Rework `cds bind` documentation (#654)
swaldmann Feb 23, 2024
4a49432
Clarify cds-feature-xsuaa to cds-feature-identity switch (#701)
beckermarc Feb 23, 2024
a384dc5
Harmonize: Use Note: (#700)
renejeglinsky Feb 23, 2024
e2e8a99
Fix missing index entries in Advanced page
chgeo Feb 23, 2024
596634a
Separate index page for Publishing APIs
chgeo Feb 23, 2024
7dd8e84
Make wide tables flow over aside section
chgeo Feb 23, 2024
7aef81b
Use TS consistently in index pages
chgeo Feb 23, 2024
0447137
enrich docs for tokeninfo (#702)
johannes-vogel Feb 26, 2024
f080ba8
java-generic-outbox (#691)
t-bonk Feb 27, 2024
6f89eb1
Update dependency com.sap.cds:cds4j-api to v2.7.0 (#706)
renovate[bot] Feb 27, 2024
9eccaa5
add new cds.fiori.draft_lock_timeout for configuration of draft lock …
johannes-vogel Feb 27, 2024
f9129ec
Update dependency com.sap.cds:cds-services-api to v2.7.0 (#708)
renovate[bot] Feb 27, 2024
804e55a
Java occ (#693)
agoerler Feb 27, 2024
6ef4b3b
Merge branch 'cap.cloud.sap' into main
smahati Feb 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ if (!siteURL.pathname.endsWith('/')) siteURL.pathname += '/'
const redirectLinks: Record<string, string> = {}

const latestVersions = {
java_services: '2.6.1',
java_cds4j: '2.6.1'
java_services: '2.7.0',
java_cds4j: '2.7.0'
}

const localSearchOptions = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
const { base, themeConfig: { sidebar }} = global.VITEPRESS_CONFIG.site
import { join } from 'node:path'
import { ContentData, DefaultTheme } from 'vitepress'

export default (pages, basePath) => {
type ContentDataCustom = ContentData & {
title?:string
}

type SBItem = DefaultTheme.SidebarItem

export default (pages:ContentDataCustom[], basePath:string):ContentDataCustom[] => {
let items = findInItems(basePath, sidebar) || []
items = items.map(item => { return { ...item, link: item.link?.replace(/\.md$/, '') }})
const itemLinks = items.map(item => join(base, item.link||''))
Expand All @@ -13,29 +20,28 @@ export default (pages, basePath) => {
return p
})
.filter(p => {
const item = items.find(item => p.url.endsWith(item.link))
const item = items.find(item => item.link && p.url.endsWith(item.link))
if (item) p.title = item.text
return !!item
})
.filter(p => !p.url.endsWith(basePath))
.sort((p1, p2) => itemLinks.indexOf(p1.url) - itemLinks.indexOf(p2.url))
.map(p => {
// this data is inlined in each index page, so sparsely construct the final object
return {
url: p.url,
title: p.title,
frontmatter: {
synopsis: p.frontmatter.synopsis
}
}
})
.map(p => ({
url: p.url,
title: p.title,
frontmatter: {
synopsis: p.frontmatter.synopsis
},
// this data is inlined in each index page, so omit unnecessary data
src:undefined, html:undefined, excerpt:undefined
}))
}

function findInItems(url, items=[]) {
function findInItems(url:string, items:SBItem[]=[]):SBItem[]|undefined {
let res = items.find(item => item.link?.includes(url))
if (res) return res.items
for (const item of items) {
res = findInItems(url, item.items)
if (res) return res
const result = findInItems(url, item.items)
if (result) return result
}
}
5 changes: 5 additions & 0 deletions .vitepress/theme/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ main {

background: var(--vp-code-block-bg);
}

.line-numbers-wrapper {
padding-top: 13px; // align with code line height
}
}

// Table of Contents
Expand Down Expand Up @@ -225,6 +229,7 @@ main {
h3.method + h3.method {
margin-top: 0
}

}

// Menu Sidebar
Expand Down
9 changes: 5 additions & 4 deletions about/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ Following is an index of the features currently covered by CAP, with status and

| CLI commands | |
|---------------------------------------------------------------------------------|----------------------------|
| [Jump-start cds-based projects](../get-started/in-a-nutshell#jumpstart) | `cds init <project>` |
| [Jump-start cds-based projects](../get-started/in-a-nutshell#jumpstart) | `cds init <project>` |
| Add a feature to an existing project | `cds add <facets>` |
| [Add models from external sources](../guides/using-services#local-mocking) | `cds import <api>` |
| [Compile cds models to different outputs](../node.js/cds-compile) | `cds compile <models>` |
| [Run your services in local server](../node.js/cds-serve) | `cds serve <services>` |
| [Run and restart on file changes](../get-started/in-a-nutshell#jumpstart) | `cds watch` |
| [Run and restart on file changes](../get-started/in-a-nutshell#jumpstart) | `cds watch` |
| [Read-eval-event loop](../node.js/cds-env#cli) <!-- TODO --> | `cds repl` |
| Inspect effective configuration | `cds env` |
| Prepare for deployment | `cds build` |
| Deploy to databases or cloud | `cds deploy` |
| Login to multitenant SaaS application | `cds login <app-url>` |
| Upgrade tenant(s) subscribed to a multitenant SaaS app to its latest base model.| `cds upgrade` |
| Logout from multitenant SaaS application | `cds logout` |
| Subscribe a tenant to a SaaS application | `cds subscribe <tenant>` |
| Unsubscribe a tenant from a SaaS application | `cds unsubscribe <tenant>` |
Expand Down Expand Up @@ -131,7 +132,7 @@ Following is an index of the features currently covered by CAP, with status and

| Inbound Protocol Support | CDS <sup>1</sup> | Node.js | Java |
|-------------------------------------------------------|:----------------:|:-----------------:|:-----------------:|
| [REST/OpenAPI](../advanced/openapi) | <X/> | <X/> | <X/> |
| [REST/OpenAPI](/advanced/publishing-apis/openapi) | <X/> | <X/> | <X/> |
| [OData V2](../advanced/odata#v2-support) <sup>2</sup> | <X/> | <X/> <sup>3</sup> | <X/> |
| OData V4 | <X/> | <X/> | <X/> |
| OData V4 for APIs | <D/> | <D/> | <D/> |
Expand Down Expand Up @@ -202,7 +203,7 @@ Following is an index of the features currently covered by CAP, with status and

> <sup>1</sup> To speed up development. Not for productive use! <br>

> You can already integrate your database of choice in a project or a contribution level. The last two are meant to further facilitate this by out-of-the-box features in CAP.
> Note: You can already integrate your database of choice in a project or a contribution level. The last two are meant to further facilitate this by out-of-the-box features in CAP.

<!--| [Migration to SAP HANA Cloud](../guides/databases) | <D/> | <Na/> | <Na/> |
| [Streamlined Schema Evolution](../guides/databases) | <D/> | <Na/> | <Na/> |
Expand Down
2 changes: 1 addition & 1 deletion about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Following is an excerpt of generic features provided:

All data access in CAP is through dynamic queries, which allows clients to request the exact information they really need. These powerful intrinsic querying capabilities are key enablers for **serving requests automatically**.

> The querying-based approach to process data is in strong contrast to Object-Relational Mapping (→ see also *[Related Concepts: CAP != ORM](related#orm)*)
> Note: The querying-based approach to process data is in strong contrast to Object-Relational Mapping (→ see also *[Related Concepts: CAP != ORM](related#orm)*)

<br>

Expand Down
133 changes: 0 additions & 133 deletions advanced/asyncapi.md

This file was deleted.

Loading
Loading