-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Why the option build.jobs.post_build
in the .readthedocs.yaml
doesn't effect the published page?
#9172
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
Comments
build.jobs.post_build
in the .readthedocs.yaml
doesn't take effect?build.jobs.post_build
in the .readthedocs.yaml
doesn't effect the published page?
I believe this is behavior due to a not-yet documented function of our builders. After the Sphinx build is complete (but before We haven't decided yet if this path should be static, if the build process should only copy files after the So, what you're trying is technically possible, but not yet supported. |
I would also greatly benefit from this, certain elements cannot be fixed with JavaScript only. |
I found a way to hack this that could be useful as an temporary workaround for now: build:
os: ubuntu-22.04
tools:
python: "3.10"
jobs:
post_build:
# This is a small hack to avoid this issue:
# https://github.com/readthedocs/readthedocs.org/issues/9179
- cp -r -v public/* ../../artifacts/${READTHEDOCS_VERSION}/sphinx/ Note that in In this particular case, I'm just adding a bunch of extra HTML files that I need. |
@humitos - is there a way to output the list of files under |
@sachin-suresh-rapyuta yes, you can do: build:
jobs:
post_builld:
- find ../../artifacts/${READTHEDOCS_VERSION}/sphinx/ |
@humitos, All I need is to download my custom PDF from the bottom left flyer in ReadtheDocs. I tried to get this using the below code, but ended up with the error:
The entire web page of HTML is broken with elements taken from my custom PDF style. Can you please help me with the right command to just copy and download the custom PDF? |
@sachin-suresh-rapyuta please, open a new issue explaining what you need and what is not working as expected. It seems your use case is not related to this one |
I'm going to remove this issue from our roadmap, but we'll address this in #9179 instead. We just need to remove the intermediate path for the build output, and I believe it should be safe at this point. |
I want to add comments to my Read the Docs.
And I tried adding the
sphinx-comments
extension (uttrances
).But after my configuration, I can't see the result expected.
While you're browsing
zhyantao.github.io
>view the source code
, you can always find the following source code:Here are some of the key points I think:
.readthedocs.yaml
)scripts/fix-comments.py
)What I do in the
fix-comments.py
is just replacediv.section
todiv>section
, but that doesn't take effect.The easiest way I can verify this is by typing the following code on the console:
Then, wait a moment, and you'll see it works. I can see comments block in the web page.
The text was updated successfully, but these errors were encountered: