Skip to content
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

Document "Edit on" links for multiple projects #7

Open
benjaoming opened this issue Jan 10, 2023 · 5 comments
Open

Document "Edit on" links for multiple projects #7

benjaoming opened this issue Jan 10, 2023 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@benjaoming
Copy link

It's currently complicated to use different repositories for each project and have "Edit on" render correct links. This means being able to add a customizable base URL for each project's repository.

@stsewd
Copy link
Member

stsewd commented Jan 10, 2023

@stsewd stsewd added the documentation Improvements or additions to documentation label Jan 10, 2023
@karlsigidex
Copy link

karlsigidex commented Jan 13, 2023

@stsewd yes I found that workaround, I think the point of this ticket though is to:

  1. Document the fact that "Edit on" links can become broken when using sphinx-multiproject
  2. Document the workaround
  3. Document that for the workaround to actually work the user has to request that the RTD admins set the DONT_OVERWRITE_SPHINX_CONTEXT flag foreach project

@benjaoming
Copy link
Author

The workaround sets conf_py_path such that the path of https://github.com/organization/repo/docs/<docset> is set - but @karlsigidex isn't your use case that you have documentation in several different repositories? Or do you combine all your docs in one repo?

@karlsigidex
Copy link

@benjaoming we have multiple documents per repository.

In order to better control our documentation builds (e.g. os,python version, packages, etc.) we need to use a .readthedocs.yaml configuration file.

Currently, having a single configuration file at the root of the repository is incompatible with multiple documents per repository. The workaround is to use sphinx-multiproject.

@benjaoming
Copy link
Author

Gotcha, sounds like the current workaround is applicable 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants