diff options
author | Przemyslaw Skibinski <inikep@gmail.com> | 2016-11-10 16:21:17 (GMT) |
---|---|---|
committer | Przemyslaw Skibinski <inikep@gmail.com> | 2016-11-10 16:21:17 (GMT) |
commit | a340b734bad85dcb26eb8ebfda71847db9a5857f (patch) | |
tree | 435fbd5583d278eecc014a31d3f1650a4faa23e4 /contrib/gen_manual/README.md | |
parent | 2278d1f02f74e8cfdb21248ff1ca347efbde53a1 (diff) | |
download | lz4-a340b734bad85dcb26eb8ebfda71847db9a5857f.zip lz4-a340b734bad85dcb26eb8ebfda71847db9a5857f.tar.gz lz4-a340b734bad85dcb26eb8ebfda71847db9a5857f.tar.bz2 |
added contrib/gen_manual
Diffstat (limited to 'contrib/gen_manual/README.md')
-rw-r--r-- | contrib/gen_manual/README.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/gen_manual/README.md b/contrib/gen_manual/README.md new file mode 100644 index 0000000..3d146d4 --- /dev/null +++ b/contrib/gen_manual/README.md @@ -0,0 +1,31 @@ +gen_manual - a program for automatic generation of zstd manual +============================================================ + +#### Introduction + +This simple C++ program generates a single-page HTML manual from `lz4.h`. + +The format of recognized comment blocks is following: +- comments of type `/*!` mean: this is a function declaration; switch comments with declarations +- comments of type `/**` and `/*-` mean: this is a comment; use a `<H2>` header for the first line +- comments of type `/*=` and `/**=` mean: use a `<H3>` header and show also all functions until first empty line +- comments of type `/*X` where `X` is different from above-mentioned are ignored + +Moreover: +- `LZ4LIB_API` is removed to improve readability +- `typedef` are detected and included even if uncommented +- comments of type `/**<` and `/*!<` are detected and only function declaration is highlighted (bold) + + +#### Usage + +The program requires 3 parameters: +``` +gen_manual [lz4_version] [input_file] [output_html] +``` + +To compile program and generate lz4 manual we have used: +``` +make +./gen_manual.exe 1.7.3 ../../lib/lz4.h zstd_manual.html +``` |