fix tables in Markdown documentation
Categories
(Firefox :: Messaging System, task, P1)
Tracking
()
People
(Reporter: dmose, Assigned: andreio)
References
(Depends on 1 open bug, Blocks 1 open bug, Regression)
Details
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
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
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.
| Reporter | ||
Comment 2•1 year ago
|
||
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.
| Reporter | ||
Comment 3•1 year ago
•
|
||
eval_rst examples in web-platform-tests seem to be working, such as https://firefox-source-docs.mozilla.org/web-platform/index.html
| Assignee | ||
Comment 4•1 year ago
|
||
| Assignee | ||
Comment 5•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Pushed by aoprea@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a291f439f35a Fix tables in Markdown documentation browser/components/newtab r=nanj
Comment 7•1 year ago
|
||
| bugherder | ||
Since the status are different for nightly and release, what's the status for beta?
For more information, please visit auto_nag documentation.
Updated•1 year ago
|
Description
•