Skip to content

Commit 510123d

Browse files
Merge branch 'main' into java-change-tracking-delete-changelogs
2 parents d0bca95 + dce3c76 commit 510123d

Some content is hidden

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

77 files changed

+2362
-3677
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# This files defines code ownership.
22

33
# General content
4-
* @renejeglinsky
5-
node.js/ @smahati
6-
java/ @smahati
4+
* @smahati
5+
# node.js/ @smahati
6+
# java/ @smahati
77

88
# Infra
99
.github/ @chgeo @swaldmann

.github/cds-snippet-checker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"main": "check-cds-snippets.js",
77
"author": "SAP SE (https://www.sap.com)",
88
"license": "SEE LICENSE IN LICENSE",
9-
"repository": "cap-js/docs",
9+
"repository": "capire/docs",
1010
"homepage": "https://cap.cloud.sap/",
1111
"scripts": {
1212
"check": "node check-cds-snippets.js"

.github/java-snippet-checker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"main": "check-java-snippets.js",
77
"author": "SAP SE (https://www.sap.com)",
88
"license": "SEE LICENSE IN LICENSE",
9-
"repository": "cap-js/docs",
9+
"repository": "capire/docs",
1010
"homepage": "https://cap.cloud.sap/",
1111
"scripts": {
1212
"check": "node check-java-snippets.js"

.github/workflows/PR-SAP.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ concurrency:
99
group: pr-sap-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1010
cancel-in-progress: true
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build-sap:
1417
runs-on: ubuntu-latest

.github/workflows/PR.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ concurrency:
88
group: pr-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
99
cancel-in-progress: true
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build:
1316
runs-on: ubuntu-latest

.vitepress/config.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ const config = defineConfig({
4343
logo: '/cap-logo.svg',
4444
outline: [2,3],
4545
socialLinks: [
46-
{ icon: 'github', link: 'https://github.com/cap-js/docs' }
46+
{ icon: 'github', link: 'https://github.com/capire/docs' }
4747
],
4848
editLink: {
49-
pattern: 'https://github.com/cap-js/docs/edit/main/:path'
49+
pattern: 'https://github.com/capire/docs/edit/main/:path'
5050
},
5151
footer: {
5252
message: `
@@ -106,8 +106,8 @@ config.rewrites = rewrites
106106
// Add custom capire info to the theme config
107107
config.themeConfig.capire = {
108108
versions: {
109-
java_services: '4.1.1',
110-
java_cds4j: '4.1.1'
109+
java_services: '4.2.0',
110+
java_cds4j: '4.2.0'
111111
},
112112
gotoLinks: []
113113
}
@@ -200,7 +200,9 @@ import { promises as fs } from 'node:fs'
200200
config.buildEnd = async ({ outDir, site }) => {
201201
const sitemapURL = new URL(siteURL.href)
202202
sitemapURL.pathname = path.join(sitemapURL.pathname, 'sitemap.xml')
203-
await fs.writeFile(path.resolve(outDir, 'robots.txt'), `Sitemap: ${sitemapURL}\n`)
203+
console.debug('✓ writing robots.txt with sitemap URL', sitemapURL.href) // eslint-disable-line no-console
204+
const robots = (await fs.readFile(path.resolve(__dirname, 'robots.txt'))).toString().replace('{{SITEMAP}}', sitemapURL.href)
205+
await fs.writeFile(path.join(outDir, 'robots.txt'), robots)
204206

205207
// disabled by default to avoid online fetches during local build
206208
if (process.env.VITE_CAPIRE_EXTRA_ASSETS) {

.vitepress/robots.txt

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
# Based on https://www.sap.com/robots.txt
2+
3+
User-agent: *
4+
Disallow: /
5+
6+
# Search Engines
7+
8+
User-agent: Googlebot
9+
Allow: /
10+
11+
User-agent: Googlebot-Image
12+
Allow: /
13+
14+
User-agent: Googlebot-News
15+
Allow: /
16+
17+
User-agent: Googlebot-Video
18+
Allow: /
19+
20+
User-agent: GoogleOther
21+
Allow: /
22+
23+
User-agent: Storebot-Google
24+
Allow: /
25+
26+
User-agent: Bingbot
27+
Allow: /
28+
29+
User-agent: 360Spider
30+
Allow: /
31+
32+
User-agent: Baiduspider
33+
Allow: /
34+
35+
User-agent: coccocbot
36+
Allow: /
37+
38+
User-agent: Daum
39+
Allow: /
40+
41+
User-agent: DuckDuckBot
42+
Allow: /
43+
44+
User-agent: Ecosia_bot
45+
Allow: /
46+
47+
User-agent: MojeekBot
48+
Allow: /
49+
50+
User-agent: Yeti
51+
Allow: /
52+
53+
User-agent: SeznamBot
54+
Allow: /
55+
56+
User-agent: Sogou web spider
57+
Allow: /
58+
59+
User-agent: Yahoo! Slurp
60+
Allow: /
61+
62+
User-agent: YandexAccessibilityBot
63+
Allow: /
64+
65+
User-agent: YandexMobileBot
66+
Allow: /
67+
68+
User-agent: Yandex
69+
Allow: /
70+
71+
# AI and Chat Agents
72+
73+
User-agent: Amazonbot
74+
Allow: /
75+
76+
User-agent: ClaudeBot
77+
Allow: /
78+
79+
User-agent: CCBot
80+
Allow: /
81+
82+
User-agent: Google-Extended
83+
Allow: /
84+
85+
User-agent: FacebookBot
86+
Allow: /
87+
88+
User-agent: MistralAI-User
89+
Allow: /
90+
91+
User-agent: GPTBot
92+
Allow: /
93+
94+
User-agent: ChatGPT-User
95+
Allow: /
96+
97+
User-agent: PerplexityBot
98+
Allow: /
99+
100+
User-agent: Perplexity-User
101+
Allow: /
102+
103+
# Fetcher and other
104+
105+
User-agent: AdsBot-Google
106+
Allow: /
107+
108+
User-agent: AdsBot-Google-Mobile
109+
Allow: /
110+
111+
User-agent: AhrefsBot
112+
Allow: /
113+
114+
User-agent: Google-Safety
115+
Allow: /
116+
117+
User-agent: Mediapartners-Google
118+
Allow: /
119+
120+
User-agent: facebookexternalhit
121+
Allow: /
122+
123+
User-agent: Google-Read-Aloud
124+
Allow: /
125+
126+
User-agent: Hatena
127+
Allow: /
128+
129+
User-agent: linkedinbot
130+
Allow: /
131+
132+
User-agent: Pinterestbot
133+
Allow: /
134+
135+
User-agent: SchemaBot
136+
Allow: /
137+
138+
User-agent: Slackbot-LinkExpanding
139+
Allow: /
140+
141+
User-agent: Telegram
142+
Allow: /
143+
144+
User-agent: Twitterbot
145+
Allow: /
146+
147+
User-agent: SiteAuditBot
148+
Allow: /
149+
150+
User-agent: Chrome-Lighthouse
151+
Allow: /
152+
153+
User-agent: Google-InspectionTool
154+
Allow: /
155+
156+
User-agent: BingPreview
157+
Allow: /
158+
159+
User-agent: archive.org_bot
160+
Allow: /
161+
162+
Sitemap: {{SITEMAP}}

.vitepress/theme/components/WasThisHelpful.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
<p class="more-feedback" v-if="feedbackSelected">
4646
More to say?
47-
<a href="https://github.com/cap-js/docs/issues" target="_blank">
47+
<a href="https://github.com/capire/docs/issues" target="_blank">
4848
Report an issue.
4949
</a>
5050
</p>

.vitepress/theme/styles.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,20 @@ main {
112112
padding-left: 2.5em;
113113
}
114114

115+
// Custom list styles for nested items
116+
ul {
117+
list-style-type: disc; // First level: filled circle
118+
119+
ul {
120+
list-style-type: circle; // Second level: empty circle
121+
122+
123+
ul {
124+
list-style-type: square; // Third level: square
125+
}
126+
}
127+
}
128+
115129
.step-by-step {
116130
ol {
117131
counter-reset: my-counter;

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@
55
"**/CONTRIBUTING.md": true,
66
"**/LICENSE*": true,
77
"**/node_modules/": true
8+
}
9+
}

0 commit comments

Comments
 (0)