-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Build: fail build if conf.py file doesn't exist #10627
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
Comments
yeah, im also seeing this.... seems like the intro doc is out of date, as another issue #10626 is also happening
|
Ok, I got it working using your clue above, moved files around:
so the new tree looks like
|
I got it, sphinx quickstart build puts conf.py in folder source, while in .readthedocs.yaml I had docs/conf.py instead of docs/source/conf.py. It seems the config file was not found during the build. It would be nice if we could get a warning when the config file is not found. |
+1 on this, looks like we are currently just appending our custom overrides even if the file doesn't exist readthedocs.org/readthedocs/doc_builder/backends/sphinx.py Lines 292 to 294 in f4efd14
|
This is already deprecated #2483 and it will be completely removed on August 28th. Read more about this at https://blog.readthedocs.com/doctool-without-configuration-file/ |
@humitos looks like that's only deprecating projects that don't explicitly set their conf.py file, projects that have it set, but it doesn't point to an existing location aren't being included in that deprecation. Since we open the file with mode |
I'll check that case. We should remove it if it's not contemplated in that PR already. |
@stsewd I added a new commit |
Details
I am trying to build the docs for the first time and I am receiving the following error:
root file /home/docs/checkouts/readthedocs.org/user_builds/gestrec/checkouts/latest/docs/index.rst not found
The docs build locally without any warnings.
Expected Result
docs build successfully, just like locally
Actual Result
I got the above error. I noticed that the filepath in the error is ".../latest/docs/index.rst" and all my source files are in folder docs/source, so I set the following variables to try and fix the issue:
I also tried:
it did not fix the issue.
I suspect it is somehow not picking up my conf.py file, since I am also getting an error
/home/docs/checkouts/readthedocs.org/user_builds/gestrec/checkouts/latest/docs/source/reference.rst:4: ERROR: Unknown directive type "automodule".
which I'm not getting locally, as I have the extension defined in conf.pyhelp plz
The text was updated successfully, but these errors were encountered: