diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 74aac01c395..93b0b60cdb6 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -100,18 +100,10 @@ errcodes-table.sgml: $(top_srcdir)/src/backend/utils/errcodes.txt generate-errco ## ICONV = iconv -LYNX = lynx - -# The documentation may contain non-ASCII characters (mostly for -# contributor names), which lynx converts to the encoding determined -# by the current locale. To get text output that is deterministic and -# easily readable by everyone, we make lynx produce LATIN1 and then -# convert that to ASCII with transliteration for the non-ASCII characters. -# Official releases were historically built on FreeBSD, which has limited -# locale support and is very picky about locale name spelling. The -# below has been finely tuned to run on FreeBSD and Linux/glibc. +PANDOC = pandoc + INSTALL: % : %.html - $(PERL) -p -e 's, $@ + $(PANDOC) $< -t plain | $(ICONV) -f utf8 -t us-ascii//TRANSLIT > $@ INSTALL.html: %.html : stylesheet-text.xsl %.xml $(XMLLINT) --noout --valid $*.xml diff --git a/doc/src/sgml/docguide.sgml b/doc/src/sgml/docguide.sgml index 420a2f9d6e5..aa0f278b022 100644 --- a/doc/src/sgml/docguide.sgml +++ b/doc/src/sgml/docguide.sgml @@ -358,7 +358,9 @@ ADDITIONAL_FLAGS='-Xmx1500m' corresponds to , with some minor changes to account for the different context. To recreate the file, change to the directory doc/src/sgml - and enter make INSTALL. + and enter make INSTALL. Building text output + requires Pandoc version 1.13 or newer as an + additional build tool.