Skip to content
Merged
Show file tree
Hide file tree
Changes from 63 commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
62b5f9e
refactor: Create separate package for documentation
d3xter666 Oct 2, 2025
a644968
refactor: Move /docs to the newly create package
d3xter666 Oct 2, 2025
e5c3c71
refactor: Guidelines are for the whole project and should be at the t…
d3xter666 Oct 14, 2025
d3fe050
refactor: Move /docs to the newly create package
d3xter666 Oct 2, 2025
db14541
feat: Add vitepress & config
d3xter666 Oct 2, 2025
260b7f4
feat: Add gitignore rules for the documentation build
d3xter666 Oct 2, 2025
148f07a
refactor: Make md files vitepress compatible
d3xter666 Oct 2, 2025
0e8d7f0
fix: CLI.md parsing for vitepress
d3xter666 Oct 3, 2025
a7cccba
feat: Cleanup documentation (#1135)
d3xter666 Oct 9, 2025
79f97ec
refactor: Remove unnecessary files from .git
d3xter666 Oct 14, 2025
212c716
refactor: Enable .git ignore rules after cleanup
d3xter666 Oct 14, 2025
591c779
refactor: Correct .gitignore rules
d3xter666 Oct 14, 2025
e31966d
refactor: Cleanup redundant configurations
d3xter666 Oct 14, 2025
fe51d35
refactor: Use light & dark logos
d3xter666 Oct 14, 2025
e4af048
fix: Restore Guidelines.md
d3xter666 Oct 14, 2025
ff15d00
refactor: Use vitepress buttons
d3xter666 Oct 14, 2025
6bf1187
refactor: Cleanup
d3xter666 Oct 17, 2025
ea91039
fix: Remove redundant formatting
d3xter666 Oct 21, 2025
9be8b8c
refactor: Align indexes
d3xter666 Oct 21, 2025
8664d9c
refactor: Align indexes
d3xter666 Oct 21, 2025
e968500
fix: Bad links
d3xter666 Oct 22, 2025
2f30797
fix: Markdowns formatting
d3xter666 Oct 22, 2025
d46d530
fix: Internal links
d3xter666 Oct 22, 2025
61f5809
refactor: Create separate package for documentation
d3xter666 Oct 2, 2025
bbb2f83
refactor: Move /docs to the newly create package
d3xter666 Oct 2, 2025
7efcd0e
fix: Adjust paths
d3xter666 Oct 2, 2025
a1639d6
feat: Add vitepress & config
d3xter666 Oct 2, 2025
6046cd3
refactor: Make md files vitepress compatible
d3xter666 Oct 2, 2025
89277ad
fix: CLI.md parsing for vitepress
d3xter666 Oct 3, 2025
b6aafc3
feat: Enable GH next docs deployment
d3xter666 Oct 3, 2025
0205506
refactor: Adjust scripts
d3xter666 Oct 3, 2025
6332054
fix: Try to run docs properly
d3xter666 Oct 3, 2025
a527bb9
fix: Adjust version links
d3xter666 Oct 3, 2025
8c297da
feat: Update alias
d3xter666 Oct 9, 2025
444c6c2
docs: Thank you note
d3xter666 Oct 9, 2025
97a76ab
refactor: Use Vue buttons, instead of HTML tags
d3xter666 Oct 9, 2025
791f2b6
fix: Documentation syntax
d3xter666 Oct 9, 2025
1adb3fa
refactor: Provide correct base for the documentation
d3xter666 Oct 9, 2025
76599e5
refactor: Update general links to v4
d3xter666 Oct 9, 2025
5a0c02e
docs: Update REUSE.toml to reference the vitepress license and contri…
d3xter666 Oct 10, 2025
c6dd13f
docs: JSDoc cleanup
d3xter666 Oct 10, 2025
16acd24
fix: Address docs CI to the correct branch
d3xter666 Oct 10, 2025
01fb65f
docs: Fix index next link
d3xter666 Oct 10, 2025
91a5115
docs: Images for dark and light mode
d3xter666 Oct 10, 2025
02c02ff
fix: Provide correct dark logos
d3xter666 Oct 13, 2025
3f53d6a
fix: Merge conflicts
d3xter666 Oct 14, 2025
f9971ae
fix: Merge conflicts
d3xter666 Oct 14, 2025
ff77980
refactor: Adjust config.ts
d3xter666 Oct 17, 2025
4b5d659
fix: Rebase missmatches
d3xter666 Oct 22, 2025
79a96a0
fix: Add contributors
d3xter666 Oct 22, 2025
e9bf57f
refactor: Sync packages with main
d3xter666 Oct 28, 2025
79dcb21
fix: Merge conflicts
d3xter666 Oct 28, 2025
1d7677a
refactor: Dynamic docs upload configuration
d3xter666 Oct 31, 2025
2c16461
fix: Links resolution
d3xter666 Oct 31, 2025
75fd38b
docs: Cleanup comments
d3xter666 Oct 31, 2025
28920e7
fix: 404 redirects
d3xter666 Oct 31, 2025
eb915d8
refactor: Use symlink for API
d3xter666 Nov 4, 2025
39c8a78
docs: Skip schema deployment for v5 branch (for now)
d3xter666 Nov 5, 2025
b190624
fix: Merge conflicts
d3xter666 Nov 7, 2025
9c8e455
refactor: Move CLI doc generation into documentation folder
d3xter666 Nov 7, 2025
556b758
refactor: Incorporate JSDoc into the deploy job
d3xter666 Nov 7, 2025
1927f1c
refactor: Pipeline cleanups
d3xter666 Nov 7, 2025
8a398ea
fix: Move dependencies into the specific package
d3xter666 Nov 7, 2025
1b7ad2f
fix: CI pipeline test fix
d3xter666 Nov 7, 2025
5f2da06
refactor: Disable 404 fix deployment for now
d3xter666 Nov 7, 2025
e42ca0b
fix: Align pipeline versions with other pipelines
d3xter666 Nov 7, 2025
76ca855
fix: Add missing strict engine for docs
d3xter666 Nov 7, 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
100 changes: 100 additions & 0 deletions .github/workflows/deploy-vitepress-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Sample workflow for building and deploying a VitePress site to GitHub Pages
name: Deploy VitePress site to gh-pages

on:
push:
branches: [main]
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
working-directory: packages/documentation
run: npm ci
- name: Fetch gh-pages branch
run: git fetch origin gh-pages --depth=1
- name: generate CLI doc
working-directory: packages/documentation
run: npm run generate-cli-doc
- name: Build vitepress build
working-directory: packages/documentation
run: |
# The base output
npm run build:vitepress -- --base="/${{ github.event.repository.name }}/${DOC_VERSION}/"
npm run build:assets -- ./dist
# The alias output
npm run build:vitepress -- --base="/${{ github.event.repository.name }}/${DOC_ALIAS}/" --outDir="dist-${DOC_ALIAS}"
npm run build:assets -- ./dist-${DOC_ALIAS}
- name: Build jsdoc
working-directory: packages/documentation
run: npm run jsdoc-generate
# TODO: Skip for now deployment of the schema until we do a Schema Version 5 release
# - 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: |
# TODO: Skip for now deployment of the schema until we do a Schema Version 5 release
# rm -rf ./gh-pages/schema
# cp -R ./site/schema ./gh-pages/
rm -rf ./gh-pages/${DOC_VERSION}
rm -rf ./gh-pages/${DOC_ALIAS}

# Main version route
cp -R ./packages/documentation/dist ./gh-pages/${DOC_VERSION}/

# Alias route. E.g., next, latest, stable, etc.
# For vitepress must be a copy with different config, not a symlink
cp -R ./packages/documentation/dist-${DOC_ALIAS} ./gh-pages/${DOC_ALIAS}/
# Symlink the api docs to avoid duplication
ln -s ../${DOC_VERSION}/api ./gh-pages/${DOC_ALIAS}/api

cp ./packages/documentation/scripts/resources/custom404.html ./gh-pages/404.html
- 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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,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"
43 changes: 0 additions & 43 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"coverage": "npm run coverage --workspaces",
"schema-generate": "node ./scripts/buildSchema.js ui5",
"schema-workspace-generate": "node ./scripts/buildSchema.js ui5-workspace",
"generate-cli-doc": "node ./scripts/generateCliDoc.js",
"depcheck": "depcheck --ignores @ui5/builder,@ui5/cli,@ui5/fs,@ui5/logger,@ui5/project,@ui5/server,local-web-server,@commitlint/config-conventional,husky && npm run depcheck --workspaces",
"check-licenses": "licensee --errors-only"
},
Expand All @@ -53,7 +52,6 @@
"eslint-plugin-ava": "^15.1.0",
"eslint-plugin-jsdoc": "^61.1.0",
"globals": "^16.4.0",
"handlebars": "^4.7.8",
"husky": "^9.1.7",
"licensee": "^11.1.1",
"local-web-server": "^5.4.0",
Expand Down
12 changes: 7 additions & 5 deletions packages/documentation/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import MarkdownItImplicitFigures from "markdown-it-implicit-figures";

