tools/docs/docs/mdn-import.rst
author Sylvestre Ledru <sledru@mozilla.com>
Mon, 18 Nov 2019 21:12:51 +0000
changeset 502498 93c199bb39288eb84cec5d26723a400263000f59
parent 502308 51ff4505135988dd5d10036c21d2c815bff30830
child 503636 6afb03050972ea0c652b39321426fdcbad9f5be2
permissions -rw-r--r--
Bug 1594925 - Follow up on the doc documentation r=ahal Differential Revision: https://phabricator.services.mozilla.com/D53395

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.

1. Install https://pandoc.org/

2. Add a ``?raw=1`` add the end of the MDN URL

3. Run pandoc the following way:
   ``pandoc -t rst https://wiki.developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_build/Linux_and_MacOS_build_preparation\?raw\=1  > my-file.rst``