diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-11-14 21:21:44 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-11-14 22:35:56 -0800 |
commit | d7d42b732e4b7c445dbcdef2471b641702ccf4e8 (patch) | |
tree | 2c735ffa65c219478840ff5e863f86c3fe9ba971 | |
parent | 6a5af6b00a3137a29045303d11d277a3b8999cbe (diff) |
man: Add CSS for html docs
Add new file, manpage.css. Install it into the same dir as the html docs.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r-- | man/html.cmake | 8 | ||||
-rw-r--r-- | man/html.xsl | 1 | ||||
-rw-r--r-- | man/manpage.css | 51 |
3 files changed, 60 insertions, 0 deletions
diff --git a/man/html.cmake b/man/html.cmake index 31cd634..dbb27be 100644 --- a/man/html.cmake +++ b/man/html.cmake @@ -28,6 +28,7 @@ set(html_out_dir ${CMAKE_BINARY_DIR}/doc/html) file(MAKE_DIRECTORY ${html_out_dir}) set(html_outputs + ${html_out_dir}/manpage.css ${html_out_dir}/waffle_attrib_list.3.html ${html_out_dir}/waffle_config.3.html ${html_out_dir}/waffle_context.3.html @@ -83,6 +84,13 @@ waffle_add_html(3 waffle_window) waffle_add_html(3 waffle_x11_egl) waffle_add_html(7 waffle) +add_custom_command( + OUTPUT ${html_out_dir}/manpage.css + DEPENDS manpage.css + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} + COMMAND cp manpage.css ${html_out_dir}/manpage.css + ) + add_custom_target(html ALL DEPENDS ${html_outputs} diff --git a/man/html.xsl b/man/html.xsl index 0d83eba..f741353 100644 --- a/man/html.xsl +++ b/man/html.xsl @@ -8,6 +8,7 @@ <xsl:param name="citerefentry.link">1</xsl:param> <xsl:param name="funcsynopsis.style">ansi</xsl:param> + <xsl:param name="html.stylesheet">manpage.css</xsl:param> <!-- ! Generate urls for citations. diff --git a/man/manpage.css b/man/manpage.css new file mode 100644 index 0000000..4d98540 --- /dev/null +++ b/man/manpage.css @@ -0,0 +1,51 @@ +body, table { + font-family: "Bitstream Vera Sans", "DejaVu Sans", Tahoma, sans-serif; + color: #333333; + background: white; + font-size: 12px; + line-height: 16px; +} + +h1, h2, h3, h4, h5 { + padding: 0; + margin: 0; + font-weight: bold; +} +h1 { + font-size: 36px; + line-height: 40px; +} +h2 { + font-size: 24px; + line-height: 28px; + margin-bottom: 8px; + padding-top: 8px; +} +h3 { + font-size: 16px; + line-height: 20px; + margin-bottom: 8px; + padding-top: 8px; +} + +h4 { + font-size: 12px; + line-height: 16px; +} + +code { + font-family: "Bitstream Vera Sans Mono", "DejavVu Sans Mono", monospace; +} + +.funcsynopsis, .funcprototype, .funcsynopsis-table { + font-family: "Bitstream Vera Sans Mono", "DejavVu Sans Mono", monospace; +} + +.type, .function { + font-family: "Bitstream Vera Sans Mono", "DejavVu Sans Mono", monospace; + font-weight: bold; +} + +/* + * vim:et:sw=2:ts=2: + */ |