Skip to content

Commit

Permalink
Convert build-doc to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
jberkenbilt committed Mar 18, 2022
1 parent 1b85faa commit 2515498
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README-doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ https://github.com/qpdf/qpdf/releases
Offline documentation contains the following:

* PDF: qpdf-manual.pdf
* HTML: html/index.html
* SINGLE-PAGE HTML: singlehtml/index.html
* HTML: manual-html/index.html
* SINGLE-PAGE HTML: manual-single-page-html/index.html

If you are reading this file from the source distribution, you can
find the documentation sources in the "manual" directory. There is
Expand Down
12 changes: 6 additions & 6 deletions build-scripts/build-doc
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ cd $(dirname $0)/..
set -ex
sudo apt-get update
sudo apt-get -y install \
autoconf build-essential zlib1g-dev libjpeg-dev \
autoconf build-essential cmake zlib1g-dev libjpeg-dev \
python3-pip texlive-latex-extra latexmk
pip3 install sphinx sphinx_rtd_theme
./configure --enable-doc-maintenance
make -j$(nproc) doc-dist DOC_DEST=doc
zip -r doc.zip doc
cmake -S . -B build -DBUILD_DOC=1
cmake --build build --target doc_dist
zip -r doc.zip build/manual/doc-dist
version=$(egrep '^release' manual/conf.py | cut -d"'" -f 2)
mv doc qpdf-${version}-doc
mv build/manual/doc-dist qpdf-${version}-doc
mkdir distribution
zip -r distribution/qpdf-${version}-doc.zip qpdf-${version}-doc
zip -r distribution/qpdf-${version}-doc-ci.zip qpdf-${version}-doc
sha256sum distribution/*

0 comments on commit 2515498

Please sign in to comment.