Skip to content

Commit

Permalink
Shift site build to use monorepo and gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsondatadev authored and Fokko committed Jan 9, 2024
1 parent bc6b6e6 commit d9498a0
Show file tree
Hide file tree
Showing 28 changed files with 812 additions and 321 deletions.
1 change: 1 addition & 0 deletions .github/workflows/flink-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ on:
- 'spark/**'
- 'pig/**'
- 'docs/**'
- 'site/**'
- 'open-api/**'
- 'format/**'
- '.gitattributes'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/hive-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ on:
- 'flink/**'
- 'pig/**'
- 'docs/**'
- 'site/**'
- 'open-api/**'
- 'format/**'
- '.gitattributes'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ on:
- '.asf.yml'
- 'dev/**'
- 'docs/**'
- 'site/**'
- 'open-api/**'
- 'format/**'
- '.gitattributes'
Expand Down
31 changes: 21 additions & 10 deletions site/variables.yml → .github/workflows/site-ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# 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
Expand All @@ -14,13 +15,23 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

extra:
icebergVersion: 1.4.0
social:
- icon: fontawesome/brands/github-alt
link: https://github.com/apache/iceberg
- icon: fontawesome/brands/youtube
link: https://www.youtube.com/@ApacheIceberg
- icon: fontawesome/brands/slack
link: https://join.slack.com/t/apache-iceberg/shared_invite/zt-1znkcg5zm-7_FE~pcox347XwZE3GNfPg
#
name: site-ci
on:
push:
branches:
- main
paths:
- site/**
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Deploy Iceberg documentation
run: make deploy
working-directory: ./site
3 changes: 2 additions & 1 deletion .github/workflows/spark-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ on:
- '.gitignore'
- '.asf.yml'
- 'dev/**'
- 'site/**'
- 'mr/**'
- 'hive3/**'
- 'hive3-orc-bundle/**'
Expand Down Expand Up @@ -141,4 +142,4 @@ jobs:
with:
name: test logs
path: |
**/build/testlogs
**/build/testlogs
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ gradle/wrapper/gradle-wrapper.jar
lib/

# web site build
site/site
site/site/
#site/docs/docs/
site/docs/javadoc/

# benchmark output
spark/v3.3/spark/benchmark/*
Expand Down Expand Up @@ -62,4 +64,3 @@ metastore_db/
# Spark/metastore files
spark-warehouse/
derby.log

119 changes: 0 additions & 119 deletions site/.gitignore

This file was deleted.

34 changes: 34 additions & 0 deletions site/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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.

.PHONY: help
help: # Show help for each of the Makefile recipes.
@grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | sort | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done

.PHONY: serve
serve: # Clean, build, and run the docs site locally.
dev/serve.sh

.PHONY: build
build: # Clean and build the docs site locally.
dev/build.sh

.PHONY: deploy
deploy: # Clean, build, and deploy the Iceberg docs site.
dev/deploy.sh

.PHONY: clean
clean: # Clean the local docs site.
dev/clean.sh
Loading

0 comments on commit d9498a0

Please sign in to comment.