-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What * Almost fixe_s #3974 * Follow-up of #4191 A few remaining items & polish for the C++ docs. Now uploaded to gh-pages as well on push to main (🤞 it works.......) Commit by commit! ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/4212) (if applicable) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG - [PR Build Summary](https://build.rerun.io/pr/4212) - [Docs preview](https://rerun.io/preview/4d098307e728ccea06f408df01f700dda18739c1/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/4d098307e728ccea06f408df01f700dda18739c1/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://ref.rerun.io/dev/bench/) - [Wasm size tracking](https://ref.rerun.io/dev/sizes/)
- Loading branch information
Showing
10 changed files
with
89 additions
and
151 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
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ on: | |
PY_DOCS_VERSION_NAME: | ||
required: true | ||
type: string | ||
RS_DOCS_VERSION_NAME: | ||
RS_AND_CPP_DOCS_VERSION_NAME: | ||
required: false | ||
type: string | ||
default: "head" | ||
|
@@ -163,7 +163,59 @@ jobs: | |
- name: Deploy the docs | ||
run: | | ||
git fetch | ||
python3 -m ghp_import -n -p -x docs/rust/${{ inputs.RS_DOCS_VERSION_NAME }} target/doc/ -m "Update the rust docs" | ||
python3 -m ghp_import -n -p -x docs/rust/${{ inputs.RS_AND_CPP_DOCS_VERSION_NAME }} target/doc/ -m "Update the rust docs" | ||
cpp-deploy-docs: | ||
name: Cpp | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Show context | ||
run: | | ||
echo "GITHUB_CONTEXT": $GITHUB_CONTEXT | ||
echo "JOB_CONTEXT": $JOB_CONTEXT | ||
echo "INPUTS_CONTEXT": $INPUTS_CONTEXT | ||
echo "ENV_CONTEXT": $ENV_CONTEXT | ||
env: | ||
ENV_CONTEXT: ${{ toJson(env) }} | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
JOB_CONTEXT: ${{ toJson(job) }} | ||
INPUTS_CONTEXT: ${{ toJson(inputs) }} | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Don't do a shallow clone since we need to push gh-pages | ||
ref: ${{ inputs.RELEASE_COMMIT || (github.event_name == 'pull_request' && github.event.pull_request.head.ref || '') }} | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.6.0 | ||
cache: true | ||
|
||
- name: Doxygen C++ docs | ||
run: pixi run cpp-docs | ||
|
||
- name: Set up git author | ||
run: | | ||
remote_repo="https://${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up ghp-import | ||
run: pip install ghp-import | ||
|
||
# TODO(andreas): Do we need this? | ||
# - name: Patch in a redirect page | ||
# run: echo "<meta http-equiv=\"refresh\" content=\"0; url=${REDIRECT_CRATE}\">" > target/doc/index.html | ||
# env: | ||
# REDIRECT_CRATE: rerun | ||
|
||
# See: https://github.com/c-w/ghp-import | ||
- name: Deploy the docs | ||
run: | | ||
git fetch | ||
python3 -m ghp_import -n -p -x docs/cpp/${{ inputs.RS_AND_CPP_DOCS_VERSION_NAME }} rerun_cpp/docs/html/ -m "Update the C++ docs" | ||
redeploy-rerun-io: | ||
runs-on: ubuntu-latest | ||
|
@@ -180,4 +232,3 @@ jobs: | |
vercel_team_name: ${{ vars.VERCEL_TEAM_NAME }} | ||
vercel_project_name: ${{ vars.VERCEL_PROJECT_NAME }} | ||
release_commit: ${{ inputs.RELEASE_COMMIT }} | ||
|
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,5 @@ | ||
--- | ||
title: 🌊 C++ APIs | ||
order: 10 | ||
redirect: https://ref.rerun.io/docs/cpp?speculative-link | ||
--- |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
title: 🦀 Rust APIs | ||
order: 10 | ||
order: 11 | ||
redirect: https://docs.rs/rerun/ | ||
--- |
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 |
---|---|---|
|
@@ -32,6 +32,7 @@ | |
"backbuffer", | ||
"backprojection", | ||
"barebone", | ||
"Bazel", | ||
"Bgra", | ||
"Bhat", | ||
"bindgen", | ||
|
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
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