libtiff: Convert HTML documentation to Sphinx RST

From 21ae5bbb020fe649d8059079ebb1c2def8aef6a4 Mon Sep 17 00:00:00 2001
From: Roger Leigh <[EMAIL REDACTED]>
Date: Mon, 30 May 2022 07:21:53 +0100
Subject: [PATCH] Convert HTML documentation to Sphinx RST

* Add CMake build logic
* Add Autotools build logic
* Move from html/ to doc/
* Manual pages are still generated HTML for the time being
---
 .gitlab-ci.yml                                |    3 +-
 CMakeLists.txt                                |    2 +-
 ChangeLog                                     |    2 +-
 Makefile.am                                   |    2 +-
 cmake/Sphinx.cmake                            |   92 +
 cmake/SphinxCheckInternalLinks.cmake          |   87 +
 cmake/list-manpage-dependencies.py            |   23 +
 cmake/list-manpages.py                        |   23 +
 configure.ac                                  |   19 +-
 doc/BigTIFFProposal.rst                       |  120 +
 doc/CMakeLists.txt                            |  221 ++
 {html/man => doc}/HtmlDoc.cmake               |   16 +-
 doc/Makefile.am                               |  157 +
 .../TIFFTechNote2.rst                         |    0
 doc/addingtags.rst                            |  314 ++
 doc/bigtiffdesign.rst                         |   82 +
 doc/bigtiffpr.rst                             |   63 +
 {html => doc}/bigtiffpr_images/esri.png       |  Bin
 {html => doc}/bigtiffpr_images/leica.png      |  Bin
 {html => doc}/bigtiffpr_images/safe.png       |  Bin
 {html => doc}/bigtiffpr_images/weogeo.png     |  Bin
 doc/bugs.rst                                  |   48 +
 doc/build.rst                                 |  623 ++++
 doc/conf.py                                   |   86 +
 doc/contrib.rst                               |   88 +
 doc/document.rst                              |   28 +
 doc/images.rst                                |   22 +
 {html => doc}/images/back.gif                 |  Bin
 {html => doc}/images/bali.jpg                 |  Bin
 {html => doc}/images/cat.gif                  |  Bin
 {html => doc}/images/cover.jpg                |  Bin
 {html => doc}/images/cramps.gif               |  Bin
 {html => doc}/images/dave.gif                 |  Bin
 {html => doc}/images/info.gif                 |  Bin
 {html => doc}/images/jello.jpg                |  Bin
 {html => doc}/images/jim.gif                  |  Bin
 {html => doc}/images/note.gif                 |  Bin
 {html => doc}/images/oxford.gif               |  Bin
 {html => doc}/images/quad.jpg                 |  Bin
 {html => doc}/images/ring.gif                 |  Bin
 {html => doc}/images/smallliz.jpg             |  Bin
 {html => doc}/images/strike.gif               |  Bin
 {html => doc}/images/warning.gif              |  Bin
 doc/index.rst                                 |   81 +
 doc/internals.rst                             |  466 +++
 html/intro.html => doc/intro.rst              |   79 +-
 doc/libtiff.rst                               |  678 ++++
 doc/manpages.rst                              |   67 +
 html/misc.html => doc/misc.rst                |   49 +-
 doc/releases.rst                              |   64 +
 doc/static/man/TIFFClose.3tiff.html           |   87 +
 doc/static/man/TIFFDataWidth.3tiff.html       |   96 +
 doc/static/man/TIFFError.3tiff.html           |  107 +
 .../static}/man/TIFFFieldDataType.3tiff.html  |    4 +-
 .../static}/man/TIFFFieldName.3tiff.html      |    4 +-
 .../static}/man/TIFFFieldPassCount.3tiff.html |    8 +-
 .../static}/man/TIFFFieldReadCount.3tiff.html |    8 +-
 .../static}/man/TIFFFieldTag.3tiff.html       |    4 +-
 .../man/TIFFFieldWriteCount.3tiff.html        |    8 +-
 doc/static/man/TIFFFlush.3tiff.html           |  108 +
 .../static}/man/TIFFGetField.3tiff.html       |  114 +-
 doc/static/man/TIFFOpen.3tiff.html            |  452 +++
 doc/static/man/TIFFPrintDirectory.3tiff.html  |  233 ++
 doc/static/man/TIFFRGBAImage.3tiff.html       |  319 ++
 doc/static/man/TIFFReadDirectory.3tiff.html   |  217 ++
 .../man/TIFFReadEncodedStrip.3tiff.html       |  125 +
 doc/static/man/TIFFReadEncodedTile.3tiff.html |  125 +
 doc/static/man/TIFFReadRGBAImage.3tiff.html   |  258 ++
 doc/static/man/TIFFReadRGBAStrip.3tiff.html   |  217 ++
 doc/static/man/TIFFReadRGBATile.3tiff.html    |  263 ++
 doc/static/man/TIFFReadRawStrip.3tiff.html    |  105 +
 doc/static/man/TIFFReadRawTile.3tiff.html     |  107 +
 doc/static/man/TIFFReadScanline.3tiff.html    |  149 +
 doc/static/man/TIFFReadTile.3tiff.html        |  124 +
 doc/static/man/TIFFSetDirectory.3tiff.html    |  120 +
 .../static}/man/TIFFSetField.3tiff.html       |   16 +-
 doc/static/man/TIFFWarning.3tiff.html         |  111 +
 doc/static/man/TIFFWriteDirectory.3tiff.html  |  184 +
 .../man/TIFFWriteEncodedStrip.3tiff.html      |  147 +
 .../man/TIFFWriteEncodedTile.3tiff.html       |  142 +
 doc/static/man/TIFFWriteRawStrip.3tiff.html   |  140 +
 doc/static/man/TIFFWriteRawTile.3tiff.html    |  127 +
 doc/static/man/TIFFWriteScanline.3tiff.html   |  203 ++
 doc/static/man/TIFFWriteTile.3tiff.html       |  110 +
 doc/static/man/TIFFbuffer.3tiff.html          |  118 +
 doc/static/man/TIFFcodec.3tiff.html           |  118 +
 doc/static/man/TIFFcolor.3tiff.html           |  827 +++++
 doc/static/man/TIFFmemory.3tiff.html          |  110 +
 doc/static/man/TIFFquery.3tiff.html           |  160 +
 doc/static/man/TIFFsize.3tiff.html            |   92 +
 doc/static/man/TIFFstrip.3tiff.html           |  136 +
 doc/static/man/TIFFswab.3tiff.html            |  110 +
 doc/static/man/TIFFtile.3tiff.html            |  148 +
 doc/static/man/fax2ps.1.html                  |  224 ++
 doc/static/man/fax2tiff.1.html                |  573 +++
 doc/static/man/libtiff.3tiff.html             | 3099 +++++++++++++++++
 doc/static/man/pal2rgb.1.html                 |  168 +
 doc/static/man/ppm2tiff.1.html                |  142 +
 doc/static/man/raw2tiff.1.html                |  487 +++
 {html => doc/static}/man/rgb2ycbcr.1.html     |    0
 {html => doc/static}/man/thumbnail.1.html     |    0
 doc/static/man/tiff2bw.1.html                 |  153 +
 doc/static/man/tiff2pdf.1.html                |  419 +++
 doc/static/man/tiff2ps.1.html                 |  544 +++
 doc/static/man/tiff2rgba.1.html               |  165 +
 doc/static/man/tiffcmp.1.html                 |  144 +
 doc/static/man/tiffcp.1.html                  |  474 +++
 doc/static/man/tiffcrop.1.html                |  868 +++++
 doc/static/man/tiffdither.1.html              |  188 +
 doc/static/man/tiffdump.1.html                |  128 +
 doc/static/man/tiffgt.1.html                  |  496 +++
 doc/static/man/tiffinfo.1.html                |  185 +
 doc/static/man/tiffmedian.1.html              |  174 +
 doc/static/man/tiffset.1.html                 |  141 +
 doc/static/man/tiffsplit.1.html               |  134 +
 doc/support.rst                               |  575 +++
 doc/tools.rst                                 |  126 +
 doc/v3.4beta007.rst                           |   75 +
 doc/v3.4beta016.rst                           |   71 +
 doc/v3.4beta018.rst                           |   50 +
 doc/v3.4beta024.rst                           |   99 +
 doc/v3.4beta028.rst                           |  105 +
 doc/v3.4beta029.rst                           |   52 +
 doc/v3.4beta031.rst                           |   59 +
 doc/v3.4beta032.rst                           |   53 +
 doc/v3.4beta033.rst                           |   45 +
 doc/v3.4beta034.rst                           |   37 +
 doc/v3.4beta035.rst                           |   32 +
 doc/v3.4beta036.rst                           |   86 +
 doc/v3.5.1.rst                                |   41 +
 doc/v3.5.2.rst                                |   74 +
 doc/v3.5.3.rst                                |   97 +
 doc/v3.5.4.rst                                |   45 +
 doc/v3.5.5.rst                                |   91 +
 doc/v3.5.6beta.rst                            |  135 +
 doc/v3.5.7.rst                                |  219 ++
 doc/v3.6.0.rst                                |  372 ++
 doc/v3.6.1.rst                                |  135 +
 doc/v3.7.0.rst                                |   78 +
 doc/v3.7.0alpha.rst                           |  179 +
 doc/v3.7.0beta.rst                            |   98 +
 doc/v3.7.0beta2.rst                           |   69 +
 doc/v3.7.1.rst                                |  160 +
 doc/v3.7.2.rst                                |  142 +
 doc/v3.7.3.rst                                |  169 +
 doc/v3.7.4.rst                                |   84 +
 doc/v3.8.0.rst                                |  140 +
 doc/v3.8.1.rst                                |  147 +
 doc/v3.8.2.rst                                |   76 +
 doc/v3.9.0.rst                                |  203 ++
 doc/v3.9.0beta.rst                            |  225 ++
 doc/v3.9.1.rst                                |   63 +
 doc/v3.9.2.rst                                |   67 +
 doc/v3.9.3.rst                                |  105 +
 doc/v3.9.4.rst                                |   69 +
 doc/v3.9.5.rst                                |  217 ++
 doc/v4.0.0.rst                                |  213 ++
 doc/v4.0.1.rst                                |   60 +
 doc/v4.0.10.rst                               |  239 ++
 doc/v4.0.2.rst                                |   64 +
 doc/v4.0.3.rst                                |   68 +
 doc/v4.0.4.rst                                |  191 +
 doc/v4.0.4beta.rst                            |  236 ++
 doc/v4.0.5.rst                                |   85 +
 doc/v4.0.6.rst                                |   77 +
 doc/v4.0.7.rst                                |  350 ++
 doc/v4.0.8.rst                                |  390 +++
 doc/v4.0.9.rst                                |  317 ++
 doc/v4.1.0.rst                                |   96 +
 doc/v4.2.0.rst                                |  103 +
 doc/v4.3.0.rst                                |   85 +
 doc/v4.4.0.rst                                |   98 +
 html/BigTIFFProposal.html                     |   99 -
 html/CMakeLists.txt                           |   95 -
 html/Makefile.am                              |  101 -
 html/addingtags.html                          |  304 --
 html/bigtiffdesign.html                       |   81 -
 html/bigtiffpr.html                           |   77 -
 html/bugs.html                                |   67 -
 html/build.html                               |  561 ---
 html/contrib.html                             |  202 --
 html/document.html                            |   57 -
 html/images.html                              |   46 -
 html/images/CMakeLists.txt                    |   44 -
 html/images/Makefile.am                       |   49 -
 html/index.html                               |  123 -
 html/internals.html                           |  572 ---
 html/libtiff.html                             |  747 ----
 html/man/CMakeLists.txt                       |  106 -
 html/man/Makefile.am                          |  122 -
 html/man/TIFFClose.3tiff.html                 |   87 -
 html/man/TIFFDataWidth.3tiff.html             |   98 -
 html/man/TIFFError.3tiff.html                 |  106 -
 html/man/TIFFFlush.3tiff.html                 |  113 -
 html/man/TIFFOpen.3tiff.html                  |  421 ---
 html/man/TIFFPrintDirectory.3tiff.html        |  225 --
 html/man/TIFFRGBAImage.3tiff.html             |  319 --
 html/man/TIFFReadDirectory.3tiff.html         |  218 --
 html/man/TIFFReadEncodedStrip.3tiff.html      |  133 -
 html/man/TIFFReadEncodedTile.3tiff.html       |  130 -
 html/man/TIFFReadRGBAImage.3tiff.html         |  301 --
 html/man/TIFFReadRGBAStrip.3tiff.html         |  208 --
 html/man/TIFFReadRGBATile.3tiff.html          |  261 --
 html/man/TIFFReadRawStrip.3tiff.html          |  109 -
 html/man/TIFFReadRawTile.3tiff.html           |  111 -
 html/man/TIFFReadScanline.3tiff.html          |  157 -
 html/man/TIFFReadTile.3tiff.html              |  133 -
 html/man/TIFFSetDirectory.3tiff.html          |  122 -
 html/man/TIFFWarning.3tiff.html               |  108 -
 html/man/TIFFWriteDirectory.3tiff.html        |  176 -
 html/man/TIFFWriteEncodedStrip.3tiff.html     |  153 -
 html/man/TIFFWriteEncodedTile.3tiff.html      |  147 -
 html/man/TIFFWriteRawStrip.3tiff.html         |  144 -
 html/man/TIFFWriteRawTile.3tiff.html          |  128 -
 html/man/TIFFWriteScanline.3tiff.html         |  206 --
 html/man/TIFFWriteTile.3tiff.html             |  115 -
 html/man/TIFFbuffer.3tiff.html                |  116 -
 html/man/TIFFcodec.3tiff.html                 |  116 -
 html/man/TIFFcolor.3tiff.html                 |  975 ------
 html/man/TIFFmemory.3tiff.html                |  110 -
 html/man/TIFFquery.3tiff.html                 |  148 -
 html/man/TIFFsize.3tiff.html                  |   95 -
 html/man/TIFFstrip.3tiff.html                 |  129 -
 html/man/TIFFswab.3tiff.html                  |  110 -
 html/man/TIFFtile.3tiff.html                  |  141 -
 html/man/fax2ps.1.html                        |  252 --
 html/man/fax2tiff.1.html                      |  607 ----
 html/man/index.html                           |   64 -
 html/man/libtiff.3tiff.html                   | 1150 ------
 html/man/pal2rgb.1.html                       |  189 -
 html/man/ppm2tiff.1.html                      |  141 -
 html/man/raw2tiff.1.html                      |  510 ---
 html/man/tiff2bw.1.html                       |  161 -
 html/man/tiff2pdf.1.html                      |  609 ----
 html/man/tiff2ps.1.html                       |  639 ----
 html/man/tiff2rgba.1.html                     |  162 -
 html/man/tiffcmp.1.html                       |  156 -
 html/man/tiffcp.1.html                        |  569 ---
 html/man/tiffcrop.1.html                      |  684 ----
 html/man/tiffdither.1.html                    |  196 --
 html/man/tiffdump.1.html                      |  145 -
 html/man/tiffgt.1.html                        |  551 ---
 html/man/tiffinfo.1.html                      |  196 --
 html/man/tiffmedian.1.html                    |  183 -
 html/man/tiffset.1.html                       |  176 -
 html/man/tiffsplit.1.html                     |  102 -
 html/support.html                             |  655 ----
 html/tools.html                               |  142 -
 html/v3.4beta007.html                         |  113 -
 html/v3.4beta016.html                         |  123 -
 html/v3.4beta018.html                         |   85 -
 html/v3.4beta024.html                         |  140 -
 html/v3.4beta028.html                         |  147 -
 html/v3.4beta029.html                         |   87 -
 html/v3.4beta031.html                         |   95 -
 html/v3.4beta032.html                         |   91 -
 html/v3.4beta033.html                         |   83 -
 html/v3.4beta034.html                         |   69 -
 html/v3.4beta035.html                         |   64 -
 html/v3.4beta036.html                         |  118 -
 html/v3.5.1.html                              |   76 -
 html/v3.5.2.html                              |  109 -
 html/v3.5.3.html                              |  133 -
 html/v3.5.4.html                              |   89 -
 html/v3.5.5.html                              |  156 -
 html/v3.5.6-beta.html                         |  186 -
 html/v3.5.7.html                              |  260 --
 html/v3.6.0.html                              |  435 ---
 html/v3.6.1.html                              |  200 --
 html/v3.7.0.html                              |  145 -
 html/v3.7.0alpha.html                         |  250 --
 html/v3.7.0beta.html                          |  163 -
 html/v3.7.0beta2.html                         |  132 -
 html/v3.7.1.html                              |  234 --
 html/v3.7.2.html                              |  223 --
 html/v3.7.3.html                              |  231 --
 html/v3.7.4.html                              |  134 -
 html/v3.8.0.html                              |  200 --
 html/v3.8.1.html                              |  218 --
 html/v3.8.2.html                              |  138 -
 html/v3.9.0.html                              |  262 --
 html/v3.9.0beta.html                          |  305 --
 html/v3.9.1.html                              |  116 -
 html/v3.9.2.html                              |  123 -
 html/v3.9.3.html                              |  161 -
 html/v3.9.4.html                              |  126 -
 html/v3.9.5.html                              |  271 --
 html/v4.0.0.html                              |  270 --
 html/v4.0.1.html                              |  114 -
 html/v4.0.10.html                             |  327 --
 html/v4.0.2.html                              |  119 -
 html/v4.0.3.html                              |  126 -
 html/v4.0.4.html                              |  275 --
 html/v4.0.4beta.html                          |  292 --
 html/v4.0.5.html                              |  149 -
 html/v4.0.6.html                              |  140 -
 html/v4.0.7.html                              |  412 ---
 html/v4.0.8.html                              |  446 ---
 html/v4.0.9.html                              |  374 --
 html/v4.1.0.html                              |  205 --
 html/v4.2.0.html                              |  207 --
 html/v4.3.0.html                              |  186 -
 html/v4.4.0.html                              |  200 --
 303 files changed, 26320 insertions(+), 28383 deletions(-)
 create mode 100644 cmake/Sphinx.cmake
 create mode 100644 cmake/SphinxCheckInternalLinks.cmake
 create mode 100644 cmake/list-manpage-dependencies.py
 create mode 100644 cmake/list-manpages.py
 create mode 100644 doc/BigTIFFProposal.rst
 create mode 100644 doc/CMakeLists.txt
 rename {html/man => doc}/HtmlDoc.cmake (81%)
 create mode 100644 doc/Makefile.am
 rename html/TIFFTechNote2.html => doc/TIFFTechNote2.rst (100%)
 create mode 100644 doc/addingtags.rst
 create mode 100644 doc/bigtiffdesign.rst
 create mode 100644 doc/bigtiffpr.rst
 rename {html => doc}/bigtiffpr_images/esri.png (100%)
 rename {html => doc}/bigtiffpr_images/leica.png (100%)
 rename {html => doc}/bigtiffpr_images/safe.png (100%)
 rename {html => doc}/bigtiffpr_images/weogeo.png (100%)
 create mode 100644 doc/bugs.rst
 create mode 100644 doc/build.rst
 create mode 100644 doc/conf.py
 create mode 100644 doc/contrib.rst
 create mode 100644 doc/document.rst
 create mode 100644 doc/images.rst
 rename {html => doc}/images/back.gif (100%)
 rename {html => doc}/images/bali.jpg (100%)
 rename {html => doc}/images/cat.gif (100%)
 rename {html => doc}/images/cover.jpg (100%)
 rename {html => doc}/images/cramps.gif (100%)
 rename {html => doc}/images/dave.gif (100%)
 rename {html => doc}/images/info.gif (100%)
 rename {html => doc}/images/jello.jpg (100%)
 rename {html => doc}/images/jim.gif (100%)
 rename {html => doc}/images/note.gif (100%)
 rename {html => doc}/images/oxford.gif (100%)
 rename {html => doc}/images/quad.jpg (100%)
 rename {html => doc}/images/ring.gif (100%)
 rename {html => doc}/images/smallliz.jpg (100%)
 rename {html => doc}/images/strike.gif (100%)
 rename {html => doc}/images/warning.gif (100%)
 create mode 100644 doc/index.rst
 create mode 100644 doc/internals.rst
 rename html/intro.html => doc/intro.rst (52%)
 create mode 100644 doc/libtiff.rst
 create mode 100644 doc/manpages.rst
 rename html/misc.html => doc/misc.rst (84%)
 create mode 100644 doc/releases.rst
 create mode 100644 doc/static/man/TIFFClose.3tiff.html
 create mode 100644 doc/static/man/TIFFDataWidth.3tiff.html
 create mode 100644 doc/static/man/TIFFError.3tiff.html
 rename {html => doc/static}/man/TIFFFieldDataType.3tiff.html (95%)
 rename {html => doc/static}/man/TIFFFieldName.3tiff.html (95%)
 rename {html => doc/static}/man/TIFFFieldPassCount.3tiff.html (92%)
 rename {html => doc/static}/man/TIFFFieldReadCount.3tiff.html (92%)
 rename {html => doc/static}/man/TIFFFieldTag.3tiff.html (95%)
 rename {html => doc/static}/man/TIFFFieldWriteCount.3tiff.html (93%)
 create mode 100644 doc/static/man/TIFFFlush.3tiff.html
 rename {html => doc/static}/man/TIFFGetField.3tiff.html (95%)
 create mode 100644 doc/static/man/TIFFOpen.3tiff.html
 create mode 100644 doc/static/man/TIFFPrintDirectory.3tiff.html
 create mode 100644 doc/static/man/TIFFRGBAImage.3tiff.html
 create mode 100644 doc/static/man/TIFFReadDirectory.3tiff.html
 create mode 100644 doc/static/man/TIFFReadEncodedStrip.3tiff.html
 create mode 100644 doc/static/man/TIFFReadEncodedTile.3tiff.html
 create mode 100644 doc/static/man/TIFFReadRGBAImage.3tiff.html
 create mode 100644 doc/static/man/TIFFReadRGBAStrip.3tiff.html
 create mode 100644 doc/static/man/TIFFReadRGBATile.3tiff.html
 create mode 100644 doc/static/man/TIFFReadRawStrip.3tiff.html
 create mode 100644 doc/static/man/TIFFReadRawTile.3tiff.html
 create mode 100644 doc/static/man/TIFFReadScanline.3tiff.html
 create mode 100644 doc/static/man/TIFFReadTile.3tiff.html
 create mode 100644 doc/static/man/TIFFSetDirectory.3tiff.html
 rename {html => doc/static}/man/TIFFSetField.3tiff.html (98%)
 create mode 100644 doc/static/man/TIFFWarning.3tiff.html
 create mode 100644 doc/static/man/TIFFWriteDirectory.3tiff.html
 create mode 100644 doc/static/man/TIFFWriteEncodedStrip.3tiff.html
 create mode 100644 doc/static/man/TIFFWriteEncodedTile.3tiff.html
 create mode 100644 doc/static/man/TIFFWriteRawStrip.3tiff.html
 create mode 100644 doc/static/man/TIFFWriteRawTile.3tiff.html
 create mode 100644 doc/static/man/TIFFWriteScanline.3tiff.html
 create mode 100644 doc/static/man/TIFFWriteTile.3tiff.html
 create mode 100644 doc/static/man/TIFFbuffer.3tiff.html
 create mode 100644 doc/static/man/TIFFcodec.3tiff.html
 create mode 100644 doc/static/man/TIFFcolor.3tiff.html
 create mode 100644 doc/static/man/TIFFmemory.3tiff.html
 create mode 100644 doc/static/man/TIFFquery.3tiff.html
 create mode 100644 doc/static/man/TIFFsize.3tiff.html
 create mode 100644 doc/static/man/TIFFstrip.3tiff.html
 create mode 100644 doc/static/man/TIFFswab.3tiff.html
 create mode 100644 doc/static/man/TIFFtile.3tiff.html
 create mode 100644 doc/static/man/fax2ps.1.html
 create mode 100644 doc/static/man/fax2tiff.1.html
 create mode 100644 doc/static/man/libtiff.3tiff.html
 create mode 100644 doc/static/man/pal2rgb.1.html
 create mode 100644 doc/static/man/ppm2tiff.1.html
 create mode 100644 doc/static/man/raw2tiff.1.html
 rename {html => doc/static}/man/rgb2ycbcr.1.html (100%)
 rename {html => doc/static}/man/thumbnail.1.html (100%)
 create mode 100644 doc/static/man/tiff2bw.1.html
 create mode 100644 doc/static/man/tiff2pdf.1.html
 create mode 100644 doc/static/man/tiff2ps.1.html
 create mode 100644 doc/static/man/tiff2rgba.1.html
 create mode 100644 doc/static/man/tiffcmp.1.html
 create mode 100644 doc/static/man/tiffcp.1.html
 create mode 100644 doc/static/man/tiffcrop.1.html
 create mode 100644 doc/static/man/tiffdither.1.html
 create mode 100644 doc/static/man/tiffdump.1.html
 create mode 100644 doc/static/man/tiffgt.1.html
 create mode 100644 doc/static/man/tiffinfo.1.html
 create mode 100644 doc/static/man/tiffmedian.1.html
 create mode 100644 doc/static/man/tiffset.1.html
 create mode 100644 doc/static/man/tiffsplit.1.html
 create mode 100644 doc/support.rst
 create mode 100644 doc/tools.rst
 create mode 100644 doc/v3.4beta007.rst
 create mode 100644 doc/v3.4beta016.rst
 create mode 100644 doc/v3.4beta018.rst
 create mode 100644 doc/v3.4beta024.rst
 create mode 100644 doc/v3.4beta028.rst
 create mode 100644 doc/v3.4beta029.rst
 create mode 100644 doc/v3.4beta031.rst
 create mode 100644 doc/v3.4beta032.rst
 create mode 100644 doc/v3.4beta033.rst
 create mode 100644 doc/v3.4beta034.rst
 create mode 100644 doc/v3.4beta035.rst
 create mode 100644 doc/v3.4beta036.rst
 create mode 100644 doc/v3.5.1.rst
 create mode 100644 doc/v3.5.2.rst
 create mode 100644 doc/v3.5.3.rst
 create mode 100644 doc/v3.5.4.rst
 create mode 100644 doc/v3.5.5.rst
 create mode 100644 doc/v3.5.6beta.rst
 create mode 100644 doc/v3.5.7.rst
 create mode 100644 doc/v3.6.0.rst
 create mode 100644 doc/v3.6.1.rst
 create mode 100644 doc/v3.7.0.rst
 create mode 100644 doc/v3.7.0alpha.rst
 create mode 100644 doc/v3.7.0beta.rst
 create mode 100644 doc/v3.7.0beta2.rst
 create mode 100644 doc/v3.7.1.rst
 create mode 100644 doc/v3.7.2.rst
 create mode 100644 doc/v3.7.3.rst
 create mode 100644 doc/v3.7.4.rst
 create mode 100644 doc/v3.8.0.rst
 create mode 100644 doc/v3.8.1.rst
 create mode 100644 doc/v3.8.2.rst
 create mode 100644 doc/v3.9.0.rst
 create mode 100644 doc/v3.9.0beta.rst
 create mode 100644 doc/v3.9.1.rst
 create mode 100644 doc/v3.9.2.rst
 create mode 100644 doc/v3.9.3.rst
 create mode 100644 doc/v3.9.4.rst
 create mode 100644 doc/v3.9.5.rst
 create mode 100644 doc/v4.0.0.rst
 create mode 100644 doc/v4.0.1.rst
 create mode 100644 doc/v4.0.10.rst
 create mode 100644 doc/v4.0.2.rst
 create mode 100644 doc/v4.0.3.rst
 create mode 100644 doc/v4.0.4.rst
 create mode 100644 doc/v4.0.4beta.rst
 create mode 100644 doc/v4.0.5.rst
 create mode 100644 doc/v4.0.6.rst
 create mode 100644 doc/v4.0.7.rst
 create mode 100644 doc/v4.0.8.rst
 create mode 100644 doc/v4.0.9.rst
 create mode 100644 doc/v4.1.0.rst
 create mode 100644 doc/v4.2.0.rst
 create mode 100644 doc/v4.3.0.rst
 create mode 100644 doc/v4.4.0.rst
 delete mode 100644 html/BigTIFFProposal.html
 delete mode 100644 html/CMakeLists.txt
 delete mode 100644 html/Makefile.am
 delete mode 100644 html/addingtags.html
 delete mode 100644 html/bigtiffdesign.html
 delete mode 100644 html/bigtiffpr.html
 delete mode 100644 html/bugs.html
 delete mode 100644 html/build.html
 delete mode 100644 html/contrib.html
 delete mode 100644 html/document.html
 delete mode 100644 html/images.html
 delete mode 100644 html/images/CMakeLists.txt
 delete mode 100644 html/images/Makefile.am
 delete mode 100644 html/index.html
 delete mode 100644 html/internals.html
 delete mode 100644 html/libtiff.html
 delete mode 100644 html/man/CMakeLists.txt
 delete mode 100644 html/man/Makefile.am
 delete mode 100644 html/man/TIFFClose.3tiff.html
 delete mode 100644 html/man/TIFFDataWidth.3tiff.html
 delete mode 100644 html/man/TIFFError.3tiff.html
 delete mode 100644 html/man/TIFFFlush.3tiff.html
 delete mode 100644 html/man/TIFFOpen.3tiff.html
 delete mode 100644 html/man/TIFFPrintDirectory.3tiff.html
 delete mode 100644 html/man/TIFFRGBAImage.3tiff.html
 delete mode 100644 html/man/TIFFReadDirectory.3tiff.html
 delete mode 100644 html/man/TIFFReadEncodedStrip.3tiff.html
 delete mode 100644 html/man/TIFFReadEncodedTile.3tiff.html
 delete mode 100644 html/man/TIFFReadRGBAImage.3tiff.html
 delete mode 100644 html/man/TIFFReadRGBAStrip.3tiff.html
 delete mode 100644 html/man/TIFFReadRGBATile.3tiff.html
 delete mode 100644 html/man/TIFFReadRawStrip.3tiff.html
 delete mode 100644 html/man/TIFFReadRawTile.3tiff.html
 delete mode 100644 html/man/TIFFReadScanline.3tiff.html
 delete mode 100644 html/man/TIFFReadTile.3tiff.html
 delete mode 100644 html/man/TIFFSetDirectory.3tiff.html
 delete mode 100644 html/man/TIFFWarning.3tiff.html
 delete mode 100644 html/man/TIFFWriteDirectory.3tiff.html
 delete mode 100644 html/man/TIFFWriteEncodedStrip.3tiff.html
 delete mode 100644 html/man/TIFFWriteEncodedTile.3tiff.html
 delete mode 100644 html/man/TIFFWriteRawStrip.3tiff.html
 delete mode 100644 html/man/TIFFWriteRawTile.3tiff.html
 delete mode 100644 html/man/TIFFWriteScanline.3tiff.html
 delete mode 100644 html/man/TIFFWriteTile.3tiff.html
 delete mode 100644 html/man/TIFFbuffer.3tiff.html
 delete mode 100644 html/man/TIFFcodec.3tiff.html
 delete mode 100644 html/man/TIFFcolor.3tiff.html
 delete mode 100644 html/man/TIFFmemory.3tiff.html
 delete mode 100644 html/man/TIFFquery.3tiff.html
 delete mode 100644 html/man/TIFFsize.3tiff.html
 delete mode 100644 html/man/TIFFstrip.3tiff.html
 delete mode 100644 html/man/TIFFswab.3tiff.html
 delete mode 100644 html/man/TIFFtile.3tiff.html
 delete mode 100644 html/man/fax2ps.1.html
 delete mode 100644 html/man/fax2tiff.1.html
 delete mode 100644 html/man/index.html
 delete mode 100644 html/man/libtiff.3tiff.html
 delete mode 100644 html/man/pal2rgb.1.html
 delete mode 100644 html/man/ppm2tiff.1.html
 delete mode 100644 html/man/raw2tiff.1.html
 delete mode 100644 html/man/tiff2bw.1.html
 delete mode 100644 html/man/tiff2pdf.1.html
 delete mode 100644 html/man/tiff2ps.1.html
 delete mode 100644 html/man/tiff2rgba.1.html
 delete mode 100644 html/man/tiffcmp.1.html
 delete mode 100644 html/man/tiffcp.1.html
 delete mode 100644 html/man/tiffcrop.1.html
 delete mode 100644 html/man/tiffdither.1.html
 delete mode 100644 html/man/tiffdump.1.html
 delete mode 100644 html/man/tiffgt.1.html
 delete mode 100644 html/man/tiffinfo.1.html
 delete mode 100644 html/man/tiffmedian.1.html
 delete mode 100644 html/man/tiffset.1.html
 delete mode 100644 html/man/tiffsplit.1.html
 delete mode 100644 html/support.html
 delete mode 100644 html/tools.html
 delete mode 100644 html/v3.4beta007.html
 delete mode 100644 html/v3.4beta016.html
 delete mode 100644 html/v3.4beta018.html
 delete mode 100644 html/v3.4beta024.html
 delete mode 100644 html/v3.4beta028.html
 delete mode 100644 html/v3.4beta029.html
 delete mode 100644 html/v3.4beta031.html
 delete mode 100644 html/v3.4beta032.html
 delete mode 100644 html/v3.4beta033.html
 delete mode 100644 html/v3.4beta034.html
 delete mode 100644 html/v3.4beta035.html
 delete mode 100644 html/v3.4beta036.html
 delete mode 100644 html/v3.5.1.html
 delete mode 100644 html/v3.5.2.html
 delete mode 100644 html/v3.5.3.html
 delete mode 100644 html/v3.5.4.html
 delete mode 100644 html/v3.5.5.html
 delete mode 100644 html/v3.5.6-beta.html
 delete mode 100644 html/v3.5.7.html
 delete mode 100644 html/v3.6.0.html
 delete mode 100644 html/v3.6.1.html
 delete mode 100644 html/v3.7.0.html
 delete mode 100644 html/v3.7.0alpha.html
 delete mode 100644 html/v3.7.0beta.html
 delete mode 100644 html/v3.7.0beta2.html
 delete mode 100644 html/v3.7.1.html
 delete mode 100644 html/v3.7.2.html
 delete mode 100644 html/v3.7.3.html
 delete mode 100644 html/v3.7.4.html
 delete mode 100644 html/v3.8.0.html
 delete mode 100644 html/v3.8.1.html
 delete mode 100644 html/v3.8.2.html
 delete mode 100644 html/v3.9.0.html
 delete mode 100644 html/v3.9.0beta.html
 delete mode 100644 html/v3.9.1.html
 delete mode 100644 html/v3.9.2.html
 delete mode 100644 html/v3.9.3.html
 delete mode 100644 html/v3.9.4.html
 delete mode 100644 html/v3.9.5.html
 delete mode 100644 html/v4.0.0.html
 delete mode 100644 html/v4.0.1.html
 delete mode 100644 html/v4.0.10.html
 delete mode 100644 html/v4.0.2.html
 delete mode 100644 html/v4.0.3.html
 delete mode 100644 html/v4.0.4.html
 delete mode 100644 html/v4.0.4beta.html
 delete mode 100644 html/v4.0.5.html
 delete mode 100644 html/v4.0.6.html
 delete mode 100644 html/v4.0.7.html
 delete mode 100644 html/v4.0.8.html
 delete mode 100644 html/v4.0.9.html
 delete mode 100644 html/v4.1.0.html
 delete mode 100644 html/v4.2.0.html
 delete mode 100644 html/v4.3.0.html
 delete mode 100644 html/v4.4.0.html

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3ee1b24c..51ce39c3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -34,7 +34,8 @@ coverity:
 pages:
   stage: pages
   script:
-    - cp -r html public
+    - sh build/gitlab-ci cmake "Ninja" Debug
+    - cp -r cmake-install/share/doc/tiff/manual public
   artifacts:
     name: $CI_PROJECT_NAME-$CI_JOB_NAME
     paths:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e886e3a5..abd4b917 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -140,7 +140,7 @@ add_subdirectory(test)
 add_subdirectory(contrib)
 add_subdirectory(build)
 add_subdirectory(man)
-add_subdirectory(html)
+add_

(Patch may be truncated, please check the link at the top of this post.)