-
Notifications
You must be signed in to change notification settings - Fork 76
docs: Enable documentation ci #1147
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
Merged
Merged
Changes from 66 commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
62b5f9e
refactor: Create separate package for documentation
d3xter666 a644968
refactor: Move /docs to the newly create package
d3xter666 e5c3c71
refactor: Guidelines are for the whole project and should be at the t…
d3xter666 d3fe050
refactor: Move /docs to the newly create package
d3xter666 db14541
feat: Add vitepress & config
d3xter666 260b7f4
feat: Add gitignore rules for the documentation build
d3xter666 148f07a
refactor: Make md files vitepress compatible
d3xter666 0e8d7f0
fix: CLI.md parsing for vitepress
d3xter666 a7cccba
feat: Cleanup documentation (#1135)
d3xter666 79f97ec
refactor: Remove unnecessary files from .git
d3xter666 212c716
refactor: Enable .git ignore rules after cleanup
d3xter666 591c779
refactor: Correct .gitignore rules
d3xter666 e31966d
refactor: Cleanup redundant configurations
d3xter666 fe51d35
refactor: Use light & dark logos
d3xter666 e4af048
fix: Restore Guidelines.md
d3xter666 ff15d00
refactor: Use vitepress buttons
d3xter666 6bf1187
refactor: Cleanup
d3xter666 ea91039
fix: Remove redundant formatting
d3xter666 9be8b8c
refactor: Align indexes
d3xter666 8664d9c
refactor: Align indexes
d3xter666 e968500
fix: Bad links
d3xter666 2f30797
fix: Markdowns formatting
d3xter666 d46d530
fix: Internal links
d3xter666 61f5809
refactor: Create separate package for documentation
d3xter666 bbb2f83
refactor: Move /docs to the newly create package
d3xter666 7efcd0e
fix: Adjust paths
d3xter666 a1639d6
feat: Add vitepress & config
d3xter666 6046cd3
refactor: Make md files vitepress compatible
d3xter666 89277ad
fix: CLI.md parsing for vitepress
d3xter666 b6aafc3
feat: Enable GH next docs deployment
d3xter666 0205506
refactor: Adjust scripts
d3xter666 6332054
fix: Try to run docs properly
d3xter666 a527bb9
fix: Adjust version links
d3xter666 8c297da
feat: Update alias
d3xter666 444c6c2
docs: Thank you note
d3xter666 97a76ab
refactor: Use Vue buttons, instead of HTML tags
d3xter666 791f2b6
fix: Documentation syntax
d3xter666 1adb3fa
refactor: Provide correct base for the documentation
d3xter666 76599e5
refactor: Update general links to v4
d3xter666 5a0c02e
docs: Update REUSE.toml to reference the vitepress license and contri…
d3xter666 c6dd13f
docs: JSDoc cleanup
d3xter666 16acd24
fix: Address docs CI to the correct branch
d3xter666 01fb65f
docs: Fix index next link
d3xter666 91a5115
docs: Images for dark and light mode
d3xter666 02c02ff
fix: Provide correct dark logos
d3xter666 3f53d6a
fix: Merge conflicts
d3xter666 f9971ae
fix: Merge conflicts
d3xter666 ff77980
refactor: Adjust config.ts
d3xter666 4b5d659
fix: Rebase missmatches
d3xter666 79a96a0
fix: Add contributors
d3xter666 e9bf57f
refactor: Sync packages with main
d3xter666 79dcb21
fix: Merge conflicts
d3xter666 1d7677a
refactor: Dynamic docs upload configuration
d3xter666 2c16461
fix: Links resolution
d3xter666 75fd38b
docs: Cleanup comments
d3xter666 28920e7
fix: 404 redirects
d3xter666 eb915d8
refactor: Use symlink for API
d3xter666 39c8a78
docs: Skip schema deployment for v5 branch (for now)
d3xter666 b190624
fix: Merge conflicts
d3xter666 9c8e455
refactor: Move CLI doc generation into documentation folder
d3xter666 556b758
refactor: Incorporate JSDoc into the deploy job
d3xter666 1927f1c
refactor: Pipeline cleanups
d3xter666 8a398ea
fix: Move dependencies into the specific package
d3xter666 1b7ad2f
fix: CI pipeline test fix
d3xter666 5f2da06
refactor: Disable 404 fix deployment for now
d3xter666 e42ca0b
fix: Align pipeline versions with other pipelines
d3xter666 76ca855
fix: Add missing strict engine for docs
d3xter666 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| # 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-24.04 | ||
| 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@v5 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Setup Node | ||
| uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 22.20.0 | ||
| cache: npm | ||
| - name: Setup Pages | ||
| uses: actions/configure-pages@v4 | ||
| - name: Install dependencies | ||
| run: npm ci --engine-strict # --engine-strict is used to fail-fast if deps require node versions unsupported by the repo | ||
| - name: Install documentation dependencies | ||
| working-directory: packages/documentation | ||
| run: npm ci --engine-strict # --engine-strict is used to fail-fast if deps require node versions unsupported by the repo | ||
| - 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@v5 | ||
| 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 | ||
|
|
||
| # TODO: Enable when v5 release is done | ||
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.