Repository navigation
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
SMoraisAnsys
left a comment
There was a problem hiding this comment.
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 :) |
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? |
clatapie
left a comment
There was a problem hiding this comment.
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 theprojectvariable indoc/conf.pyfile. If the file is not found, then every PDF file created indoc/_build/latexwill be copy pasted.Closes #466