-
Notifications
You must be signed in to change notification settings - Fork 7.3k
ZOOKEEPER-5020: Improve ZooKeeper website #2373
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
Open
yuriipalam
wants to merge
10
commits into
apache:master
Choose a base branch
from
yuriipalam:ZOOKEEPER-5020
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1a7bc1b
ZOOKEEPER-5020: Improve ZooKeeper website
yuriipalam 06217d0
Fix build
yuriipalam 37a6f19
WIP
yuriipalam 78d5f71
Fix CI issues
yuriipalam ebc8b5c
Add GitHub Actions workflow for website build
yuriipalam a0729bc
Add sitemap generation, robots.txt, and HTTP cache headers
yuriipalam 0e0ecb2
Fix CVEs
yuriipalam f9f5a8c
Fix lint
yuriipalam ff2606e
Move RAT plugin exclusions for .mdx files and robots.txt to zookeeper…
yuriipalam e368bfe
Update CI
yuriipalam 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,73 @@ | ||
| # Licensed to the Apache Software Foundation (ASF) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The ASF licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| name: Website | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ '*' ] | ||
| pull_request: | ||
| branches: [ '*' ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| site: | ||
| name: website-site | ||
| timeout-minutes: 120 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up JDK 11 | ||
| uses: actions/setup-java@v5 | ||
| with: | ||
| java-version: 11 | ||
| distribution: temurin | ||
| cache: 'maven' | ||
| - name: Set up Node.js 22 | ||
| uses: actions/setup-node@v5 | ||
| with: | ||
| node-version: 22 | ||
| cache: 'npm' | ||
| cache-dependency-path: zookeeper-website/package-lock.json | ||
| - name: Show the first log message | ||
| run: git log -n1 | ||
| - name: Install website npm dependencies | ||
| working-directory: zookeeper-website | ||
| run: npm ci | ||
| - name: Install Playwright browsers and system dependencies | ||
| working-directory: zookeeper-website | ||
| run: npx playwright install --with-deps | ||
| - name: Build website with Maven site | ||
| run: mvn -B -V -e -ntp "-Dstyle.color=always" -pl zookeeper-website site | ||
| env: | ||
| MAVEN_OPTS: -Djansi.force=true | ||
| - name: Upload website Playwright report | ||
| if: ${{ failure() }} | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: website-playwright-report | ||
| path: zookeeper-website/playwright-report/ | ||
| if-no-files-found: ignore | ||
| - name: Upload website test results | ||
| if: ${{ failure() }} | ||
| uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: website-test-results | ||
| path: zookeeper-website/test-results/ | ||
| if-no-files-found: ignore |
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
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
zookeeper-docs/src/main/resources/markdown/html/footer.html
This file was deleted.
Oops, something went wrong.
149 changes: 0 additions & 149 deletions
149
zookeeper-docs/src/main/resources/markdown/html/header.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For installing Playwright in GH Actions you might find this useful:
https://playwright.dev/docs/ci-intro#setting-up-github-actions