Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
61 changes: 61 additions & 0 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 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: Show the first log message
run: git log -n1
- 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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</licenses>

<modules>
<module>zookeeper-docs</module>
<module>zookeeper-website</module>
<module>zookeeper-jute</module>
<module>zookeeper-server</module>
<module>zookeeper-metrics-providers</module>
Expand Down
2 changes: 1 addition & 1 deletion zookeeper-assembly/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<dependencies>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper-docs</artifactId>
<artifactId>zookeeper-website</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>
Expand Down
9 changes: 1 addition & 8 deletions zookeeper-assembly/src/main/assembly/bin-package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<excludes>
<exclude>org.apache.zookeeper:zookeeper-recipes</exclude>
<exclude>org.apache.zookeeper:zookeeper-client</exclude>
<exclude>org.apache.zookeeper:zookeeper-docs</exclude>
<exclude>org.apache.zookeeper:zookeeper-website</exclude>
</excludes>
<useProjectArtifact>false</useProjectArtifact>
<useTransitiveDependencies>true</useTransitiveDependencies>
Expand All @@ -49,13 +49,6 @@
</dependencySets>

<fileSets>
<fileSet>
<!-- ZooKeeper generated documents -->
<directory>${project.basedir}/../zookeeper-docs/target/html</directory>
<outputDirectory>docs</outputDirectory>
<fileMode>${rw.file.permission}</fileMode>
<directoryMode>${rwx.file.permission}</directoryMode>
</fileSet>
<fileSet>
<!-- ZooKeeper jute generated api document -->
<directory>${project.basedir}/../zookeeper-jute/target/apidocs</directory>
Expand Down
64 changes: 0 additions & 64 deletions zookeeper-docs/pom.xml

This file was deleted.

18 changes: 0 additions & 18 deletions zookeeper-docs/src/main/resources/markdown/html/footer.html

This file was deleted.

149 changes: 0 additions & 149 deletions zookeeper-docs/src/main/resources/markdown/html/header.html

This file was deleted.

Loading
Loading