-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Build and API: Backend changes to handle multiple PDFs #10424
Comments
Legacy frontend supportCurrently, builds fail if there are multiple PDFs in the output. Once we start supporting it in the backend (through a feature flag?), we should make sure to note that we have ONLY implemented backend support, meaning that on the API can be used to list these files. While we are adding backend support, the frontend will still only work for 1 PDF file. I think that's okay since we can put a direct reference in that message to a GitHub issue covering frontend support. Meanwhile, we might continue to publish the "first" file of the output (chosen for instance by its alphanumeric order). |
I think implementing a feature flag for internal usage for now is fine. Once we have the frontend UI exposed we can enable to users that have this requirement as a small rollout and then globally.
I'd avoid dealing with both implementation at the same time. That would be pretty confusing and hard to explain to users. |
@humitos @stsewd would be great to have your inputs with regards to whether or not to store information about collected and copied files during the build, maybe in the Is there also an aspect of performing search indexing? From the description:
|
I'm +1 on having that in the DB, and yeah I could see a way of reusing the +1 on extending this to more file types. There is also the question about how these files will be stored, I think it's fine to let users define the name, maybe don't allow nested paths. |
I think the correct way is to store the filenames in the database, yeah 👍🏼 I agree we should not allow nested path. We should only upload and serve I'm not familiarized with |
|
Thanks for the inputs ❤️ This should be great to get started 🏃♂️ |
The |
Going to close this and use the overarching issue to track this work. |
Referencing high-level issue #2045 and especially #2045 (comment)
$READTHEDOCS_OUTPUT/pdf/
for all builders Build: Allow multiple PDFs #10438API changes:
El Proxito changes
I'll add more details once the implementation is open. LMK if there's anything missed here.
WRT @humitos question:
I'm leaning towards saving this data in the DB during build time. That's when we know about which files exist and can save it correctly.
Open question:
The text was updated successfully, but these errors were encountered: