html-serve.diff
text/x-patch
Filename: html-serve.diff
Type: text/x-patch
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: unified
| File | + | − |
|---|---|---|
| doc/src/sgml/Makefile | 3 | 0 |
| doc/src/sgml/meson.build | 13 | 0 |
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index a04c532b53..6f629e02a7 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -130,6 +130,9 @@ html-stamp: stylesheet.xsl postgres-full.xml $(ALL_IMAGES)
$(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) $(wordlist 1,2,$^)
touch $@
+html-serve: html
+ python3 -m http.server --directory '$(top_builddir)/$(subdir)/html' 0
+
# single-page HTML
postgres.html: stylesheet-html-nochunk.xsl postgres-full.xml $(ALL_IMAGES)
$(XSLTPROC) $(XMLINCLUDE) $(XSLTPROCFLAGS) $(XSLTPROC_HTML_FLAGS) -o $@ $(wordlist 1,2,$^)
diff --git a/doc/src/sgml/meson.build b/doc/src/sgml/meson.build
index e418de83a7..fa598d8ab1 100644
--- a/doc/src/sgml/meson.build
+++ b/doc/src/sgml/meson.build
@@ -154,6 +154,19 @@ if docs_dep.found()
alias_target('html', html)
alias_target('install-html', install_doc_html)
+ run_target(
+ 'html-serve',
+ command: [
+ python,
+ '-m',
+ 'http.server',
+ '--directory',
+ meson.current_build_dir() / 'html',
+ '0',
+ ],
+ depends: html,
+ )
+
# build and install multi-page html docs as part of docs target
docs += html
installdocs += install_doc_html