-
Notifications
You must be signed in to change notification settings - Fork 10
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
rosindex landing page is garbled version of README.md. How to replace with rosdoc2 generated page? #65
Comments
This issue should really be in rosindex. rosdoc2 uses python and the myst md parser, while rosindex uses ruby, jekyll and the "red carpet" parser (though that might need to switch to kramdown since "red carpet" support is deprecated in jekyll. So your literal request, "make them the same" is not really feasible. I think though that your issue is that the formatting in rosindex does not match what you want toward the end, with the numbered list in ## About Timestamps. Right? Markdown is not a well-defined specification, so there is no "right" way to do things. But generally, numbered lists are created like:
NOT
Both seem to work here in Google markdown, but the period format is more normal IIUC.
Many markdown implementations will merge that into a single paragraph, as you can see in rosindex. I've seen different specs on how to prevent that, one says "add a blank line" another says "add two spaces at the end of the line". I did a rosindex run where I replaced the parentheses with periods at the end of your README, like so:
You can see the result of that (temporarily) at http://test.caspia.com/p/event_camera_py/ The numbered list is now separated. You could also have accomplished the same thing by adding two spaces at the end of the numbered lines to force new lines. Inconsistencies in markdown are a pain, and I wish rosindex was in python instead of ruby/jekyll. But that is where we are at, and that is not likely to change. |
@rkent Thank you very much for the fast, detailed, and very helpful response! |
The landing page of my ros package is a somewhat disfigured version of the README.md that is on github (note the numbered items 1), 2) etc at the bottom under the "About timestamps" heading are all gone and merged into one blob).
I had hoped that somehow I could get the page generated by rosdoc2 to show up instead of the translated README.md.
Note: this issue is a follow-up to issue #58
The text was updated successfully, but these errors were encountered: