You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would I share a Requirements file (i.e. requirements.txt) and Sphinx configuration file (i.e. conf.py) between multiple repositories, each with their own hosted Read the Docs website?
I'm planning on maintaining something on the order of 50 or 100 repositories for an enterprise level non-profit organization, and would like each repository to share the same docs requirements and parameterized Sphinx configuration for maintainability.
My plan was to have a parent repo that individual repository maintainers in the organization install as a dev-time dependency. In this repo, I'd have the requirements.txt for the docs, and parent conf.py file with the bulk of Sphinx configuration.
Options
Git Submodules
I see you support Git Submodules. This might be one approach that could work.
Host Parent Repo on PyPi
I could also host the parent repo as a dependency on PyPi. Then each child repo has this as a dependency in their requirements.txt and their conf.py can import and exec and imported common configuration (see this StackOverflow).
Any recommendations or thoughts on either option, or a different option?
Remote Requirements File
Also, it might be nice if you supported a remote URL to a requirements file.
If I could provide a link to the requirements.txt in this parent GitHub repository, then that would solve 1-half of my desire to share what's needed for the docs site.
The text was updated successfully, but these errors were encountered:
gbroques
changed the title
Question: Sharing Requirements and conf.py Between Multiple Repos
Sharing Requirements and conf.py Between Multiple Repos
May 23, 2020
Details
How would I share a Requirements file (i.e.
requirements.txt
) and Sphinx configuration file (i.e.conf.py
) between multiple repositories, each with their own hosted Read the Docs website?I'm planning on maintaining something on the order of 50 or 100 repositories for an enterprise level non-profit organization, and would like each repository to share the same docs requirements and parameterized Sphinx configuration for maintainability.
My plan was to have a parent repo that individual repository maintainers in the organization install as a dev-time dependency. In this repo, I'd have the
requirements.txt
for the docs, and parentconf.py
file with the bulk of Sphinx configuration.Options
Git Submodules
I see you support Git Submodules. This might be one approach that could work.
Host Parent Repo on PyPi
I could also host the parent repo as a dependency on PyPi. Then each child repo has this as a dependency in their
requirements.txt
and theirconf.py
can import andexec
and imported common configuration (see this StackOverflow).Any recommendations or thoughts on either option, or a different option?
Remote Requirements File
Also, it might be nice if you supported a remote URL to a requirements file.
If I could provide a link to the
requirements.txt
in this parent GitHub repository, then that would solve 1-half of my desire to share what's needed for the docs site.Related Issues
Read the Docs Project URL
The text was updated successfully, but these errors were encountered: