Skip to main content

mirror text documentation to MDN

Project description

# DocumentIt

DocumentIt renders [markdown]() syntax to HTML and uploads it to the
[Mozilla Developer Network](https://developer.mozilla.org/)

It is run by:

document-it [options] manifest [manifest] [...]

See `document-it --help` for options. It will render to a local
temporary directory by default but you can specify its output with
`--dest` (although you will need to pass `--user` and `--password` to
POST data).


## Manifests

A manifest is in the form:

relative_file_path page_name
...

The file path is relative to the manifest.

(*TODO: more columns of options may be added in subsequent release to
e.g. specify input format and expand macros)

An example manifest is at
http://k0s.org/mozilla/hg/DocumentIt/file/tip/example.manifest


## TODO

Currently, to POST, DocumentIt assumes `curl` is available on the
path. This is an obvious deficiency and it should be replaced with a
request from (e.g.) `urllib2`.

In addition to http://developer.mozilla.org it would be nice to POST
to `http://wiki.mozilla.org` as well. This would allow staging
documents at `wiki.mozilla.org` and then moving to MDN.

There are other features that would be nice to have:

- inclusion of other files
- inclusion of `--help` documentation

In general the approach taken shouldn't compromise the general
approach that the documentation should be the documentation, not
pre-documentation. This may be achieved by the use of (e.g. regex)
macros. For instance:

append(--help.*$,shell(mozmill --help))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

document_it-0.1.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file document_it-0.1.tar.gz.

File metadata

  • Download URL: document_it-0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for document_it-0.1.tar.gz
Algorithm Hash digest
SHA256 d724ebd6710505aa34cd5a7785b652b59bb9da788d83da7f28301aa4021fba35
MD5 072b59bd64643b25630e089f25a8784d
BLAKE2b-256 582f94ea68001c0ccee4d04b61eedcb865270970a1fc962b2f6ffa01e7a7d331

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page