-
Notifications
You must be signed in to change notification settings - Fork 4
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
Guide doesn't work anymore? #2
Comments
Ah, it appears using the # markdown syntax for titles isn't being accepted in the default project setup on readthedocs? In the build log, I saw some warnings about user-guide being referenced in index.rst but the page did not have a title, so it was being skipped. When I updated the title from
the warnings were gone and the page was rendered in the docs: https://dschuermans-rtdtest.readthedocs.io/en/latest/user-guide.html However, as you can see, it did not transform the sub-titles with the ## syntax and kept them as-is. So something is missing somewhere, I just don't know what but I'd guess some kind of config somewhere? |
Hi Dirk, Thanks for you feedback and sorry for the troubles. When I click on links to your readthedocs guide, it takes me to your "stable" version, not the latest. When I do navigate to "latest" it showed your document link in readthedocs. So, I suspect you were looking at an older version when you did not see the link. But with your latest comment, you are saying the title must not have a pound sign. That's odd because my guide has a pound and it is ok. It is possible that they made it more strict since the last time I published but I think we need to do some more troubleshooting to nail that down. Can you retry with the pound sign back in, making sure you are looking at latest revision? Also, can you let me know a good time to look at it is, because it will be hard for me to troubleshoot if you are actively changing it. Thanks! |
Hi Rick, Ah sorry, wasn't expecting a response so quickly 😄 From the build logs before I changed the title from using the pound sign to the underlined version:
|
I've also found this on the RTD docs: I tried adding that line to the conf.py in /docs, but that just fails the build:
|
I'm seeing a pound sign at the end of the lines for your titles. I don't think those should be there. |
I am still seeing the end pound symbols on RTD so I'm wondering if you could force a new build just to be sure its up to date. |
I forced a new build on my RTD project without changing anything and now the build fails with errors. So, it appears my instructions no longer work with the current RTD software. The soonest I would be able to resolve this is later this afternoon but no guarantees. I'll keep you posted. Please let me know if you find a solution sooner. I'll try to build more often from now on. I thought the RTD tooling was stable but apparently not. It has been 19 months since I tested a build, though. |
Okay, I think I managed to get it working:
So the yaml file controls the build over at RTD. Inside the yaml file, we tell that python needs to install whatever is specified in the requirements.txt file. At first, had to do a few attempts on modifying the conf.py: So i'm pretty sure that these changes can be refined further, but my guess is that the CommonMarkParser does not support the # titles Maybe this can help you on your way to get your guide working again? Btw, small sidenote i found on the RTD docs: So maybe if you would've pinned the versions you used at that time, the guide would still work? |
My build problem was this one: readthedocs/readthedocs.org#8616 For older RTD projects like mine, Readthedocs secretly pinned Sphinx to an old version, which does not work with a recently released docutils version. Readthedocs seems to think this is my configuration problem - I needed to pin docutils to match their secretly pinned v1 Sphinx! But I never wanted to be pinned to old Sphinx in the first place and they don't seem to have an answer for that. So I just deleted my RTD project and created it again. So the sphinx pin is gone and now I can see that the latest version does not work either, as you reported. By the way, why did you pin sphinx to < 3? Have you tried leaving that out? If you are following their recommendation to pin, why didn't you use a later one like ==4.3.0? |
No reason really, during my google searches I stumbled upon some other repo that was using sphinx and had that in their requirements file. I just tested it without that line and it still works so... Guess it's not needed 😅 |
I'll make sure it works for me as well and then I'll update this guide to include creating those config files. |
No problem, glad I could be of any help 😄 FYI, the yaml file can be reduced to:
|
Fun fact: it appears the .readthedocs.yaml file is not necessary because requirements.txt is honored without it |
Ah even beter 😃 |
Hey,
Stumbled upon your guide by coincidence and it looked useful and straightforward but I've tried following your guide and it appears it's not working anymore as expected.
The link to user-guide.md is not rendered on readthedocs
Any ideas?
I thought it might be because of a missing .md extension in the index.rst file for the uiser-guide entry, but with or without, the result remains the same...
I got my test repo under https://github.com/dschuermans/rtdtest and https://dschuermans-rtdtest.readthedocs.io/
The text was updated successfully, but these errors were encountered: