1# Generate libwebp Container Spec Docs from Text Source 2 3HTML generation requires [kramdown](https://kramdown.gettalong.org/), easily 4installed as a [rubygem](https://rubygems.org/). Rubygems installation should 5satisfy dependencies automatically. 6 7HTML generation can then be done from the project root: 8 9```shell 10$ kramdown doc/webp-container-spec.txt --template doc/template.html > \ 11 doc/output/webp-container-spec.html 12``` 13 14kramdown can optionally syntax highlight code blocks, using 15[CodeRay](https://github.com/rubychan/coderay), a dependency of kramdown that 16rubygems will install automatically. The following will apply inline CSS 17styling; an external stylesheet is not needed. 18 19```shell 20$ kramdown doc/webp-lossless-bitstream-spec.txt \ 21 --template doc/template.html \ 22 -x syntax-coderay --syntax-highlighter coderay \ 23 --syntax-highlighter-opts "{default_lang: c, line_numbers: , css: style}" \ 24 > doc/output/webp-lossless-bitstream-spec.html 25``` 26 27Optimally, use kramdown 0.13.7 or newer if syntax highlighting desired. 28