Canonical source for Mozilla Foundation Security Advisories. http://www.mozilla.org/security/announce/
Перейти к файлу
Paul McLanahan e28a7ecf7d Add script to automatically convert MFSAs and initial results. 2014-07-11 16:21:34 -04:00
security/announce Add script to automatically convert MFSAs and initial results. 2014-07-11 16:21:34 -04:00
README.md Add script to automatically convert MFSAs and initial results. 2014-07-11 16:21:34 -04:00
import-html.py Add script to automatically convert MFSAs and initial results. 2014-07-11 16:21:34 -04:00

README.md

MFSA: Mozilla Foundation Security Advisories

Canonical source for Mozilla Foundation Security Advisories. http://www.mozilla.org/security/announce/

Import Script

import-html.py is a script that will convert the Mozilla Foundation Security Announcement HTML (PHP) files from the SVN repository into markdown snippets suitable for inclusion in bedrock (the new backend for www.mozilla.org).

Usage

Checkout the source files from SVN:

svn checkout http://svn.mozilla.org/projects/mozilla.org/trunk/security/

Then point the script at the directory the above command created:

./import-html.py /some/path/to/security

Full usage options are available in the help:

$ ./import-html.py -h
usage: import-html.py [-h] [-o OUT] DIR

Import and convert security HTML

positional arguments:
  DIR         Path to "security" directory from mozilla.org SVN.

optional arguments:
  -h, --help  show this help message and exit
  -o OUT      Output directory (default: ./security)