Commit 2515498c365debf34d423c0b771c8c267d1326da
Committed by
Jay Berkenbilt
1 parent
1b85faa6
Convert build-doc to cmake
Showing
2 changed files
with
8 additions
and
8 deletions
README-doc.txt
| @@ -11,8 +11,8 @@ https://github.com/qpdf/qpdf/releases | @@ -11,8 +11,8 @@ https://github.com/qpdf/qpdf/releases | ||
| 11 | Offline documentation contains the following: | 11 | Offline documentation contains the following: |
| 12 | 12 | ||
| 13 | * PDF: qpdf-manual.pdf | 13 | * PDF: qpdf-manual.pdf |
| 14 | -* HTML: html/index.html | ||
| 15 | -* SINGLE-PAGE HTML: singlehtml/index.html | 14 | +* HTML: manual-html/index.html |
| 15 | +* SINGLE-PAGE HTML: manual-single-page-html/index.html | ||
| 16 | 16 | ||
| 17 | If you are reading this file from the source distribution, you can | 17 | If you are reading this file from the source distribution, you can |
| 18 | find the documentation sources in the "manual" directory. There is | 18 | find the documentation sources in the "manual" directory. There is |
build-scripts/build-doc
| @@ -4,14 +4,14 @@ cd $(dirname $0)/.. | @@ -4,14 +4,14 @@ cd $(dirname $0)/.. | ||
| 4 | set -ex | 4 | set -ex |
| 5 | sudo apt-get update | 5 | sudo apt-get update |
| 6 | sudo apt-get -y install \ | 6 | sudo apt-get -y install \ |
| 7 | - autoconf build-essential zlib1g-dev libjpeg-dev \ | 7 | + autoconf build-essential cmake zlib1g-dev libjpeg-dev \ |
| 8 | python3-pip texlive-latex-extra latexmk | 8 | python3-pip texlive-latex-extra latexmk |
| 9 | pip3 install sphinx sphinx_rtd_theme | 9 | pip3 install sphinx sphinx_rtd_theme |
| 10 | -./configure --enable-doc-maintenance | ||
| 11 | -make -j$(nproc) doc-dist DOC_DEST=doc | ||
| 12 | -zip -r doc.zip doc | 10 | +cmake -S . -B build -DBUILD_DOC=1 |
| 11 | +cmake --build build --target doc_dist | ||
| 12 | +zip -r doc.zip build/manual/doc-dist | ||
| 13 | version=$(egrep '^release' manual/conf.py | cut -d"'" -f 2) | 13 | version=$(egrep '^release' manual/conf.py | cut -d"'" -f 2) |
| 14 | -mv doc qpdf-${version}-doc | 14 | +mv build/manual/doc-dist qpdf-${version}-doc |
| 15 | mkdir distribution | 15 | mkdir distribution |
| 16 | -zip -r distribution/qpdf-${version}-doc.zip qpdf-${version}-doc | 16 | +zip -r distribution/qpdf-${version}-doc-ci.zip qpdf-${version}-doc |
| 17 | sha256sum distribution/* | 17 | sha256sum distribution/* |