-
-
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
How to use a .readthedocs.yaml config file with subprojects? #8234
Comments
Hi, currently having several config files in the same repo isn't supported. We were discussing having an env var that users could add to read the config file from that location, so they could use the same repo imported twice. |
Ok. Should I submit a PR to clarify the docs in this respect? They are very pro-config file but should mention that the config file doesn't support subprojects. |
Sure, but I'd use "It doesn't support multiple docs projects in the same repo" or "it doesn't support using multiple config files in the same repo", as subprojects sounds more like git subprojects, which we do support. |
Ok, I can make this clear. Though I will note there's an entire section titled Subprojects, which ought to provide context. |
Yeah, Read the Docs uses the concept of "Project" and "Sub-project". Git, on the other hand, uses "Sub-module". |
@stsewd just to make sure - while you say that one repo can't support multiple config files there's no way to specify multiple projects in one config file, right? Conceptually that is what I expected when I have a project that has a subproject. |
Yeah that's it, you can import the same project, but can't use a different config file. |
@qlyoung did you ever open the separate issue for this? |
@KennethNielsen I did not, and I didn't submit a pull request either. |
Ok. I think I will file it as a feature request then. I don't have the bandwidth to attempt a PR, but it can't hurt to raise it as a feature request. |
This feature is in our roadmap, so hopefully will be implemented in the next months. |
Is this still planned? |
I believe this is a question and not a bug, though it could constitute a docs bug.
Details
I'm reading through the documentation on using a config file for RTD available here:
https://docs.readthedocs.io/en/stable/config-file/v2.html#sphinx
My project's docs are composed of a main project and one subproject. The main project corresponds to path
doc/user
and the subproject corresponds to pathdoc/developer
within the repository; we maintain two separate manuals, one for the user docs and one for development docs. Presently I have this set up properly using the RTD web interface and things work swimmingly. However, I'd like to switch to a config file for various reasons.In the RTD docs, I don't see how I could express subprojects in the config file.
I apologize if I missed the answer in the docs or in a previous issue.
The text was updated successfully, but these errors were encountered: