Skip to content

Commit 925b953

Browse files
author
hackorum
committed
Apply html-serve.diff
1 parent b597835 commit 925b953

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

doc/src/sgml/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ html-stamp: stylesheet.xsl postgres-full.xml $(ALL_IMAGES)
130130
$(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) $(wordlist 1,2,$^)
131131
touch $@
132132

133+
html-serve: html
134+
python3 -m http.server --directory '$(top_builddir)/$(subdir)/html' 0
135+
133136
# single-page HTML
134137
postgres.html: stylesheet-html-nochunk.xsl postgres-full.xml $(ALL_IMAGES)
135138
$(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) -o $@ $(wordlist 1,2,$^)

doc/src/sgml/meson.build

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,19 @@ if docs_dep.found()
156156
alias_target('html', html)
157157
alias_target('install-html', install_doc_html)
158158

159+
run_target(
160+
'html-serve',
161+
command: [
162+
python,
163+
'-m',
164+
'http.server',
165+
'--directory',
166+
meson.current_build_dir() / 'html',
167+
'0',
168+
],
169+
depends: html,
170+
)
171+
159172
# build and install multi-page html docs as part of docs target
160173
docs += html
161174
installdocs += install_doc_html

0 commit comments

Comments
 (0)