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

Missing information in CONTRIBUTING.rst #211

Open
sgpearse opened this issue Dec 18, 2024 · 2 comments
Open

Missing information in CONTRIBUTING.rst #211

sgpearse opened this issue Dec 18, 2024 · 2 comments

Comments

@sgpearse
Copy link

This has been reported before in #48, but I'm still struggling to get a local instance of a readthedocs server running in docker. Like other users have done in the past, I need a local instance to debug a broken build.

docker run --rm -t -i readthedocs/build:latest /bin/bash

followed by

cd ~docs
git clone https://github.com/readthedocs/template
cd template
make html

Results in the missing dependencies (sphinx, sphinx-build) problem reported in #48. @humitos reports that the following will install these missing dependencies, however these commands are outdated. For example, there is no python binary in readthedocs/build:latest. I've tried using python3 and venv in lieu of virtualenv, but that requires an apt install python3.12-venv which has permission issues.

python -m virtualenv --no-download --no-site-packages myenv
source ./myenv/bin/activate
pip install --use-wheel --upgrade Pygments==2.2.0 setuptools<40 docutils==0.13.1 mock==1.0.1 pillow==2.6.1 alabaster>=0.7<0.8!=0.7.5 commonmark==0.5.4 recommonmark==0.4.0 mkdocs==0.15.0
sphinx<2 sphinx-rtd-theme<0.3 readthedocs-sphinx-ext<0.6

Is there an updated procedure on how one can get a local docker container running the RTD build system so I can debug why my build is failing?

@humitos
Copy link
Member

humitos commented Dec 19, 2024

We should probably delete the CONTRIBUTING file. We have this note in the readme:

These images are only for internal usage on Read the Docs project. They are not meant to build your documentation locally, to replace Read the Docs' service or to emulate it locally.

@humitos
Copy link
Member

humitos commented Dec 19, 2024

Is there an updated procedure on how one can get a local docker container running the RTD build system so I can debug why my build is failing?

It's not easy, no. You can try spinning up the development environment following https://docs.readthedocs.io/en/latest/development/install.html; which is not trivial. It's not worth the effort just to debug a build.

You should be able to debug your build on Read the Docs itself by running custom commands. See https://docs.readthedocs.io/en/latest/build-customization.html

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

No branches or pull requests

2 participants