-
Notifications
You must be signed in to change notification settings - Fork 42
use the UMF version from git describe in docs, not the harcoded one #1027
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
Conversation
docs/config/conf.py
Outdated
| # The full version, including alpha/beta/rc tags | ||
| release = "0.11.0" | ||
|
|
||
| release = os.getenv("UMF_VERSION", "unknown") |
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.
any fallback if version is not set? i.e. docs are build localy without CI??
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.
I have added an appropriate message to set the UMF_VERSION
0431700 to
ad37472
Compare
de78b8c to
38c5094
Compare
docs/README.md
Outdated
| To display the proper version of UMF in the documentation title, set the `UMF_VERSION` variable before running the script. | ||
|
|
||
| ```bash | ||
| $ UMF_VERSION=<your version, e.g. "0.12.1"> python ./docs/generate_docs.py |
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.
heh, just a few lines above we say it has to be run from any sub-dir, and here you suggest it can be run from the root dir of the repo - pls update the example :)
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.
done
38c5094 to
4d9e2a5
Compare
use the UMF version from git describe in docs, not the harcoded one
logs from the workflow on my fork:
https://github.com/bratpiorka/unified-memory-framework/actions/runs/12667121286/job/35299837634
built docs:
https://bratpiorka.github.io/unified-memory-framework/
fixes: #1024