-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Compatible links between GitHub and Sphinx... #4409
Comments
I've come across the same, and I have no idea how to resolve it. |
I came here from the Sphinx mailing list: https://groups.google.com/forum/#!topic/sphinx-users/ZoYI_-ZKMDw You could try to make a little Sphinx extension with a I've used a similar thing there: Note that my example does several more things, you would only need a part of the code. BTW, with Sphinx 2.0 you will have to use |
Thanks for the response @mgeier , but I tried to make it and I don't get it. Could you help us ?, please. |
I've already tried to implement this, and it turned out to be more complicated than I thought ... I'm currently also stuck, I'm waiting for help from there: https://groups.google.com/forum/#!topic/sphinx-dev/bNW2Tc4hhOA |
Ok, I'll pay attention. I do not understand how this has not been corrected yet, it is very very basic to maintain compatibility between Github and Readthedocs. And it's as simple as replacing .rst with .html, but automatically. BTW, where I must change to " refdomain='std' ". In conf.py? |
OK, I got an answer from the Sphinx mailing list and with its help I implemented this: spatialaudio/nbsphinx#173 If you don't mind the additional dependencies, you can just install and activate If you don't want to install
Well, I don't think this is a bug, so I guess it will never be "corrected".
No. I was talking about the case if you take my code. You would have to change it there. And this is only relevant for Sphinx 2.0, which will be released in the far-ish future. |
I tried to install it on readthedocs without success, could you help me do it? Thanks in advance. |
@lrmoreno007 Did you follow https://nbsphinx.readthedocs.io/en/latest/usage.html#Automatic-Creation-of-HTML-and-PDF-output-on-readthedocs.org? Does it work locally? |
Yes I follow the instructions:
This compile OK in ReadTheDocs
I get this error:
I'm not working locally, I'm working in this repo: https://github.com/lrmoreno007/ESP8266-Arduino-Spanish |
Ok, now it has been installed I made a mistake by not putting the quotes: I will try now and I will comment. |
|
WOW!!!! It's partially working!! Work fine with something like this:
OK ---> https://github.com/lrmoreno007/ESP8266-Arduino-Spanish/blob/master/doc/reference.rst#serial But don't work with:
OK ---> https://github.com/lrmoreno007/ESP8266-Arduino-Spanish/blob/master/doc/faq/a01-espcomm_sync-failed.rst#introducci%C3%B3n |
The second one doesn't work because there is no section named "Generic ESP8266 Modules". It should work if you try this:
|
OMG!!! You are the boss!! I was determined that it was a problem with "../" and had tried a thousand ways. Now everything work fine. Thank you very much for your help, without you I could not have solved it. |
I'm glad I could help! Have fun! |
Referenced PR isn't merged yet. |
Merged now. |
This work like a charm! Close the issue. Regards. |
Hello, I'm trying to fix some links in the documentation of this project (and my translation to Spanish) and I can't find a way to make the links compatible on GitHub and Sphinx (ReadTheDocs).
=====================================
If I use this method:
´´link to readme <esp8266/readme.rst>´´
The links work perfectly on GitHub, but don't work on Sphinx.
Example in this project: Click in the link "Generic ESP8266 modules"
https://github.com/esp8266/Arduino/blob/master/doc/faq/a01-espcomm_sync-failed.rst
https://arduino-esp8266.readthedocs.io/en/latest/faq/a01-espcomm_sync-failed.html
========================================
If I use this method:
: doc: `link to readme <esp8266wifi/readme>`
The links work perfectly on Sphinx, but don't work on GitHub.
Example in this project: Click in the link "ESP8266WiFi library documentation"
https://github.com/esp8266/Arduino/blob/master/doc/libraries.rst
https://arduino-esp8266.readthedocs.io/en/latest/libraries.html
===============================================
Can someone help me to fix it?
Regards.
P.D.: Change this " ´ " for " ` " in my examples.
The text was updated successfully, but these errors were encountered: