Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
bc97732
refactor: Create separate package for documentation
d3xter666 Oct 2, 2025
d80fd12
refactor: Move /docs to the newly create package
d3xter666 Oct 2, 2025
67b5d4a
fix: Adjust paths
d3xter666 Oct 2, 2025
1f9c218
feat: Add vitepress & config
d3xter666 Oct 2, 2025
99f8ace
refactor: Make md files vitepress compatible
d3xter666 Oct 2, 2025
2422994
fix: CLI.md parsing for vitepress
d3xter666 Oct 3, 2025
020d1d4
feat: Enable GH next docs deployment
d3xter666 Oct 3, 2025
ba6ff57
refactor: Adjust scripts
d3xter666 Oct 3, 2025
f187b58
fix: Try to run docs properly
d3xter666 Oct 3, 2025
3b524a2
fix: Adjust version links
d3xter666 Oct 3, 2025
4aa0dad
feat: Update alias
d3xter666 Oct 9, 2025
6725d4d
docs: Thank you note
d3xter666 Oct 9, 2025
bbcd4a2
refactor: Use Vue buttons, instead of HTML tags
d3xter666 Oct 9, 2025
c9ca704
fix: Documentation syntax
d3xter666 Oct 9, 2025
af3034c
refactor: Provide correct base for the documentation
d3xter666 Oct 9, 2025
668a6ca
refactor: Update general links to v4
d3xter666 Oct 9, 2025
a12c9e2
docs: Update REUSE.toml to reference the vitepress license and contri…
d3xter666 Oct 10, 2025
2314a53
docs: JSDoc cleanup
d3xter666 Oct 10, 2025
f49cbec
fix: Address docs CI to the correct branch
d3xter666 Oct 10, 2025
b79c076
docs: Fix index next link
d3xter666 Oct 10, 2025
5cca39c
docs: Images for dark and light mode
d3xter666 Oct 10, 2025
df6e5d2
fix: Provide correct dark logos
d3xter666 Oct 13, 2025
fdf57f3
fix: Merge conflicts
d3xter666 Oct 14, 2025
9982eaa
fix: Merge conflicts
d3xter666 Oct 14, 2025
7974b8c
refactor: Adjust config.ts
d3xter666 Oct 17, 2025
1e69a75
fix: Rebase missmatches
d3xter666 Oct 22, 2025
a85b6bf
fix: Add contributors
d3xter666 Oct 22, 2025
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
94 changes: 94 additions & 0 deletions .github/workflows/deploy-docs-next.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Sample workflow for building and deploying a VitePress site to GitHub Pages
#
name: Deploy VitePress site to Pages (next)

on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're

Check warning on line 6 in .github/workflows/deploy-docs-next.yaml

View check run for this annotation

In Solidarity / Inclusive Language

Match Found

