Skip to content

Commit 24546b8

Browse files
feat: add xp-clifford submodule with sidebar and config integration
Add xp-clifford as a git submodule under docs/ and integrate it into the Docusaurus site: - Register submodule pointing to SAP/xp-clifford.git - Add exclude rules in docusaurus.config.js to filter out non-docs content (subdirectories, CONTRIBUTING.md, DEVELOPMENT.md) - Add xp-clifford entry to the navbar dropdown menu - Add collapsed sidebar category with autogenerated items in sidebars.js
1 parent fdbc1b2 commit 24546b8

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "docs/crossplane-provider-hana"]
55
path = docs/crossplane-provider-hana
66
url = https://github.com/SAP/crossplane-provider-hana.git
7+
[submodule "docs/xp-clifford"]
8+
path = docs/xp-clifford
9+
url = git@github.com:SAP/xp-clifford.git

docs/xp-clifford

Submodule xp-clifford added at ad15906

docusaurus.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ const config = {
4545
'crossplane-provider-btp/!(docs)',
4646
'crossplane-provider-hana/!(docs)/**',
4747
'crossplane-provider-hana/!(docs)',
48+
// xp-clifford: docs live in README.md at the repo root, not in a docs/ subdirectory.
49+
// Exclude all subdirectories and non-documentation .md files.
50+
'xp-clifford/*/**',
51+
'xp-clifford/CONTRIBUTING.md',
52+
'xp-clifford/DEVELOPMENT.md',
4853
],
4954
},
5055
blog: false,
@@ -96,6 +101,10 @@ const config = {
96101
label: 'crossplane-provider-hana',
97102
to: '/docs/crossplane-provider-hana/docs/ADR/20250822-hana-x509-authentication',
98103
},
104+
{
105+
label: 'xp-clifford',
106+
to: '/docs/xp-clifford',
107+
},
99108
],
100109
},
101110
{

sidebars.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ const sidebars = {
3939
},
4040
],
4141
},
42+
{
43+
type: 'category',
44+
label: 'xp-clifford',
45+
collapsible: true,
46+
collapsed: true,
47+
items: [
48+
{
49+
type: 'autogenerated',
50+
dirName: 'xp-clifford',
51+
},
52+
],
53+
},
4254
// To add a new submodule, copy the block above and adjust label and dirName, e.g.:
4355
// {
4456
// type: 'category',

0 commit comments

Comments
 (0)