-
Notifications
You must be signed in to change notification settings - Fork 56
feat: add initial documentation website #237
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
base: main
Are you sure you want to change the base?
Changes from all commits
4cb4d61
9c8fcc3
7f8ecb0
faf73f0
6705b24
e8c4b52
8e4fe10
948d04f
719fdd0
bfc36dc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,10 +22,11 @@ | |
|
||
github: | ||
description: "Apache Iceberg C++" | ||
homepage: https://iceberg.apache.org/ | ||
homepage: https://cpp.iceberg.apache.org/ | ||
labels: | ||
- iceberg | ||
- apache | ||
- cpp | ||
enabled_merge_buttons: | ||
merge: false | ||
squash: true | ||
|
@@ -47,6 +48,8 @@ github: | |
- raulcd | ||
- wgtmac | ||
- zhjwpku | ||
ghp_branch: gh-pages | ||
ghp_path: / | ||
|
||
notifications: | ||
commits: [email protected] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: "Release Docs" | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'mkdocs/**' | ||
- 'src/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v5 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v6 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install mkdocs-material | ||
sudo apt-get update | ||
sudo apt-get install -y doxygen | ||
|
||
- name: Build API documentation with Doxygen | ||
run: | | ||
cd mkdocs | ||
mkdir -p docs/api | ||
doxygen Doxyfile | ||
echo "Doxygen output created in docs/api/" | ||
|
||
- name: Build docs | ||
run: | | ||
cd mkdocs | ||
mkdocs build --clean | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How about moving these commands into a |
||
echo "MkDocs site built in site/" | ||
|
||
- name: Copy | ||
working-directory: ./mkdocs | ||
run: | | ||
echo "Copying site contents to /tmp/site" | ||
mv ./site /tmp/site/ | ||
|
||
- name: Deploy to gh-pages | ||
uses: peaceiris/[email protected] | ||
if: github.event_name == 'pull_request' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./mkdocs/site | ||
publish_branch: gh-pages | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Fokko Do we need to manually create There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @wgtmac I've just created it! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it needs to be created by hand indeed |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 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. | ||
|
||
cpp.iceberg.apache.org |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/bin/bash | ||
|
||
# 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. | ||
|
||
set -e | ||
|
||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" | ||
|
||
cd "$PROJECT_ROOT" | ||
|
||
echo "Building Iceberg C++ documentation..." | ||
echo "Working directory: $(pwd)" | ||
|
||
if ! command -v mkdocs &> /dev/null; then | ||
echo "Error: mkdocs is not installed" | ||
exit 1 | ||
fi | ||
|
||
echo "Installing dependencies..." | ||
pip install mkdocs-material | ||
|
||
# Check if doxygen is available | ||
if ! command -v doxygen &> /dev/null; then | ||
echo "Warning: doxygen is not installed, skipping API documentation generation" | ||
else | ||
echo "Building API documentation with Doxygen..." | ||
cd mkdocs | ||
mkdir -p docs/api | ||
doxygen Doxyfile | ||
cd .. | ||
fi | ||
|
||
echo "Building MkDocs documentation..." | ||
cd mkdocs | ||
mkdocs build --clean | ||
|
||
echo "Documentation build completed successfully!" | ||
echo "MkDocs site: docs/site/" |
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.
Maybe move this to a
requirements.txt
and slap a version on it. Otherwise, the workflow might break in case of a new version of mkdocs-material that introduces a breaking change.