File README.md changed (mode: 100644) (index a0ba0d9..0c87787) |
... |
... |
or if the script is somewhere in the `$PATH`: |
21 |
21 |
vimdoc2html.py plugin.txt |
vimdoc2html.py plugin.txt |
22 |
22 |
``` |
``` |
23 |
23 |
|
|
24 |
|
The only "advanced" usage is currently enabled by `-r` or `--raw` flag, in which |
|
25 |
|
case instead of outputting complete standalone HTML page only minimal output is |
|
26 |
|
produced. This way after customizing style/template only the contents can be |
|
27 |
|
replaced. |
|
|
24 |
|
#### Options #### |
|
25 |
|
|
|
26 |
|
##### `-o,--output path` option |
|
27 |
|
|
|
28 |
|
Specifies name of the output file. The default behaviour is to derive it from |
|
29 |
|
the name of the input file by appending `.html`. |
|
30 |
|
|
|
31 |
|
##### `-r,--raw` flag |
|
32 |
|
|
|
33 |
|
Instead of outputting complete standalone HTML page, produce only minimal |
|
34 |
|
output without `<html>`/`<head>`/`<body>`/`<pre>` tags. |
|
35 |
|
|
|
36 |
|
##### `-t,--template path` option |
|
37 |
|
|
|
38 |
|
Overrides builtin template. The following sequences will be expanded: |
|
39 |
|
- `{title}` with the name of the source file |
|
40 |
|
- `{style}` with the contents of `vimhelp.css` |
|
41 |
|
- `{html}` with documentation formatted as HTML |
|
42 |
|
|
|
43 |
|
Default template is trivial: |
|
44 |
|
```html |
|
45 |
|
<html> |
|
46 |
|
<head> |
|
47 |
|
<title>{title}</title> |
|
48 |
|
<style>{style}</style> |
|
49 |
|
</head> |
|
50 |
|
<body> |
|
51 |
|
<pre> |
|
52 |
|
{html} |
|
53 |
|
</pre> |
|
54 |
|
</body> |
|
55 |
|
</html> |
|
56 |
|
``` |
28 |
57 |
|
|
29 |
58 |
### Credit ### |
### Credit ### |
30 |
59 |
|
|