-
Notifications
You must be signed in to change notification settings - Fork 11
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
Gradle build not working anymore after adding copybutton #30
Comments
I never used gradle to build this before. I build locally using the make files and my local Python env: # Setup env -------------------------------------
pip install -U sphinx
pip install -U -r source/requirements.txt
# or
pip install -U sphinx
pip install -U sphinx-rtd-theme
pip install -U sphinx_copybutton
# Build docs -----------------------------------
make html Or I use this Docker image I maintain: https://github.com/BWibo/sphinx-rtd-docker docker run --rm \
-v $PWD:/docs \
bwibo/sphinx-rtd make html I did some reading and found that the Gradle plugin we are using does not support adding custom extension at the moment.
However, according to the issue the workaround you tried for getting the copybutton to work on the RTD platform seems to work here. I just tried that. The build is running with some warnings but seems to complete:
The built HTML seems fine, but there is no copy button. So this fix is just partially working. Do we need a Gradle build for this or is building locally as described above acceptable as well?
|
Thanks for your in-depth evaluation, @BWibo. @yaozhihang, what do you think, can we get rid of the Gradle integration? |
The Gradle Plugin is currently not used in any pipelines. So yes, we can get rid of it. The Docker image of @BWibo is very nice alternative allowing us build the docs quickly in local. |
Ok, great, no objection from my side. |
OK, I'll add a PR to drop the Gradle stuff then. One question: Is |
Good question, I think we mainly used the |
Maybe we could add a |
👍 I'll add this to the PR. I'm wondering if github is going to pickup RST or MD as landing page then. |
I locally installed the Sphinx copybutton extension using
pip install sphinx-copybutton
.However, when running the Gradle
build
task, it fails with the following error messages:The text was updated successfully, but these errors were encountered: