Skip to content

Commit 9d2a464

Browse files
committed
meson: docs: Allow configuring simple/website style
The meson docs generation hardcoded using the website style so far. Make it configurable via a meson option. Reviewed-by: Justin Pryzby <pryzby@telsasoft.com> Reported-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com> Discussion: https://postgr.es/m/3fc3bb9b-f7f8-d442-35c1-ec82280c564a@enterprisedb.com
1 parent b8059bd commit 9d2a464

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

doc/src/sgml/installation.sgml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2923,6 +2923,18 @@ ninja install
29232923
</listitem>
29242924
</varlistentry>
29252925

2926+
<varlistentry id="configure-docs-html-style">
2927+
<term><option>-Ddocs_html_style={ simple | website }</option></term>
2928+
<listitem>
2929+
<para>
2930+
Controls which <acronym>CSS</acronym> stylesheet is used. The default
2931+
is <literal>simple</literal>. If set to <literal>website</literal>,
2932+
the HTML documentation will reference the stylesheet for <ulink
2933+
url="https://www.postgresql.org/docs/current/">postgresql.org</ulink>.
2934+
</para>
2935+
</listitem>
2936+
</varlistentry>
2937+
29262938
</variablelist>
29272939
</sect3>
29282940

doc/src/sgml/meson.build

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ if xsltproc_bin.found()
103103
'--tool', xsltproc_bin, '--',
104104
]
105105

106-
xsltproc_html_flags = xsltproc_flags + [
107-
'--param', 'website.stylesheet', '1'
108-
]
106+
xsltproc_html_flags = xsltproc_flags
107+
if get_option('docs_html_style') == 'website'
108+
xsltproc_html_flags += ['--param', 'website.stylesheet', '1']
109+
endif
109110
endif
110111

111112

meson_options.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ option('docs', type : 'feature', value: 'auto',
8585
option('docs_pdf', type : 'feature', value: 'auto',
8686
description: 'documentation in PDF format')
8787

88+
option('docs_html_style', type : 'combo', choices: ['simple', 'website'],
89+
description: 'CSS stylesheet for HTML documentation')
90+
8891
option('dtrace', type : 'feature', value: 'disabled',
8992
description: 'DTrace support')
9093

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy