diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index 0191add030..f451204854 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -2923,6 +2923,18 @@ ninja install + + + + + Controls which CSS stylesheet is used. The default + is simple. If set to website, + the HTML documentation will reference the stylesheet for postgresql.org. + + + + diff --git a/doc/src/sgml/meson.build b/doc/src/sgml/meson.build index 539865da8d..c6d77b5a15 100644 --- a/doc/src/sgml/meson.build +++ b/doc/src/sgml/meson.build @@ -103,9 +103,10 @@ if xsltproc_bin.found() '--tool', xsltproc_bin, '--', ] - xsltproc_html_flags = xsltproc_flags + [ - '--param', 'website.stylesheet', '1' - ] + xsltproc_html_flags = xsltproc_flags + if get_option('docs_html_style') == 'website' + xsltproc_html_flags += ['--param', 'website.stylesheet', '1'] + endif endif diff --git a/meson_options.txt b/meson_options.txt index c203dcce6f..5b44a8829d 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -85,6 +85,9 @@ option('docs', type : 'feature', value: 'auto', option('docs_pdf', type : 'feature', value: 'auto', description: 'documentation in PDF format') +option('docs_html_style', type : 'combo', choices: ['simple', 'website'], + description: 'CSS stylesheet for HTML documentation') + option('dtrace', type : 'feature', value: 'disabled', description: 'DTrace support')