Skip to content

Commit f2fb5f9

Browse files
committed
[website] Setup CI/CD for apache fluss website
1 parent 29a9488 commit f2fb5f9

File tree

8 files changed

+62
-41
lines changed

8 files changed

+62
-41
lines changed

.github/workflows/docs-deploy.yaml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,19 @@ on:
2222
paths:
2323
- 'website/**'
2424

25+
# We use `repository_dispatch` to trigger the deployment job on the apache/fluss-website repository.
26+
# https://github.com/apache/fluss-website/blob/main/.github/workflows/website-deploy.yaml
27+
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch
2528
jobs:
2629
deploy:
2730
runs-on: ubuntu-latest
28-
defaults:
29-
run:
30-
working-directory: ./website
3131
steps:
32-
- uses: actions/checkout@v4
33-
with:
34-
ref: main
35-
fetch-depth: 0
36-
- name: Generate versioned docs
37-
run: ./build_versioned_docs.sh
38-
- uses: actions/setup-node@v4
39-
with:
40-
node-version: 18
41-
- name: Install dependencies
42-
run: npm install
43-
- name: Build website
44-
run: npm run build
45-
- uses: webfactory/[email protected]
46-
with:
47-
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
48-
- name: Deploy website
49-
env:
50-
USE_SSH: true
32+
- name: Send Event to Trigger Deploy
5133
run: |
52-
git config --global user.email "[email protected]"
53-
git config --global user.name "gh-actions"
54-
npm run deploy -- --skip-build
34+
curl -L \
35+
-X POST \
36+
-H "Accept: application/vnd.github+json" \
37+
-H "Authorization: Bearer ${{ secrets.GH_TOKEN }}" \
38+
-H "X-GitHub-Api-Version: 2022-11-28" \
39+
https://api.github.com/repos/apache/fluss-website/dispatches \
40+
-d '{"event_type":"website-deploy","client_payload":{"repository": "apache/fluss"}}'

website/.asf.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
github:
19+
description: "Apache Fluss Website"
20+
homepage: https://fluss.apache.org/
21+
features:
22+
issues: false
23+
projects: false
24+
wiki: false
25+
labels:
26+
- fluss
27+
enabled_merge_buttons:
28+
squash: true
29+
merge: false
30+
rebase: false
31+
32+
publish:
33+
whoami: asf-site

website/.htaccess

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Allow loading YouTube content after ensuring consent.
2+
SetEnv CSP_PROJECT_DOMAINS "https://www.youtube-nocookie.com https://www.youtube.com https://github.com https://avatars.githubusercontent.com https://calendar.google.com"

website/blog/authors.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818

1919
jark:
2020
name: Jark Wu
21-
title: Creator of Fluss project
21+
title: PMC member of Apache Fluss
2222
url: https://github.com/wuchong
2323
image_url: https://github.com/wuchong.png
2424

2525
giannis:
2626
name: Giannis Polyzos
27-
title: Fluss Contributor
27+
title: PMC member of Apache Fluss
2828
url: https://github.com/polyzos
2929
image_url: https://github.com/polyzos.png
3030

3131
yuxia:
3232
name: Luo Yuxia
33-
title: Fluss Committer
33+
title: PMC member of Apache Fluss
3434
url: https://github.com/luoyuxia
3535
image_url: https://github.com/luoyuxia.png
3636

website/build_versioned_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mkdir -p "$VERSIONED_DOCS"
2525
mkdir -p "$VERSIONED_SIDEBARS"
2626

2727
# Configure the remote repository URL and temporary directory
28-
REPO_URL="https://github.com/alibaba/fluss.git"
28+
REPO_URL="https://github.com/apache/fluss.git"
2929
TEMP_DIR=$(mktemp -d)
3030

3131
# Check if the temporary directory was successfully created

website/docusaurus.config.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ import type * as Preset from '@docusaurus/preset-classic';
2121
import versionReplace from './src/plugins/remark-version-replace/index';
2222

