You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build: rename PDF/ePUB filename to valid one automatically (#11198)
* Build: rename PDF/ePUB filename to valid one automatically
Currently, we _require_ the user to save the PDF or ePUB file with a pretty
specific filename: `{project.slug}-{version.slug}.{extension}`. This has caused
a lot of confusions to users.
Since we only support 1 file for PDF/ePUB for now, we can rename this file to
the valid filename automatically.
Closes#10873
* Rename the offline format file properly
* Initial attempt to write a test case
* Revert "Initial attempt to write a test case"
This reverts commit 76ab170.
* Test case and filename fix
* Remove the conditional that's not needed
* Assert the path is inside OUTPUT dir before calling `shutil.move`
* Revert "Assert the path is inside OUTPUT dir before calling `shutil.move`"
This reverts commit e9a0f08.
* Assert the path is inside the DOCROOT before calling `shutil.move`
* Update readthedocs/projects/tasks/builds.py
Co-authored-by: Santos Gallegos <[email protected]>
---------
Co-authored-by: Santos Gallegos <[email protected]>
0 commit comments