-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: add upload assets to doc-build #467
Conversation
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Isn't there a way to read the BUILD_DIR variable? That way we don't hardcode it to |
We could parse the make.bat or Makefile but if one uses another variable name in the script file, the problem would remain. |
Ah, no need. I see we are uploading artifacts from a hardcoded direction |
@SMoraisAnsys - do we have any expected date for this? |
Changes include: - leveraging conf.py to determine PDF filename - using 'shared' python script to sanitize PDF filename
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.
To be performed once the action is tested and ready
Changes have been tested on |
@RobPasMue Feel free to have a look. The action changed a bit and doesn't leverage the |
Let me check whenever I get the chance :) |
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.
Overall LGTM!
Co-authored-by: Roberto Pastor Muela <[email protected]>
Is it ready to merge? |
Yep, didn't wanted to merge it myself to let others have a look. I tested it on pyedb and it worked fine for windows and linux. |
looks like it works fine. Let's merge and release then |
Unless... @ansys/pyansys-core - any complaints? |
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.
It looks good to me as well!
Co-authored-by: Revathy Venugopal <[email protected]>
Can we get this merged and released? |
I'm waiting for this feature as much as you haha ! |
What's missing?? |
Nothing, I just though that I wasn't the one that should merge the PR. |
Some repos are using an extra step in the documentation build to add download assets to the HTML documentation.
See for example assets page where the assets are listed and a button has been added to download PDF files from HTML documentation.
This PR adds extra steps to zip / copy / paste files to the expected directory
doc/_build/html/_static/assets/download
.Build files are expected to be in
doc/_build
. The PDF file name is expected to be PROJECT_NAME.pdf where PROJECT_NAME is obtained by looking at theproject
variable indoc/conf.py
file. If the file is not found, then every PDF file created indoc/_build/latex
will be copy pasted.Closes #466