Importing documentation from MDN¶
As MDN should not be used for documenting mozilla-central specific code or process, the documentation should be migrated in this repository.
Fortunatelly, there is an easy way to import the doc from MDN to the firefox source docs.
Install https://pandoc.org/
Add a
?raw=1
add the end of the MDN URLRun pandoc the following way:
$ pandoc -t rst https://wiki.developer.mozilla.org/docs/Web/JavaScript?raw\=1 > doc.rst
Verify the rst syntax using ./mach lint -l rst
If relevant, remove unbreakable spaces (rendered with a “!” on Phabricator)
$ sed -i -e 's/\xc2\xa0/ /g' doc.rst