export default defineConfig({

base: "/cli/v5/", // GitHub Pages deployment base path
// Would be set in CI job via CLI arguments. For local development, it's just root.
base: "/",
srcDir: "docs",
outDir: "dist",
lang: "en-US",
Expand Down Expand Up @@ -104,17 +105,17 @@ function nav() {
items: [
{
text: 'V4',
link: '../v4/',
link: `/../v4/`,
target: "_self"
},
{
text: 'V3',
link: '../v3/',
link: `/../v3/`,
target: "_self"
},
{
text: 'V2',
link: '../v2/',
link: `/../v2/`,
target: "_self"
}
]
Expand Down Expand Up @@ -274,7 +275,8 @@ function guide() {
},
{
text: "API Reference",
link: "https://ui5.github.io/cli/api/index.html",
link: "/api/index.html",
target: "_blank"

},

Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import VPButton from "vitepress/dist/client/theme-default/components/VPButton.vu
const { isDark } = useData()
</script>

<img :src="isDark ? '/cli/v5/images/O_UI5_H_noBG.png' : '/cli/v5/images/UI5_logo_wide.png'" alt="UI5 logo" style="max-width: 100%; height: auto;">
<img :src="isDark ? './images/O_UI5_H_noBG.png' : './images/UI5_logo_wide.png'" alt="UI5 logo" style="max-width: 100%; height: auto;">

# UI5 CLI

Expand Down
Loading
Loading