Skip to content

Conversation

@bratpiorka
Copy link
Contributor

@bratpiorka bratpiorka commented Jan 8, 2025

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

# The full version, including alpha/beta/rc tags
release = "0.11.0"

release = os.getenv("UMF_VERSION", "unknown")
Copy link
Contributor

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??

Copy link
Contributor Author

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

@bratpiorka bratpiorka force-pushed the rrudnick_umf_ver_docs branch from 0431700 to ad37472 Compare January 8, 2025 14:28
@bratpiorka bratpiorka marked this pull request as ready for review January 8, 2025 14:29
@bratpiorka bratpiorka requested a review from a team as a code owner January 8, 2025 14:29
@bratpiorka bratpiorka force-pushed the rrudnick_umf_ver_docs branch 2 times, most recently from de78b8c to 38c5094 Compare January 9, 2025 14:46
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
Copy link
Contributor

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 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@bratpiorka bratpiorka merged commit 890297b into oneapi-src:main Jan 10, 2025
77 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use git describe to set proper version in conf.py

5 participants