2323
const config: Config = {
24-
title: 'Fluss',
24+
title: 'Apache Fluss™ (incubating)',
2525
tagline: 'Streaming Storage for Real-Time Analytics',
2626
favicon: 'img/logo/fluss_favicon.svg',
2727

2828
// Set the production url of your site here
29-
url: 'https://alibaba.github.io/',
29+
url: 'https://fluss.apache.org/',
3030
// Set the /<baseUrl>/ pathname under which your site is served
3131
// For GitHub pages deployment, it is often '/<projectName>/'
32-
baseUrl: '/fluss-docs/',
32+
baseUrl: '/',
3333

3434
// GitHub pages deployment config.
3535
// If you aren't using GitHub pages, you don't need these.
36-
organizationName: 'alibaba', // Usually your GitHub org/user name.
37-
projectName: 'fluss-docs', // Usually your repo name.
38-
deploymentBranch: 'gh-pages',
36+
organizationName: 'apache', // Usually your GitHub org/user name.
37+
projectName: 'fluss-website', // Usually your repo name.
38+
deploymentBranch: 'asf-site',
3939
trailingSlash: true,
4040

4141
onBrokenLinks: 'throw',
@@ -58,7 +58,7 @@ const config: Config = {
5858
docs: {
5959
sidebarPath: './sidebars.ts',
6060
editUrl: ({docPath}) =>
61-
`https://github.com/alibaba/fluss/edit/main/website/docs/${docPath}`,
61+
`https://github.com/apache/fluss/edit/main/website/docs/${docPath}`,
6262
remarkPlugins: [versionReplace],
6363
},
6464
blog: {
@@ -88,7 +88,7 @@ const config: Config = {
8888
routeBasePath: 'community',
8989
sidebarPath: './sidebarsCommunity.js',
9090
editUrl: ({docPath}) => {
91-
return `https://github.com/alibaba/fluss/edit/main/website/community/${docPath}`;
91+
return `https://github.com/apache/fluss/edit/main/website/community/${docPath}`;
9292
},
9393
// ... other options
9494
},
@@ -163,7 +163,7 @@ const config: Config = {
163163
dropdownActiveClassDisabled: true,
164164
},
165165
{
166-
href: 'https://github.com/alibaba/fluss',
166+
href: 'https://github.com/apache/fluss',
167167
position: 'right',
168168
className: 'header-github-link',
169169
'aria-label': 'GitHub repository',
@@ -172,7 +172,7 @@ const config: Config = {
172172
},
173173
footer: {
174174
style: 'dark',
175-
copyright: `Copyright © ${new Date().getFullYear()} Alibaba, Inc.
175+
copyright: `Copyright © ${new Date().getFullYear()} The Apache Software Foundation.
176176
Apache®, Apache Flink®, Flink®, Apache Kafka®, Kafka®, Spark® and associated open source project names and logos are trademarks of the Apache Software Foundation.`,
177177
},
178178
prism: {

website/src/components/HomepageIntroduce/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type IntroduceItem = {
2828

2929
const IntroduceList: IntroduceItem[] = [
3030
{
31-
title: 'What is Fluss?',
31+
title: 'What is Apache Fluss?',
3232
description: (
3333
<>
3434
Fluss is a streaming storage built for real-time analytics which can serve as the real-time data layer for Lakehouse architectures. With its columnar stream and real-time update capabilities, Fluss integrates seamlessly with Apache Flink to enable high-throughput, low-latency, cost-effective streaming data warehouses tailored for real-time applications.

website/src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function Home(): JSX.Element {
7272
const {siteConfig} = useDocusaurusContext();
7373
return (
7474
<Layout
75-
title="Fluss"
75+
title="Apache Fluss™ (incubating)"
7676
description="Streaming Storage for Real-Time Analytics">
7777
<HomepageHeader/>
7878
<main>

0 commit comments

Comments
 (0)