-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1041 from CesiumGS/prod-doxygen-upgrade
Production doc script improvements.
- Loading branch information
Showing
4 changed files
with
197 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -3,6 +3,7 @@ on: | |
push: | ||
branches: | ||
- 'cesium.com' | ||
- 'cesium.com-staging' | ||
jobs: | ||
deploy-docs: | ||
runs-on: ubuntu-22.04 | ||
|
@@ -13,17 +14,42 @@ jobs: | |
steps: | ||
- name: Install Doxygen | ||
run: | | ||
sudo apt install -y doxygen | ||
cd ~ | ||
wget https://github.com/doxygen/doxygen/releases/download/Release_1_12_0/doxygen-1.12.0.linux.bin.tar.gz | ||
tar xzf doxygen-1.12.0.linux.bin.tar.gz | ||
export PATH=$PWD/doxygen-1.12.0/bin:$PATH | ||
echo "PATH=$PATH" >> "$GITHUB_ENV" | ||
doxygen --version | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ccache-ubuntu-22.04-doxygen | ||
- name: Cache vcpkg artifacts | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.ezvcpkg | ||
key: vcpkg-ubuntu-22.04-doxygen-${{ hashFiles('CMakeLists.txt') }} | ||
restore-keys: | | ||
vcpkg-ubuntu-22.04-doxygen-${{ hashFiles('CMakeLists.txt') }} | ||
vcpkg-ubuntu-22.04-doxygen | ||
- name: Mark documentation official | ||
if: ${{ github.ref_name == 'cesium.com' }} | ||
run: | | ||
echo "EXTRA_CONFIGURE_ARGS=-DCESIUM_PRODUCTION_DOCS" >> "$GITHUB_ENV" | ||
- name: Generate Documentation | ||
run: | | ||
npm install | ||
cmake -B build -S . | ||
cmake -B build -S . $EXTRA_CONFIGURE_ARGS | ||
cmake --build build --target cesium-native-docs | ||
- name: Deploy to cesium.com | ||
if: ${{ env.AWS_ACCESS_KEY_ID != '' }} | ||
if: ${{ github.ref_name == 'cesium.com' }} | ||
run: | | ||
aws s3 sync build/doc/html/ s3://cesium-website/cesium-native/ref-doc/ --cache-control "public, max-age=1800" --delete | ||
- name: Deploy to cesium.com staging | ||
if: ${{ github.ref_name == 'cesium.com-staging' }} | ||
run: | | ||
aws s3 sync build/doc/html/ s3://cesium-website/cesium-native/ref-doc-staging/ --cache-control "public, max-age=1800" --delete |
This file contains 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 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,81 @@ | ||
<!-- HTML header for doxygen 1.12.0--> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" lang="$langISO"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=11"/> | ||
<meta name="generator" content="Doxygen $doxygenversion"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<meta name="robots" content="noindex" /> | ||
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME--> | ||
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME--> | ||
<!--BEGIN PROJECT_ICON--> | ||
<link rel="icon" href="$relpath^$projecticon" type="image/x-icon" /> | ||
<!--END PROJECT_ICON--> | ||
<link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/> | ||
<!--BEGIN DISABLE_INDEX--> | ||
<!--BEGIN FULL_SIDEBAR--> | ||
<script type="text/javascript">var page_layout=1;</script> | ||
<!--END FULL_SIDEBAR--> | ||
<!--END DISABLE_INDEX--> | ||
<script type="text/javascript" src="$relpath^jquery.js"></script> | ||
<script type="text/javascript" src="$relpath^dynsections.js"></script> | ||
<!--BEGIN COPY_CLIPBOARD--> | ||
<script type="text/javascript" src="$relpath^clipboard.js"></script> | ||
<!--END COPY_CLIPBOARD--> | ||
$treeview | ||
$search | ||
$mathjax | ||
$darkmode | ||
<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" /> | ||
$extrastylesheet | ||
</head> | ||
<body> | ||
<!--BEGIN DISABLE_INDEX--> | ||
<!--BEGIN FULL_SIDEBAR--> | ||
<div id="side-nav" class="ui-resizable side-nav-resizable"><!-- do not remove this div, it is closed by doxygen! --> | ||
<!--END FULL_SIDEBAR--> | ||
<!--END DISABLE_INDEX--> | ||
|
||
<div id="top"><!-- do not remove this div, it is closed by doxygen! --> | ||
|
||
<!--BEGIN TITLEAREA--> | ||
<div id="titlearea"> | ||
<table cellspacing="0" cellpadding="0"> | ||
<tbody> | ||
<tr id="projectrow"> | ||
<!--BEGIN PROJECT_LOGO--> | ||
<td id="projectlogo"><img alt="Logo" src="$relpath^$projectlogo"$logosize/></td> | ||
<!--END PROJECT_LOGO--> | ||
<!--BEGIN PROJECT_NAME--> | ||
<td id="projectalign"> | ||
<div id="projectname">$projectname<!--BEGIN PROJECT_NUMBER--><span id="projectnumber"> $projectnumber</span><!--END PROJECT_NUMBER--> | ||
</div> | ||
<!--BEGIN PROJECT_BRIEF--><div id="projectbrief">$projectbrief</div><!--END PROJECT_BRIEF--> | ||
</td> | ||
<!--END PROJECT_NAME--> | ||
<!--BEGIN !PROJECT_NAME--> | ||
<!--BEGIN PROJECT_BRIEF--> | ||
<td> | ||
<div id="projectbrief">$projectbrief</div> | ||
</td> | ||
<!--END PROJECT_BRIEF--> | ||
<!--END !PROJECT_NAME--> | ||
<!--BEGIN DISABLE_INDEX--> | ||
<!--BEGIN SEARCHENGINE--> | ||
<!--BEGIN !FULL_SIDEBAR--> | ||
<td>$searchbox</td> | ||
<!--END !FULL_SIDEBAR--> | ||
<!--END SEARCHENGINE--> | ||
<!--END DISABLE_INDEX--> | ||
</tr> | ||
<!--BEGIN SEARCHENGINE--> | ||
<!--BEGIN FULL_SIDEBAR--> | ||
<tr><td colspan="2">$searchbox</td></tr> | ||
<!--END FULL_SIDEBAR--> | ||
<!--END SEARCHENGINE--> | ||
</tbody> | ||
</table> | ||
</div> | ||
<!--END TITLEAREA--> | ||
<!-- end header part --> |
This file contains 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,80 @@ | ||
<!-- HTML header for doxygen 1.12.0--> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" lang="$langISO"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=11"/> | ||
<meta name="generator" content="Doxygen $doxygenversion"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<!--BEGIN PROJECT_NAME--><title>$projectname: $title</title><!--END PROJECT_NAME--> | ||
<!--BEGIN !PROJECT_NAME--><title>$title</title><!--END !PROJECT_NAME--> | ||
<!--BEGIN PROJECT_ICON--> | ||
<link rel="icon" href="$relpath^$projecticon" type="image/x-icon" /> | ||
<!--END PROJECT_ICON--> | ||
<link href="$relpath^tabs.css" rel="stylesheet" type="text/css"/> | ||
<!--BEGIN DISABLE_INDEX--> | ||
<!--BEGIN FULL_SIDEBAR--> | ||
<script type="text/javascript">var page_layout=1;</script> | ||
<!--END FULL_SIDEBAR--> | ||
<!--END DISABLE_INDEX--> | ||
<script type="text/javascript" src="$relpath^jquery.js"></script> | ||
<script type="text/javascript" src="$relpath^dynsections.js"></script> | ||
<!--BEGIN COPY_CLIPBOARD--> | ||
<script type="text/javascript" src="$relpath^clipboard.js"></script> | ||
<!--END COPY_CLIPBOARD--> | ||
$treeview | ||
$search | ||
$mathjax | ||
$darkmode | ||
<link href="$relpath^$stylesheet" rel="stylesheet" type="text/css" /> | ||
$extrastylesheet | ||
</head> | ||
<body> | ||
<!--BEGIN DISABLE_INDEX--> | ||
<!--BEGIN FULL_SIDEBAR--> | ||
<div id="side-nav" class="ui-resizable side-nav-resizable"><!-- do not remove this div, it is closed by doxygen! --> | ||
<!--END FULL_SIDEBAR--> | ||
<!--END DISABLE_INDEX--> | ||
|
||
<div id="top"><!-- do not remove this div, it is closed by doxygen! --> | ||
|
||
<!--BEGIN TITLEAREA--> | ||
<div id="titlearea"> | ||
<table cellspacing="0" cellpadding="0"> | ||
<tbody> | ||
<tr id="projectrow"> | ||
<!--BEGIN PROJECT_LOGO--> | ||
<td id="projectlogo"><img alt="Logo" src="$relpath^$projectlogo"$logosize/></td> | ||
<!--END PROJECT_LOGO--> | ||
<!--BEGIN PROJECT_NAME--> | ||
<td id="projectalign"> | ||
<div id="projectname">$projectname<!--BEGIN PROJECT_NUMBER--><span id="projectnumber"> $projectnumber</span><!--END PROJECT_NUMBER--> | ||
</div> | ||
<!--BEGIN PROJECT_BRIEF--><div id="projectbrief">$projectbrief</div><!--END PROJECT_BRIEF--> | ||
</td> | ||
<!--END PROJECT_NAME--> | ||
<!--BEGIN !PROJECT_NAME--> | ||
<!--BEGIN PROJECT_BRIEF--> | ||
<td> | ||
<div id="projectbrief">$projectbrief</div> | ||
</td> | ||
<!--END PROJECT_BRIEF--> | ||
<!--END !PROJECT_NAME--> | ||
<!--BEGIN DISABLE_INDEX--> | ||
<!--BEGIN SEARCHENGINE--> | ||
<!--BEGIN !FULL_SIDEBAR--> | ||
<td>$searchbox</td> | ||
<!--END !FULL_SIDEBAR--> | ||
<!--END SEARCHENGINE--> | ||
<!--END DISABLE_INDEX--> | ||
</tr> | ||
<!--BEGIN SEARCHENGINE--> | ||
<!--BEGIN FULL_SIDEBAR--> | ||
<tr><td colspan="2">$searchbox</td></tr> | ||
<!--END FULL_SIDEBAR--> | ||
<!--END SEARCHENGINE--> | ||
</tbody> | ||
</table> | ||
</div> | ||
<!--END TITLEAREA--> | ||
<!-- end header part --> |