Closed Bug 1619381 Opened 5 years ago Closed 5 years ago

fix tables in Markdown documentation

Categories

(Firefox :: Messaging System, task, P1)

task

Tracking

()

RESOLVED FIXED
Firefox 76
Iteration:
78.1 - May 4 - May 17
Tracking Status
firefox75 --- wontfix
firefox76 --- wontfix
firefox77 --- wontfix
firefox78 --- fixed

People

(Reporter: dmosedale, Assigned: andreio)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

Our Markdown documentation has a number of files with tables in them (eg data_dictionary.md). The markdown parser used by mach doc doesn't support tables, so they currently show up broken on firefox-source-docs.mozilla.org.

The workaround for people who to view them currently is simply to give them a link to the source files in searchfox, but that's awfully ugly.

It would be nice if they rendered correctly. I've set this to currently depend on another bug which swaps out recommonmark in mach doc for a fork called sphinx-markdown-parser. However, if that turns out to be too much work, we could try another strategy, eg using eval_rst to embed rst tables in the Markdown or converting the tables to raw HTML, as suggested in https://github.com/readthedocs/recommonmark/issues/103

Assignee: nobody → andrei.br92
Iteration: --- → 76.1 - Mar 9 - Mar 22
Priority: -- → P1
Target Milestone: --- → Firefox 76

dmose, ./mach doc doesn't seem to support html (converting the table from md table format to html table) or eval_rst.
Should we swap .md for .rst instead? Tested it out and any "online md to rst" tool does a decent job. Tables still won't work they need to be done manually.

Flags: needinfo?(dmose)

searchfox suggests that eval_rst does seem to work in at least one other place in the tree. I verified, and https://firefox-source-docs.mozilla.org/toolkit/components/glean/index.html looks good, and if you click the "view source" link", it shows that some of the stuff you see is built from eval_rst.

Flags: needinfo?(dmose)

eval_rst examples in web-platform-tests seem to be working, such as https://firefox-source-docs.mozilla.org/web-platform/index.html

Attachment #9133664 - Attachment is obsolete: true
Iteration: 76.1 - Mar 9 - Mar 22 → 76.2 - Mar 23 - Apr 5
Iteration: 76.2 - Mar 23 - Apr 5 → 77.1 - Apr 6 - Apr 19
Iteration: 77.1 - Apr 6 - Apr 19 → 78.1 - May 4 - May 17
Pushed by aoprea@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a291f439f35a Fix tables in Markdown documentation browser/components/newtab r=nanj
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED

Since the status are different for nightly and release, what's the status for beta?
For more information, please visit auto_nag documentation.

Has Regression Range: --- → yes
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: