-
Notifications
You must be signed in to change notification settings - Fork 434
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
CONTRIB: Automate update of API documentation #10333
base: master
Are you sure you want to change the base?
Conversation
4507466
to
9106af0
Compare
contrib/api_update.sh
Outdated
|
||
set -x | ||
|
||
sudo yum -y install doxygen doxygen-latex |
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 also add support for ubuntu/debian?
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.
fixed
c808e5f
to
e2261e3
Compare
@yosefe, can you please have a look? |
contrib/api_update.sh
Outdated
@@ -0,0 +1,56 @@ | |||
#!/usr/bin/env bash | |||
# | |||
# Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
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.
# Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | |
# Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
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.
fixed
contrib/api_update.sh
Outdated
# See file LICENSE for terms. | ||
# | ||
|
||
set -euE |
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.
shall we pass it in the shebang?
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.
fixed
contrib/api_update.sh
Outdated
|
||
set -euE | ||
|
||
branch="${1?Specify remote version to use like "upstream/v1.18.x"}" |
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.
need to document command line params
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.
fixed
if grep -qi "debian\|ubuntu" /etc/os-release 2>/dev/null | ||
then | ||
sudo apt-get -y install doxygen doxygen-latex | ||
else | ||
sudo yum -y install doxygen doxygen-latex | ||
fi | ||
|
||
git checkout "$branch" | ||
git clean -xdf | ||
git reset --hard | ||
|
||
./autogen.sh | ||
./configure --with-docs-only | ||
make docs | ||
|
||
git checkout "$remote"/gh-pages | ||
mkdir api/"$version" | ||
ln -snf "$version" api/latest | ||
|
||
cp docs/doxygen-doc/ucx.pdf "api/$version/ucx-$version.pdf" |
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.
seems we want to do this step as part of release pipeline when a GA version is tagged?
and run it on a docker image that has latest doxygen, latex, etc.
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.
as discussed, will address comment, add can be done in secondary commit
What?
Move steps from wiki to script to help avoid/fix mistakes. Wiki will need to be updated.
How?