-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Build: standardize output directory for artifacts #9888
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
faec2a2
Build: standardize output directory for artifacts
humitos 0666df6
Build: decideif there is an output type based on the path existence
humitos b494c64
Test: update build tests to match changes
humitos d2bf3f0
Test: check if the file exist before continue
humitos 2ab29ba
Build: simplify the code by running the commands inside the container
humitos faa611f
Test: add checks for more commands
humitos c80416a
Storage: use constants to make explicit artifact types
humitos 67f0958
PDF builder: raise an error if the PDF file is not found
humitos f54ca20
Build: use `relative_output_dir` and `absolute_output_dir`
humitos ad270e9
Builder: execute `sphinx-build` from the same directory as `conf.py`
humitos da328fd
HTMLZip build: use `zip` inside the Docker container to build it
humitos 782179f
Minor changes about docstring and final dot in a sentence :)
humitos c999e55
Test: adapt them to match thew path and arguments changes
humitos 411bb4e
Merge branch 'main' of github.com:readthedocs/readthedocs.org into hu…
humitos 8195ecb
pre-commit missing changes
humitos 1f50a3b
Sphinx builder: better default
humitos a88bf14
Update readthedocs/doc_builder/backends/sphinx.py
humitos 280e8e4
Update readthedocs/projects/tests/test_build_tasks.py
humitos e78442a
Minor changes to fix tests
humitos c301c0d
Docstring: explain why there is an exception handling at this place
humitos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 think this is the thinking here. Will this be true once we support multiple PDF's? 🤔
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.
Hrm, thinking a little more here, I think that both comments (mine and yours) are wrong 😅
Taking into account that HTML is mandatory for a build, we will always update the HTML output in our storage. Since JSON is required for search we also always want to have it there.
The other formats may be required to delete them when they are disabled after being enabled. If the build for version
v3
outputs a PDF and then the user disable the PDF for that version, we have to remove the PDF from the storage. This can't happen for HTML nor JSON because those are mandatory.I complicated myself trying to explain this, but hopefully, I'm being clear enough for you to understand me 😄
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'm not 100% following... But it's probably not too important as long as we have a reasonably correct comment.