Skip to content

Failed to build chinese docs: Build output directory for format "pdf" contains multiple files ... #10132

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

Closed
jhj0411jhj opened this issue Mar 9, 2023 · 5 comments
Labels
Needed: more information A reply from issue author is required Support Support question

Comments

@jhj0411jhj
Copy link

Details

Expected Result

A description of what you wanted to happen

I use readthedocs for our github project openbox. The english version docs has no problem. The chinese version docs fails to build since Feb 9, 2023 (last successful build time is Jan 30, 2023. first failed build time is Feb 9, 2023. Maybe there are some updates in readthedocs).

Then I tried to build the chinese docs from the commit that triggered a successful build in the past, but the build process failed.

Actual Result

A description of what actually happened

Error message:

Build output directory for format "pdf" contains multiple files and it is not currently supported. Please, remove all the files but the "pdf" your want to upload.
@humitos humitos added the Support Support question label Mar 9, 2023
@humitos
Copy link
Member

humitos commented Mar 9, 2023

Hi! This is duplicate of #10015. The issue here is that your latexmk command is failing. The error message is wrong and it will be fixed in the next deploy.

You need to fix your PDF generation for the build to succeed or disable it.

@humitos humitos added the Needed: more information A reply from issue author is required label Mar 9, 2023
@jhj0411jhj
Copy link
Author

@humitos Thanks. I have tried to disable PDF generation in readthedocs project settings (and EPUB is enabled). However, I found in the build process, cat latexmkrc and latexmk -r latexmkrc -pdf -f -dvi- -ps- -jobname=open-box-zh-cn -interaction=nonstopmode were still executed, so the build was failed.

@jhj0411jhj
Copy link
Author

@humitos Thanks. I have tried to disable PDF generation in readthedocs project settings (and EPUB is enabled). However, I found in the build process, cat latexmkrc and latexmk -r latexmkrc -pdf -f -dvi- -ps- -jobname=open-box-zh-cn -interaction=nonstopmode were still executed, so the build was failed.

I disabled PDF generation and a new build was triggered automatically, then failed in building PDF. Should I push a new commit to my github repo and trigger a new build process, so disabling PDF generation will take effect?

@humitos
Copy link
Member

humitos commented Mar 9, 2023

Your project is using a config file, so you have to remove the PDF format from https://github.com/PKU-DAIR/open-box/blob/master/.readthedocs.yml#L18

@jhj0411jhj
Copy link
Author

@humitos Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needed: more information A reply from issue author is required Support Support question
Projects
None yet
Development

No branches or pull requests

2 participants