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

Update readme.rst #4131

Merged
merged 7 commits into from
Mar 19, 2018
Merged

Update readme.rst #4131

merged 7 commits into from
Mar 19, 2018

Conversation

jonhp
Copy link
Contributor

@jonhp jonhp commented Jan 10, 2018

fix broken link to file system flash layout

fix broken link to file system flash layout
@Rotzbua
Copy link
Contributor

Rotzbua commented Jan 13, 2018

the link is correct, no change required

@jonhp
Copy link
Contributor Author

jonhp commented Jan 13, 2018

If I go to: https://arduino-esp8266.readthedocs.io/en/latest/ota_updates/readme.html
and then click on the "flash layout" link in "Keep in mind that the File system and EEPROM for example needs space too (one time) see flash layout." which is https://arduino-esp8266.readthedocs.io/en/latest/filesystem.rst#flash-layout
then I get a page that says
\ SORRY / \ / \ This page does / ] not exist yet. [ ,'|
That is not the result that I expect.
If I manually change the ".rst" to ".html" then the page displays as I would expect.
Maybe my proposed fix was incorrect, but I have now fully demonstrated the problem which is repeatable.

@Rotzbua
Copy link
Contributor

Rotzbua commented Jan 13, 2018

You observed correctly that rst != html, but you look at the rendered page. The source are .rst files which are rendered by a compiler and are served as static html to an server.

So the source files are correct with rst, so it seems there is something wrong with the compiler or settings. Well some month ago @igrr changed all files from .md to .rst and I guess he forgot to change the configuration of readthedocs.io .

@pfeerick
Copy link
Contributor

The RST file you modified should have :ref:`Flash layout` instead of `flash layout <../filesystem.html#flash-layout>`_ and then it should be fine, as it should then find the matching label and serve it properly. (Link to an external RST label).

jonhp added 2 commits January 16, 2018 15:02
my second shot at fixing the external page link for "flash layout". It appears that the on-page link to "Update Process - Memory View" was broken (not sure if I got this one right or not).
@jonhp
Copy link
Contributor Author

jonhp commented Jan 16, 2018

I took a shot at fixing this again and an on-page link. Not sure if I am any closer and not sure how to test these fixes either (hints anyone?).

@pfeerick
Copy link
Contributor

pfeerick commented Jan 17, 2018

AFAIK, that looks right. If you really want to validate it without waiting to see if someone can check it, it may be possible to follow the instructions here to get a test environment running, but going by the explicit external links reference, it seems like it should work ('cheat sheet' that I refer to whenever I need to learn more about reStructuredText formatting and markup). For straight 'markdown' formatting, you can view it on github, but some of the reStructuredText stuff needs to be processed, so can't just be shown as is.

@devyte
Copy link
Collaborator

devyte commented Mar 2, 2018

Alright, if this is broken, it won't be worse than it already is, so I'm merging. If it's still broken afterwards, please take another shot at fixing the links.

@devyte devyte merged commit d112dfa into esp8266:master Mar 19, 2018
@lrmoreno007
Copy link
Contributor

" :ref: " is other way to make cross reference not discussed in #4409 . This need a label in the referenced file ("/doc/filesystem.rst") http://www.sphinx-doc.org/es/stable/markup/inline.html .

EXAMPLE:
In the file filesystem.rst:


Filesystem
==========

.. _flash-layout:

Flash layout
------------

Even though file system is stored on the same flash ......................

In the file /doc/ota_updates/readme.rst:


.......... EEPROM for example needs space too (one time) see :ref:`flash-layout`.

...........

But this work fine in Sphinx (ReadTheDocs) but not in Github.

@lrmoreno007
Copy link
Contributor

And with flash layout <../filesystem.html#flash-layout>_ , will work too in Sphinx but not in Github.

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

Successfully merging this pull request may close these issues.

5 participants