Canonical source for Mozilla Foundation Security Advisories. http://www.mozilla.org/security/announce/
Перейти к файлу
Paul McLanahan 907aed8854 Update title handling on import. 2014-07-15 14:58:22 -04:00
security/announce Parse announcement metadata. 2014-07-15 11:04:48 -04:00
LICENSE Add MPL2 License. 2014-07-11 16:32:26 -04:00
README.md Parse announcement metadata. 2014-07-15 11:04:48 -04:00
import_html.py Update title handling on import. 2014-07-15 14:58:22 -04:00
requirements.txt Add requirements file. 2014-07-12 16:03:27 -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)