annotate README.txt @ 26:ce7cbf3e08e1 default tip

fix bug with local files, index.html, and manifest order
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 04 Aug 2011 18:43:12 -0700
parents 0ce6b501f62d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
62bd66061329 add a helpful help message
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
1 # DocumentIt
0
665b2ae2ecc6 stub project for DocumentIt
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2
25
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
3 DocumentIt renders [markdown]() syntax to HTML and uploads it to the
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
4 [Mozilla Developer Network](https://developer.mozilla.org/)
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
5
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
6 It is run by:
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
7
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
8 document-it [options] manifest [manifest] [...]
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
9
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
10 See `document-it --help` for options. It will render to a local
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
11 temporary directory by default but you can specify its output with
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
12 `--dest` (although you will need to pass `--user` and `--password` to
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
13 POST data).
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
14
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
15
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
16 ## Manifests
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
17
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
18 A manifest is in the form:
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
19
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
20 relative_file_path page_name
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
21 ...
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
22
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
23 The file path is relative to the manifest.
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
24
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
25 (*TODO: more columns of options may be added in subsequent release to
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
26 e.g. specify input format and expand macros)
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
27
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
28 An example manifest is at
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
29 http://k0s.org/mozilla/hg/DocumentIt/file/tip/example.manifest
21
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
30
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
31
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
32 ## TODO
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
33
25
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
34 Currently, to POST, DocumentIt assumes `curl` is available on the
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
35 path. This is an obvious deficiency and it should be replaced with a
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
36 request from (e.g.) `urllib2`.
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
37
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
38 In addition to http://developer.mozilla.org it would be nice to POST
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
39 to `http://wiki.mozilla.org` as well. This would allow staging
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
40 documents at `wiki.mozilla.org` and then moving to MDN.
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
41
0ce6b501f62d first real version
Jeff Hammel <jhammel@mozilla.com>
parents: 21
diff changeset
42 There are other features that would be nice to have:
21
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
43
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
44 - inclusion of other files
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
45 - inclusion of `--help` documentation
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
46
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
47 In general the approach taken shouldn't compromise the general
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
48 approach that the documentation should be the documentation, not
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
49 pre-documentation. This may be achieved by the use of (e.g. regex)
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
50 macros. For instance:
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
51
10c5e6d11ef8 add notes on future directions
Jeff Hammel <jhammel@mozilla.com>
parents: 9
diff changeset
52 append(--help.*$,shell(mozmill --help))