You might want to consider an alternative to the term "master". Possibilities might include: "active", "central", "initiator", "leader", "main", "orchestrator", "parent", "primary", "server". (This check uses pattern-matching and may therefore be incorrect. To improve the patterns or to make other suggestions, please open an issue or pull-request at https://github.com/ietf/terminology/issues.)
Raw output
/\bmaster\w*\b/gi
# using the `master` branch as the default branch.

Check warning on line 7 in .github/workflows/deploy-docs-next.yaml

View check run for this annotation

In Solidarity / Inclusive Language

Match Found

You might want to consider an alternative to the term "master". Possibilities might include: "active", "central", "initiator", "leader", "main", "orchestrator", "parent", "primary", "server". (This check uses pattern-matching and may therefore be incorrect. To improve the patterns or to make other suggestions, please open an issue or pull-request at https://github.com/ietf/terminology/issues.)
Raw output
/\bmaster\w*\b/gi
push:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false

jobs:
# Build job
deploy-docs:
runs-on: ubuntu-latest
env:
DOC_VERSION: v5 # The directory in gh-pages where the documentation would be deployed
DOC_ALIAS: next # Change this to update the alias route. Note: Check the old alias when changing this!
GIT_COMMITTER_NAME: "OpenUI5 Bot"
GIT_COMMITTER_EMAIL: "[email protected]"
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm ci
- name: Install documentation dependencies
run: cd packages/documentation && npm ci
- name: Fetch gh-pages branch
run: git fetch origin gh-pages --depth=1
- name: Set /site ownership to current user
run: |
mkdir site
sudo chown -R $(id -u):$(id -g) ./site
- name: generate CLI doc
run: npm run generate-cli-doc
- name: Build jsdoc
run: npm run jsdoc-generate
- name: Build vitepress build
run: npm run docs:build
- name: Build Schema
run: |
npm run schema-generate
npm run schema-workspace-generate
- name: Checkout gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
path: gh-pages
- name: Copy the additional resources to gh-pages
run: |
rm -rf ./gh-pages/schema
cp -R ./site/schema ./gh-pages/
rm -rf ./gh-pages/${DOC_VERSION}/
cp -R ./packages/documentation/dist ./gh-pages/${DOC_VERSION}/
cp ./scripts/resources/custom404.html ./gh-pages/404.html
- name: Create or update alias route
run: |
cd ./gh-pages
# Remove existing alias if it exists (file or symlink)
rm -rf "${DOC_ALIAS}"
# Create symlink from alias to version directory
ln -s "${DOC_VERSION}" "${DOC_ALIAS}"
- name: Publish Docs
run: |
cd ./gh-pages
git config --local user.email $GIT_COMMITTER_EMAIL
git config --local user.name $GIT_COMMITTER_NAME
git add .
git commit -m "Updating supplemental resources for ${DOC_VERSION} documentation deployment"
git push
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ deploy_key
jsdocs/
site/

# Needed for packages/server
!packages/**/test/fixtures/**/node_modules
# Needed for packages/server # Custom files
!packages/**/test/fixtures/**/node_modules

# Documentation
# Documentation
packages/documentation/docs/pages/CLI.md
packages/documentation/.vitepress/dist
packages/documentation/.vitepress/cache
packages/documentation/dist
packages/documentation/dist
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
## Resources

- [Documentation](https://ui5.github.io/cli/stable/)
- [API Reference](https://ui5.github.io/cli/stable/api/)
- [CLI Documentation](https://ui5.github.io/cli/stable/pages/CLI/)
- [Project Configuration](https://ui5.github.io/cli/stable/pages/Configuration/)
- [Documentation](https://ui5.github.io/cli/v4/)
- [API Reference](https://ui5.github.io/cli/v4/api/)
- [CLI Documentation](https://ui5.github.io/cli/v4/pages/CLI/)
- [Project Configuration](https://ui5.github.io/cli/v4/pages/Configuration/)
- 🎬 [UI5con@SAP 2020 Talk](https://www.youtube.com/watch?v=8IHoVJLKN34)
- 🎬 [UI5con@SAP 2018 Talk](https://www.youtube.com/watch?v=iQ07oe26y_k)
- [Contribution Guidelines](https://github.com/UI5/cli/blob/main/CONTRIBUTING.md)
Expand All @@ -48,3 +48,6 @@ Please check our [Contribution Guidelines](https://github.com/UI5/cli/blob/main/
## Support

Please follow our [Contribution Guidelines](https://github.com/UI5/cli/blob/main/CONTRIBUTING.md#report-an-issue) on how to report an issue. Or chat with us in the [`#tooling`](https://openui5.slack.com/archives/C0A7QFN6B) channel of the [OpenUI5 Community Slack](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com). For public Q&A, use the [`ui5-tooling` tag on Stack Overflow](https://stackoverflow.com/questions/tagged/ui5-tooling).

## Kudos
Thanks goes out for the amazing [UI5 VitePress|https://github.com/hschaefer123/ui5-vitepress] project offered by [Holger Schäfer|https://github.com/hschaefer123] on which the UI5 CLI documentation is based.
8 changes: 7 additions & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,10 @@ SPDX-License-Identifier = "Apache-2.0"
path = "packages/builder/lib/processors/jsdoc/lib/**"
precedence = "aggregate"
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and OpenUI5 contributors"
SPDX-License-Identifier = "Apache-2.0"
SPDX-License-Identifier = "Apache-2.0"

[[annotations]]
path = "packages/documentation/.vitepress/**"
precedence = "aggregate"
SPDX-FileCopyrightText = ["2019-present, Konrad Kost, Holger Schäfer, Yuxi (Evan) and VitePress contributors"]
SPDX-License-Identifier = "MIT"
6 changes: 3 additions & 3 deletions jsdoc-workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"allowUnknownTags": false
},
"source": {
"include": ["docs/indexJsdoc.md"],
"exclude": ["../ui5-builder/lib/lbt/utils/JSTokenizer.js"],
"includePattern": "ui5-[^\/]+\/(lib/.+|index)\\.js$"
"include": ["packages/documentation/docs/indexJsdoc.md"],
"exclude": ["packages/builder/lib/lbt/utils/JSTokenizer.js"],
"includePattern": "packages/[^\/]+\/(lib/.+|index)\\.js$"
},
"plugins": [
"jsdoc-plugin.cjs"
Expand Down
71 changes: 0 additions & 71 deletions jsdoc.json

This file was deleted.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@
"lint": "eslint ./ && npm run lint --workspaces",
"coverage": "npm run coverage --workspaces",
"jsdoc": "npm run jsdoc-generate && open-cli site/api/index.html",
"jsdoc-generate": "node ./scripts/isWorkspace.js && npm run jsdoc-generate-workspace || npm run jsdoc-generate-local",
"jsdoc-generate-local": "jsdoc -c ./jsdoc.json -t $(node -p 'path.dirname(require.resolve(\"docdash\"))') ./ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",
"jsdoc-generate-workspace": "jsdoc -c ./jsdoc-workspace.json -t $(node -p 'path.dirname(require.resolve(\"docdash\"))') ../ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",
"docs": "bash ./scripts/serveDocs.sh",
"docs-generate": "bash ./scripts/buildDocs.sh && open-cli http://localhost:8000 && ws --compress -d site",
"jsdoc-generate": "jsdoc -c ./jsdoc-workspace.json -t $(node -p 'path.dirname(require.resolve(\"docdash\"))') ./ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",
"docs:dev": "npm --prefix packages/documentation run dev",
"docs:build": "npm --prefix packages/documentation run build",
"docs:preview": "npm --prefix packages/documentation run preview",
"schema-generate": "node ./scripts/buildSchema.js ui5",
"schema-workspace-generate": "node ./scripts/buildSchema.js ui5-workspace",
"generate-cli-doc": "node ./scripts/generateCliDoc.js",
Expand Down
13 changes: 9 additions & 4 deletions packages/documentation/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import MarkdownItImplicitFigures from "markdown-it-implicit-figures";
import MarkdownItPlantuml from "markdown-it-plantuml";

export default defineConfig({

base: "/ui5-cli/stable/", // use this for github pages deployment or remove for CF
base: "/ui5-cli/v5/", // use this for github pages deployment or remove for CF
srcDir: "docs",
outDir: "dist",
lang: "en-US",
Expand Down Expand Up @@ -129,8 +129,13 @@ function nav() {
return [
{

text: 'V4',
text: 'V5',
items: [
{
text: 'V4',
link: '../v4/',
target: "_self"
},
{
text: 'V3',
link: '../v3/',
Expand All @@ -142,7 +147,7 @@ function nav() {
target: "_self"
}
]
},
}
];
}

Expand Down
9 changes: 0 additions & 9 deletions scripts/isWorkspace.js

This file was deleted.